finnhubio / Finnhub-API

Finnhub API provides institutional-grade financial data to investors, fintech startups and investment firms. We support real-time stock price, global fundamentals and alternative data. https://finnhub.io/docs/api
98 stars 6 forks source link

SSLError / Band Handshake Error #224

Closed kwame561 closed 4 years ago

kwame561 commented 4 years ago

I received the following error using the Finnhub-API:

MaxRetryError: HTTPSConnectionPool(host='finnhub.io', port=443): Max retries exceeded with url: /api/v1/stock/profile2?symbol=TM&token={my token would go here} (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])")))

This is the first time I'm receiving an error like this. I'm using the free API and I'm on a Windows machine. Any thoughts as to a possible cause?

finnhubio commented 4 years ago

This is the issue with SSL on your local machine. Plz check and fix it

kwame561 commented 4 years ago

Ok, I used the request module in place of urllib3. Everything works now.