https://www.growthbook.io/ logo
#announcements
Title
# announcements
a

acceptable-salesmen-71657

09/11/2023, 10:32 PM
Hey everyone! I’m trying to run a small example using Python to test the SDK, but I keep getting this error:
Failed to decode feature JSON from GrowthBook API
I opened the library and added some additional debugs, and then I realized this was the error... does anyone know how to solve it? (I’m masking the gb key)
("HTTPSConnectionPool(host='<http://cdn.growthbook.io|cdn.growthbook.io>', port=443): Max retries exceeded with url: /api/features/XXXXX (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)')))",)
Thanks!
w

white-fireman-22476

09/12/2023, 4:36 AM
You could try updating your certificate store. How to do that is dependent on which OS you have. On many linux systems it can be done with
sudo update-ca-certificates
a

acceptable-salesmen-71657

09/12/2023, 3:13 PM
hey @white-fireman-22476, thanks for the help! but I’m using macOS and already tried to update my OS, run
brew install ca-certificates
but nothing solved that 😐
w

white-fireman-22476

09/12/2023, 3:14 PM
Hrmm, and your system clock is up to date?
a

acceptable-salesmen-71657

09/12/2023, 3:16 PM
yes. using the automatically one from time.apple.com
w

white-fireman-22476

09/12/2023, 3:36 PM
Are you using
HTTP_PROXY
or
HTTPS_PROXY
environment variables by any chance?
Does the
requests
library work? ie.
Copy code
r = requests.get('<https://cdn.growthbook.io/api/features/><YOUR_SDK_KEY')
a

acceptable-salesmen-71657

09/12/2023, 3:54 PM
thank you @white-fireman-22476 for your help!
w

white-fireman-22476

09/12/2023, 3:55 PM
Ah glad to hear.
🙏 1
15 Views