You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "F:\Programs\Python\Python310\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "F:\Programs\Python\Python310\lib\site-packages\retry\api.py", line 73, in retry_decorator return __retry_internal(partial(f, *args, **kwargs), exceptions, tries, delay, max_delay, backoff, jitter, File "F:\Programs\Python\Python310\lib\site-packages\retry\api.py", line 33, in __retry_internal return f() File "F:\Programs\Python\Python310\lib\site-packages\efinance\stock\getter.py", line 1335, in get_quote_snapshot response = requests.get( File "F:\Programs\Python\Python310\lib\site-packages\requests\api.py", line 75, in get return request('get', url, params=params, **kwargs) File "F:\Programs\Python\Python310\lib\site-packages\requests\api.py", line 61, in request return session.request(method=method, url=url, **kwargs) File "F:\Programs\Python\Python310\lib\site-packages\requests\sessions.py", line 529, in request resp = self.send(prep, **send_kwargs) File "F:\Programs\Python\Python310\lib\site-packages\requests\sessions.py", line 645, in send r = adapter.send(request, **kwargs) File "F:\Programs\Python\Python310\lib\site-packages\requests\adapters.py", line 517, in send raise SSLError(e, request=request) requests.exceptions.SSLError: HTTPSConnectionPool(host='hsmarketwg.eastmoney.com', port=443): Max retries exceeded with url: /api/SHSZQuoteSnapshot?id=123120&callback=jQuery183026310160411569883_1646052793441 (Caused by SSLError(SSLError(1, '[SSL: DH_KEY_TOO_SMALL] dh key too small (_ssl.c:997)')))
The text was updated successfully, but these errors were encountered:
调用该接口
ef.stock.get_quote_snapshot(bond_code)
,报以下错误,请问大佬如何解决File "F:\Programs\Python\Python310\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "F:\Programs\Python\Python310\lib\site-packages\retry\api.py", line 73, in retry_decorator return __retry_internal(partial(f, *args, **kwargs), exceptions, tries, delay, max_delay, backoff, jitter, File "F:\Programs\Python\Python310\lib\site-packages\retry\api.py", line 33, in __retry_internal return f() File "F:\Programs\Python\Python310\lib\site-packages\efinance\stock\getter.py", line 1335, in get_quote_snapshot response = requests.get( File "F:\Programs\Python\Python310\lib\site-packages\requests\api.py", line 75, in get return request('get', url, params=params, **kwargs) File "F:\Programs\Python\Python310\lib\site-packages\requests\api.py", line 61, in request return session.request(method=method, url=url, **kwargs) File "F:\Programs\Python\Python310\lib\site-packages\requests\sessions.py", line 529, in request resp = self.send(prep, **send_kwargs) File "F:\Programs\Python\Python310\lib\site-packages\requests\sessions.py", line 645, in send r = adapter.send(request, **kwargs) File "F:\Programs\Python\Python310\lib\site-packages\requests\adapters.py", line 517, in send raise SSLError(e, request=request) requests.exceptions.SSLError: HTTPSConnectionPool(host='hsmarketwg.eastmoney.com', port=443): Max retries exceeded with url: /api/SHSZQuoteSnapshot?id=123120&callback=jQuery183026310160411569883_1646052793441 (Caused by SSLError(SSLError(1, '[SSL: DH_KEY_TOO_SMALL] dh key too small (_ssl.c:997)')))
The text was updated successfully, but these errors were encountered: