Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

us_get_daily: Max retries exceeded #12

Open
oloopy opened this issue Dec 12, 2020 · 1 comment
Open

us_get_daily: Max retries exceeded #12

oloopy opened this issue Dec 12, 2020 · 1 comment

Comments

@oloopy
Copy link

oloopy commented Dec 12, 2020

执行us_get_daily时会抛出异常:
requests.exceptions.ProxyError: HTTPSConnectionPool(host='query1.finance.yahoo.com', port=443): Max retries exceeded with url: /v8/finance/chart/NFJ?period1=1607529600&period2=1607616000&interval=1d&includePrePost=False&events=div%2Csplits (Caused by ProxyError('Cannot connect to proxy.', ConnectionResetError(10054, '远程主机强迫关闭了一个现有的连接。', None, 10054, None)))

尝试科学上网并更换IP依然无果,请问如何处理?

@oloopy
Copy link
Author

oloopy commented Dec 12, 2020

似乎是线程太多导致?将yf.download的threads设为False可暂时解决该问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant