sammchardy / python-binance

Binance Exchange API python implementation for automated trading
https://python-binance.readthedocs.io/en/latest/
MIT License
6.01k stars 2.2k forks source link

certificate verify failed #1081

Open arkidd opened 2 years ago

arkidd commented 2 years ago

Describe the bug requests.exceptions.SSLError: HTTPSConnectionPool(host='api.binance.com', port=443): Max retries exceeded with url: /api/v3/ping (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate

Environment (please complete the following information):

Logs or Additional context requests.exceptions.SSLError: HTTPSConnectionPool(host='api.binance.com', port=443): Max retries exceeded with url: /api/v3/ping (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)')))

caokyhieu commented 2 years ago

I also faced the same problem. Is there anyone having the solution? @arkidd Did you fix it?

Shroomex89 commented 2 years ago

I had the same problem.

I deleted pycharme and python 3.9 (interpreter + idle) on my mac(m1) in hope taht it would work after a new installation.....

On the setup for installing python (3.10), there was like an "instruction" text......wich explains about some issues wich ssl certificats and to avoid them, they have prepared a script in the program folder, which the user can run to install/download some certificats....

I don't now if it was the the fresh installation or runing their script, but now it's work for me🤷‍♂️