FinanceData / OpenDartReader

Open DART Reader
MIT License
354 stars 90 forks source link

[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate #51

Closed godus1201 closed 8 months ago

godus1201 commented 8 months ago

매일 잘 사용하고 있었는데 오늘부터 안되는 듯 합니다.

혹시 몰라 opendartreader 최신 버전으로 업그레이드도 했는데, 여전히 안됩니다..

저만 안되는 걸까요?

File "C:\Users\SHBY\OneDrive\again_bts\new_lib.py", line 8055, in download_list_from_dart dart = OpenDartReader(api_keys[api_key_idx]) File "C:\Users\SHBY\Anaconda3\envs\py310_64\lib\site-packages\OpenDartReader\dart.py", line 39, in init df = dart_list.corp_codes(api_key) File "C:\Users\SHBY\Anaconda3\envs\py310_64\lib\site-packages\OpenDartReader\dart_list.py", line 164, in corp_codes r = requests.get(url, params=params) File "C:\Users\SHBY\Anaconda3\envs\py310_64\lib\site-packages\requests\api.py", line 73, in get return request("get", url, params=params, kwargs) File "C:\Users\SHBY\Anaconda3\envs\py310_64\lib\site-packages\requests\api.py", line 59, in request return session.request(method=method, url=url, kwargs) File "C:\Users\SHBY\Anaconda3\envs\py310_64\lib\site-packages\requests\sessions.py", line 587, in request resp = self.send(prep, send_kwargs) File "C:\Users\SHBY\Anaconda3\envs\py310_64\lib\site-packages\requests\sessions.py", line 701, in send r = adapter.send(request, kwargs) File "C:\Users\SHBY\Anaconda3\envs\py310_64\lib\site-packages\requests\adapters.py", line 563, in send raise SSLError(e, request=request) requests.exceptions.SSLError: HTTPSConnectionPool(host='opendart.fss.or.kr', port=443): Max retries exceeded with url: /api/corpCode.xml?crtfc_key=ABCD....XYZ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)')))

godus1201 commented 8 months ago

해결되었습니다!