|
发表于 2021-2-6 11:04:50
|
显示全部楼层
Traceback (most recent call last):
File "C:\Users\lishi\PycharmProjects\pythonProject3\venv\lib\site-packages\urllib3\response.py", line 438, in _error_catcher
yield
File "C:\Users\lishi\PycharmProjects\pythonProject3\venv\lib\site-packages\urllib3\response.py", line 764, in read_chunked
self._update_chunk_length()
File "C:\Users\lishi\PycharmProjects\pythonProject3\venv\lib\site-packages\urllib3\response.py", line 694, in _update_chunk_length
line = self._fp.fp.readline()
File "E:\Python38\lib\socket.py", line 669, in readinto
return self._sock.recv_into(b)
File "E:\Python38\lib\ssl.py", line 1241, in recv_into
return self.read(nbytes, buffer)
File "E:\Python38\lib\ssl.py", line 1099, in read
return self._sslobj.read(len, buffer)
ConnectionResetError: [WinError 10054] 远程主机强迫关闭了一个现有的连接。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\lishi\PycharmProjects\pythonProject3\venv\lib\site-packages\requests\models.py", line 753, in generate
for chunk in self.raw.stream(chunk_size, decode_content=True):
File "C:\Users\lishi\PycharmProjects\pythonProject3\venv\lib\site-packages\urllib3\response.py", line 572, in stream
for line in self.read_chunked(amt, decode_content=decode_content):
File "C:\Users\lishi\PycharmProjects\pythonProject3\venv\lib\site-packages\urllib3\response.py", line 793, in read_chunked
self._original_response.close()
File "E:\Python38\lib\contextlib.py", line 131, in __exit__
self.gen.throw(type, value, traceback)
File "C:\Users\lishi\PycharmProjects\pythonProject3\venv\lib\site-packages\urllib3\response.py", line 455, in _error_catcher
raise ProtocolError("Connection broken: %r" % e, e)
urllib3.exceptions.ProtocolError: ("Connection broken: ConnectionResetError(10054, '远程主机强迫关闭了一个现有的连接。', None, 10054, None)", ConnectionResetError(10054, '远程主机强迫关闭了一个现有的连接。', None, 10054, None))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:/Users/lishi/PycharmProjects/pythonProject3/main.py", line 279, in <module>
task.FindFilmAndDownload(film)
File "C:/Users/lishi/PycharmProjects/pythonProject3/main.py", line 254, in FindFilmAndDownload
if not self.SearchFilm(name):
File "C:/Users/lishi/PycharmProjects/pythonProject3/main.py", line 84, in SearchFilm
res = requests.get(self.searchUrl + name, headers=head)
File "C:\Users\lishi\PycharmProjects\pythonProject3\venv\lib\site-packages\requests\api.py", line 76, in get
return request('get', url, params=params, **kwargs)
File "C:\Users\lishi\PycharmProjects\pythonProject3\venv\lib\site-packages\requests\api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "C:\Users\lishi\PycharmProjects\pythonProject3\venv\lib\site-packages\requests\sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "C:\Users\lishi\PycharmProjects\pythonProject3\venv\lib\site-packages\requests\sessions.py", line 697, in send
r.content
File "C:\Users\lishi\PycharmProjects\pythonProject3\venv\lib\site-packages\requests\models.py", line 831, in content
self._content = b''.join(self.iter_content(CONTENT_CHUNK_SIZE)) or b''
File "C:\Users\lishi\PycharmProjects\pythonProject3\venv\lib\site-packages\requests\models.py", line 756, in generate
raise ChunkedEncodingError(e)
requests.exceptions.ChunkedEncodingError: ("Connection broken: ConnectionResetError(10054, '远程主机强迫关闭了一个现有的连接。', None, 10054, None)", ConnectionResetError(10054, '远程主机强迫关闭了一个现有的连接。', None, 10054, None))
这是报什么错呀 |
|