Hey everyone! I’m trying to run a small example u...
# announcements
a
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
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
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
Hrmm, and your system clock is up to date?
a
yes. using the automatically one from time.apple.com
w
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
thank you @white-fireman-22476 for your help!
w
Ah glad to hear.
🙏 1