f2
f2 copied to clipboard
[BUG]0.0.1.6在抓取之前会显示这些错误,不知如何处理
- [x] 我查看了 文档 以及 已关闭的问题 以寻找可能的解决方案。
- [x] 我在 常见的问题与解决办法 中找不到我的问题。
- [ ] ~~你的问题是公开的,请注意删除个人敏感内容再上传~~
- [ ] 不按照模板填写的问题将不会得到优先的处理。 用0.0.1.6版本时,在抓取之前会提示这样的错误,但目测可以正常下载或者基本正常下载,这个有什么办法修复?
Traceback (most recent call last): File "F:\douyin\venv\lib\site-packages\httpx_transports\default.py", line 69, in map_httpcore_exceptions yield File "F:\douyin\venv\lib\site-packages\httpx_transports\default.py", line 373, in handle_async_request resp = await self._pool.handle_async_request(req) File "F:\douyin\venv\lib\site-packages\httpcore_async\connection_pool.py", line 216, in handle_async_request raise exc from None File "F:\douyin\venv\lib\site-packages\httpcore_async\connection_pool.py", line 196, in handle_async_request response = await connection.handle_async_request( File "F:\douyin\venv\lib\site-packages\httpcore_async\http_proxy.py", line 317, in handle_async_request stream = await stream.start_tls(**kwargs) File "F:\douyin\venv\lib\site-packages\httpcore_async\http11.py", line 383, in start_tls return await self._stream.start_tls(ssl_context, server_hostname, timeout) File "F:\douyin\venv\lib\site-packages\httpcore_backends\anyio.py", line 68, in start_tls with map_exceptions(exc_map): File "C:\Users\15920\AppData\Local\Programs\Python\Python310\lib\contextlib. py", line 153, in exit self.gen.throw(typ, value, traceback) File "F:\douyin\venv\lib\site-packages\httpcore_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "F:\douyin\venv\lib\site-packages\f2\dl\base_downloader.py",
line 64, in _download_chunks
response = await self.aclient.send(request, stream=True)
File "F:\douyin\venv\lib\site-packages\httpx\_client.py", line 1661,
in send
response = await self._send_handling_auth(
File "F:\douyin\venv\lib\site-packages\httpx\_client.py", line 1689,
in _send_handling_auth
response = await self._send_handling_redirects(
File "F:\douyin\venv\lib\site-packages\httpx\_client.py", line 1726,
in _send_handling_redirects
response = await self._send_single_request(request)
File "F:\douyin\venv\lib\site-packages\httpx\_client.py", line 1763,
in _send_single_request
response = await transport.handle_async_request(request)
File "F:\douyin\venv\lib\site-packages\httpx\_transports\default.py",
line 372, in handle_async_request
with map_httpcore_exceptions():
File
"C:\Users\15920\AppData\Local\Programs\Python\Python310\lib\contextlib.
py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "F:\douyin\venv\lib\site-packages\httpx\_transports\default.py",
line 86, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ConnectError
还有一个文件区块超时的错误:
ERROR 文件区块超时: ERROR Traceback (most recent call last): File "F:\douyin\venv\lib\site-packages\httpx_transports\default.py", line 69, in map_httpcore_exceptions yield File "F:\douyin\venv\lib\site-packages\httpx_transports\default.py", line 373, in handle_async_request resp = await self._pool.handle_async_request(req) File "F:\douyin\venv\lib\site-packages\httpcore_async\connection_pool.py", line 216, in handle_async_request raise exc from None File "F:\douyin\venv\lib\site-packages\httpcore_async\connection_pool.py", line 192, in handle_async_request connection = await pool_request.wait_for_connection(timeout=timeout) File "F:\douyin\venv\lib\site-packages\httpcore_async\connection_pool.py", line 35, in wait_for_connection await self._connection_acquired.wait(timeout=timeout) File "F:\douyin\venv\lib\site-packages\httpcore_synchronization.py", line 148, in wait with map_exceptions(anyio_exc_map): File "C:\Users\15920\AppData\Local\Programs\Python\Python310\lib\contextlib. py", line 153, in exit self.gen.throw(typ, value, traceback) File "F:\douyin\venv\lib\site-packages\httpcore_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.PoolTimeout
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "F:\douyin\venv\lib\site-packages\f2\dl\base_downloader.py",
line 64, in _download_chunks
response = await self.aclient.send(request, stream=True)
File "F:\douyin\venv\lib\site-packages\httpx\_client.py", line 1661,
in send
response = await self._send_handling_auth(
File "F:\douyin\venv\lib\site-packages\httpx\_client.py", line 1689,
in _send_handling_auth
response = await self._send_handling_redirects(
File "F:\douyin\venv\lib\site-packages\httpx\_client.py", line 1726,
in _send_handling_redirects
response = await self._send_single_request(request)
File "F:\douyin\venv\lib\site-packages\httpx\_client.py", line 1763,
in _send_single_request
response = await transport.handle_async_request(request)
File "F:\douyin\venv\lib\site-packages\httpx\_transports\default.py",
line 372, in handle_async_request
with map_httpcore_exceptions():
File
"C:\Users\15920\AppData\Local\Programs\Python\Python310\lib\contextlib.
py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "F:\douyin\venv\lib\site-packages\httpx\_transports\default.py",
line 86, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.PoolTimeout
- 操作系统: [e.g. Win10 x64 22H2 19045.4046]
- 浏览器 [e.g. Edge 122.0.2365.52]
- 终端 [e.g. WT 1.18.10301.0]
- F2版本 [e.g. 0.0.1.6]