Closed StepfenShawn closed 5 years ago
目前使用的就是pro版的(python3.7),但是跑了两次都复现了这个问题“10054, '远程主机强迫关闭了一个现有的连接”。 一次获取了2750支股票数据(每支股票采了4天的daily数据)之后复现出这个错。一次获取了4300支股票数据之后出现这个错。(目前股票总数差不多4953) 请问出现这个错会不会是因为频繁调用接口导致服务器不稳定造成的吗(目前积分只有120,所以每分钟调用次数<60)?多谢!
报错信息:
Traceback (most recent call last):
File "D:\Program Files (x86)\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 600, in urlopen
chunked=chunked)
File "D:\Program Files (x86)\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 384, in _make_request
six.raise_from(e, None)
File "
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Program Files (x86)\Anaconda3\lib\site-packages\requests\adapters.py", line 449, in send
timeout=timeout
File "D:\Program Files (x86)\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 638, in urlopen
_stacktrace=sys.exc_info()[2])
File "D:\Program Files (x86)\Anaconda3\lib\site-packages\urllib3\util\retry.py", line 368, in increment
raise six.reraise(type(error), error, _stacktrace)
File "D:\Program Files (x86)\Anaconda3\lib\site-packages\urllib3\packages\six.py", line 685, in reraise
raise value.with_traceback(tb)
File "D:\Program Files (x86)\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 600, in urlopen
chunked=chunked)
File "D:\Program Files (x86)\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 384, in _make_request
six.raise_from(e, None)
File "
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Program Files (x86)\JetBrains\PyCharm 2019.1.1\helpers\pydev\pydevd.py", line 1741, in
I ran the code with Python 3.7
result:
How to solve this problem?Please help me.Thank you.