Skip to content

长时间运行后报错 #89

@bingxin666

Description

@bingxin666

rt,运行到约 130s 程序报错。

【INFO】     2025-03-14 20:02:06 | 那就是声优! (2015) S01E08.strm 创建成功
【INFO】     2025-03-14 20:02:06 | 那就是声优! (2015) S01E11.strm 创建成功
【INFO】     2025-03-14 20:02:08 | 公爵的契约未婚妻 (2023) S01E05.tc.ass 下载成功
【INFO】     2025-03-14 20:02:09 | 公爵的契约未婚妻 (2023) S01E03.tc.ass 下载成功
【INFO】     2025-03-14 20:02:10 | 公爵的契约未婚妻 (2023) S01E06.sc.ass 下载成功
Job "Alist2Strm.run (trigger: cron[month='*', day='*', day_of_week='*', hour='*', minute='0'], next run at: 2025-03-14 21:00:00 CST)" raised an exception
  + Exception Group Traceback (most recent call last):
  |   File "/usr/local/lib/python3.12/site-packages/apscheduler/executors/base_py3.py", line 30, in run_coroutine_job
  |     retval = await job.func(*job.args, **job.kwargs)
  |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |   File "/app/modules/alist2strm/alist2strm.py", line 147, in run
  |     async with TaskGroup() as tg:
  |                ^^^^^^^^^^^
  |   File "/usr/local/lib/python3.12/asyncio/taskgroups.py", line 145, in __aexit__
  |     raise me from None
  | ExceptionGroup: unhandled errors in a TaskGroup (6 sub-exceptions)
  +-+---------------- 1 ----------------
    | Traceback (most recent call last):
    |   File "/app/modules/alist2strm/alist2strm.py", line 184, in __file_processer
    |     await RequestUtils.download(path.download_url, local_path)
    |   File "/app/utils/http.py", line 531, in download
    |     await client.download(url, file_path, params=params, **kwargs)
    |   File "/app/utils/http.py", line 251, in download
    |     resp = await self.head(url, sync=False, params=params, **kwargs)
    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |   File "/app/utils/retry.py", line 95, in wrapper
    |     return await func(*args, **kwargs)
    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |   File "/app/utils/http.py", line 83, in _async_request
    |     return await self.__async_client.request(method, url, **kwargs)
    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |   File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1585, in request
    |     return await self.send(request, auth=auth, follow_redirects=follow_redirects)
    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |   File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1674, in send
    |     response = await self._send_handling_auth(
    |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |   File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1702, in _send_handling_auth
    |     response = await self._send_handling_redirects(
    |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |   File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1739, in _send_handling_redirects
    |     response = await self._send_single_request(request)
    |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |   File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1776, in _send_single_request
    |     response = await transport.handle_async_request(request)
    |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |   File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 376, in handle_async_request
    |     with map_httpcore_exceptions():
    |          ^^^^^^^^^^^^^^^^^^^^^^^^^
    |   File "/usr/local/lib/python3.12/contextlib.py", line 158, in __exit__
    |     self.gen.throw(value)
    |   File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 89, in map_httpcore_exceptions
    |     raise mapped_exc(message) from exc
    | httpx.ReadError
    +---------------- 2 ----------------
    | Traceback (most recent call last):
    |   File "/app/modules/alist2strm/alist2strm.py", line 184, in __file_processer
    |     await RequestUtils.download(path.download_url, local_path)
    |   File "/app/utils/http.py", line 531, in download
    |     await client.download(url, file_path, params=params, **kwargs)
    |   File "/app/utils/http.py", line 251, in download
    |     resp = await self.head(url, sync=False, params=params, **kwargs)
    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |   File "/app/utils/retry.py", line 95, in wrapper
    |     return await func(*args, **kwargs)
    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |   File "/app/utils/http.py", line 83, in _async_request
    |     return await self.__async_client.request(method, url, **kwargs)
    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |   File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1585, in request
    |     return await self.send(request, auth=auth, follow_redirects=follow_redirects)
    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |   File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1661, in send
    |     raise RuntimeError("Cannot send a request, as the client has been closed.")
    | RuntimeError: Cannot send a request, as the client has been closed.
    +---------------- 3 ----------------
    | Exception Group Traceback (most recent call last):
    |   File "/app/modules/alist2strm/alist2strm.py", line 184, in __file_processer
    |     await RequestUtils.download(path.download_url, local_path)
    |   File "/app/utils/http.py", line 531, in download
    |     await client.download(url, file_path, params=params, **kwargs)
    |   File "/app/utils/http.py", line 262, in download
    |     async with TaskGroup() as tg:
    |                ^^^^^^^^^^^
    |   File "/usr/local/lib/python3.12/asyncio/taskgroups.py", line 145, in __aexit__
    |     raise me from None
    | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
    +-+---------------- 1 ----------------
      | Traceback (most recent call last):
      |   File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 72, in map_httpcore_exceptions
      |     yield
      |   File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 377, in handle_async_request
      |     resp = await self._pool.handle_async_request(req)
      |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request
      |     raise exc from None
      |   File "/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request
      |     response = await connection.handle_async_request(
      |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py", line 103, in handle_async_request
      |     return await self._connection.handle_async_request(request)
      |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http2.py", line 183, in handle_async_request
      |     raise exc
      |   File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 72, in map_httpcore_exceptions
      |     yield
      |   File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 377, in handle_async_request
      |     resp = await self._pool.handle_async_request(req)
      |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request
      |     raise exc from None
      |   File "/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request
      |     response = await connection.handle_async_request(
      |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py", line 103, in handle_async_request
      |     return await self._connection.handle_async_request(request)
      |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http2.py", line 183, in handle_async_request
      |     raise exc
      |   File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http2.py", line 146, in handle_async_request
      |     status, headers = await self._receive_response(
      |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http2.py", line 290, in _receive_response
      |     event = await self._receive_stream_event(request, stream_id)
      |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http2.py", line 329, in _receive_stream_event
      |     await self._receive_events(request, stream_id)
      |   File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http2.py", line 357, in _receive_events
      |     events = await self._read_incoming_data(request)
      |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http2.py", line 429, in _read_incoming_data
      |     raise self._read_exception  # pragma: nocover
      |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http2.py", line 146, in handle_async_request
      |     status, headers = await self._receive_response(
      |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http2.py", line 290, in _receive_response
      |     event = await self._receive_stream_event(request, stream_id)
      |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http2.py", line 329, in _receive_stream_event
      |     await self._receive_events(request, stream_id)
      |   File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http2.py", line 357, in _receive_events
      |     events = await self._read_incoming_data(request)
      |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http2.py", line 446, in _read_incoming_data
      |     raise exc
      |   File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http2.py", line 432, in _read_incoming_data
      |     data = await self._network_stream.read(self.READ_NUM_BYTES, timeout)
      |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/usr/local/lib/python3.12/site-packages/httpcore/_backends/anyio.py", line 32, in read
      |     with map_exceptions(exc_map):
      |          ^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/usr/local/lib/python3.12/contextlib.py", line 158, in __exit__
      |     self.gen.throw(value)
      |   File "/usr/local/lib/python3.12/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
      |     raise to_exc(exc) from exc
      | httpcore.ReadError
      | 
      | The above exception was the direct cause of the following exception:
      | 
      | Traceback (most recent call last):
      |   File "/app/utils/http.py", line 301, in __download_chunk
      |     resp = await self.get(url, sync=False, **kwargs)
      |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/app/utils/retry.py", line 95, in wrapper
      |     return await func(*args, **kwargs)
      |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/app/utils/http.py", line 83, in _async_request
      |     return await self.__async_client.request(method, url, **kwargs)
      |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1585, in request
      |     return await self.send(request, auth=auth, follow_redirects=follow_redirects)
      |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1674, in send
      |     response = await self._send_handling_auth(
      |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1702, in _send_handling_auth
      |     response = await self._send_handling_redirects(
      |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1739, in _send_handling_redirects
      |     response = await self._send_single_request(request)
      |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1776, in _send_single_request
      |     response = await transport.handle_async_request(request)
      |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 376, in handle_async_request
      |     with map_httpcore_exceptions():
      |          ^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/usr/local/lib/python3.12/contextlib.py", line 158, in __exit__
      |     self.gen.throw(value)
      |   File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 89, in map_httpcore_exceptions
      |     raise mapped_exc(message) from exc
      | httpx.ReadError
      +------------------------------------
    +---------------- 4 ----------------
    | Exception Group Traceback (most recent call last):
    |   File "/app/modules/alist2strm/alist2strm.py", line 184, in __file_processer
    |     await RequestUtils.download(path.download_url, local_path)
    |   File "/app/utils/http.py", line 531, in download
    |     await client.download(url, file_path, params=params, **kwargs)
    |   File "/app/utils/http.py", line 262, in download
    |     async with TaskGroup() as tg:
    |                ^^^^^^^^^^^
    |   File "/usr/local/lib/python3.12/asyncio/taskgroups.py", line 145, in __aexit__
    |     raise me from None
    | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
    +-+---------------- 1 ----------------
      | Traceback (most recent call last):
      |   File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 72, in map_httpcore_exceptions
      |     yield
      |   File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 257, in __aiter__
      |     async for part in self._httpcore_stream:
      |   File "/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py", line 407, in __aiter__
      |     raise exc from None
      |   File "/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py", line 403, in __aiter__
      |     async for part in self._stream:
      |   File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http11.py", line 342, in __aiter__
      |     raise exc
      |   File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http11.py", line 334, in __aiter__
      |     async for chunk in self._connection._receive_response_body(**kwargs):
      |   File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http11.py", line 203, in _receive_response_body
      |     event = await self._receive_event(timeout=timeout)
      |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http11.py", line 217, in _receive_event
      |     data = await self._network_stream.read(
      |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/usr/local/lib/python3.12/site-packages/httpcore/_backends/anyio.py", line 32, in read
      |     with map_exceptions(exc_map):
      |          ^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/usr/local/lib/python3.12/contextlib.py", line 158, in __exit__
      |     self.gen.throw(value)
      |   File "/usr/local/lib/python3.12/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
      |     raise to_exc(exc) from exc
      | httpcore.ReadError
      | 
      | The above exception was the direct cause of the following exception:
      | 
      | Traceback (most recent call last):
      |   File "/app/utils/http.py", line 301, in __download_chunk
      |     resp = await self.get(url, sync=False, **kwargs)
      |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/app/utils/retry.py", line 95, in wrapper
      |     return await func(*args, **kwargs)
      |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/app/utils/http.py", line 83, in _async_request
      |     return await self.__async_client.request(method, url, **kwargs)
      |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1585, in request
      |     return await self.send(request, auth=auth, follow_redirects=follow_redirects)
      |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1688, in send
      |     raise exc
      |   File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1682, in send
      |     await response.aread()
      |   File "/usr/local/lib/python3.12/site-packages/httpx/_models.py", line 913, in aread
      |     self._content = b"".join([part async for part in self.aiter_bytes()])
      |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/usr/local/lib/python3.12/site-packages/httpx/_models.py", line 931, in aiter_bytes
      |     async for raw_bytes in self.aiter_raw():
      |   File "/usr/local/lib/python3.12/site-packages/httpx/_models.py", line 989, in aiter_raw
      |     async for raw_stream_bytes in self.stream:
      |   File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 150, in __aiter__
      |     async for chunk in self._stream:
      |   File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 256, in __aiter__
      |     with map_httpcore_exceptions():
      |          ^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/usr/local/lib/python3.12/contextlib.py", line 158, in __exit__
      |     self.gen.throw(value)
      |   File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 89, in map_httpcore_exceptions
      |     raise mapped_exc(message) from exc
      | httpx.ReadError
      +------------------------------------
    +---------------- 5 ----------------
    | Exception Group Traceback (most recent call last):
    |   File "/app/modules/alist2strm/alist2strm.py", line 184, in __file_processer
    |     await RequestUtils.download(path.download_url, local_path)
    |   File "/app/utils/http.py", line 531, in download
    |     await client.download(url, file_path, params=params, **kwargs)
    |   File "/app/utils/http.py", line 262, in download
    |     async with TaskGroup() as tg:
    |                ^^^^^^^^^^^
    |   File "/usr/local/lib/python3.12/asyncio/taskgroups.py", line 145, in __aexit__
    |     raise me from None
    | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
    +-+---------------- 1 ----------------
      | Traceback (most recent call last):
      |   File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 72, in map_httpcore_exceptions
      |     yield
      |   File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 257, in __aiter__
      |     async for part in self._httpcore_stream:
      |   File "/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py", line 407, in __aiter__
      |     raise exc from None
      |   File "/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py", line 403, in __aiter__
      |     async for part in self._stream:
      |   File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http11.py", line 342, in __aiter__
      |     raise exc
      |   File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http11.py", line 334, in __aiter__
      |     async for chunk in self._connection._receive_response_body(**kwargs):
      |   File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http11.py", line 203, in _receive_response_body
      |     event = await self._receive_event(timeout=timeout)
      |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http11.py", line 217, in _receive_event
      |     data = await self._network_stream.read(
      |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/usr/local/lib/python3.12/site-packages/httpcore/_backends/anyio.py", line 32, in read
      |     with map_exceptions(exc_map):
      |          ^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/usr/local/lib/python3.12/contextlib.py", line 158, in __exit__
      |     self.gen.throw(value)
      |   File "/usr/local/lib/python3.12/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
      |     raise to_exc(exc) from exc
      | httpcore.ReadError
      | 
      | The above exception was the direct cause of the following exception:
      | 
      | Traceback (most recent call last):
      |   File "/app/utils/http.py", line 301, in __download_chunk
      |     resp = await self.get(url, sync=False, **kwargs)
      |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/app/utils/retry.py", line 95, in wrapper
      |     return await func(*args, **kwargs)
      |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/app/utils/http.py", line 83, in _async_request
      |     return await self.__async_client.request(method, url, **kwargs)
      |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1585, in request
      |     return await self.send(request, auth=auth, follow_redirects=follow_redirects)
      |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1688, in send
      |     raise exc
      |   File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1682, in send
      |     await response.aread()
      |   File "/usr/local/lib/python3.12/site-packages/httpx/_models.py", line 913, in aread
      |     self._content = b"".join([part async for part in self.aiter_bytes()])
      |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/usr/local/lib/python3.12/site-packages/httpx/_models.py", line 931, in aiter_bytes
      |     async for raw_bytes in self.aiter_raw():
      |   File "/usr/local/lib/python3.12/site-packages/httpx/_models.py", line 989, in aiter_raw
      |     async for raw_stream_bytes in self.stream:
      |   File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 150, in __aiter__
      |     async for chunk in self._stream:
      |   File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 256, in __aiter__
      |     with map_httpcore_exceptions():
      |          ^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/usr/local/lib/python3.12/contextlib.py", line 158, in __exit__
      |     self.gen.throw(value)
      |   File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 89, in map_httpcore_exceptions
      |     raise mapped_exc(message) from exc
      | httpx.ReadError
      +------------------------------------
    +---------------- 6 ----------------
    | Exception Group Traceback (most recent call last):
    |   File "/app/modules/alist2strm/alist2strm.py", line 184, in __file_processer
    |     await RequestUtils.download(path.download_url, local_path)
    |   File "/app/utils/http.py", line 531, in download
    |     await client.download(url, file_path, params=params, **kwargs)
    |   File "/app/utils/http.py", line 262, in download
    |     async with TaskGroup() as tg:
    |                ^^^^^^^^^^^
    |   File "/usr/local/lib/python3.12/asyncio/taskgroups.py", line 145, in __aexit__
    |     raise me from None
    | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
    +-+---------------- 1 ----------------
      | Traceback (most recent call last):
      |   File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 72, in map_httpcore_exceptions
      |     yield
      |   File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 257, in __aiter__
      |     async for part in self._httpcore_stream:
      |   File "/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py", line 407, in __aiter__
      |     raise exc from None
      |   File "/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py", line 403, in __aiter__
      |     async for part in self._stream:
      |   File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http11.py", line 342, in __aiter__
      |     raise exc
      |   File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http11.py", line 334, in __aiter__
      |     async for chunk in self._connection._receive_response_body(**kwargs):
      |   File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http11.py", line 203, in _receive_response_body
      |     event = await self._receive_event(timeout=timeout)
      |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http11.py", line 217, in _receive_event
      |     data = await self._network_stream.read(
      |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/usr/local/lib/python3.12/site-packages/httpcore/_backends/anyio.py", line 32, in read
      |     with map_exceptions(exc_map):
      |          ^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/usr/local/lib/python3.12/contextlib.py", line 158, in __exit__
      |     self.gen.throw(value)
      |   File "/usr/local/lib/python3.12/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
      |     raise to_exc(exc) from exc
      | httpcore.ReadTimeout
      | 
      | The above exception was the direct cause of the following exception:
      | 
      | Traceback (most recent call last):
      |   File "/app/utils/http.py", line 83, in _async_request
      |     return await self.__async_client.request(method, url, **kwargs)
      |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1585, in request
      |     return await self.send(request, auth=auth, follow_redirects=follow_redirects)
      |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1688, in send
      |     raise exc
      |   File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1682, in send
      |     await response.aread()
      |   File "/usr/local/lib/python3.12/site-packages/httpx/_models.py", line 913, in aread
      |     self._content = b"".join([part async for part in self.aiter_bytes()])
      |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/usr/local/lib/python3.12/site-packages/httpx/_models.py", line 931, in aiter_bytes
      |     async for raw_bytes in self.aiter_raw():
      |   File "/usr/local/lib/python3.12/site-packages/httpx/_models.py", line 989, in aiter_raw
      |     async for raw_stream_bytes in self.stream:
      |   File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 150, in __aiter__
      |     async for chunk in self._stream:
      |   File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 256, in __aiter__
      |     with map_httpcore_exceptions():
      |          ^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/usr/local/lib/python3.12/contextlib.py", line 158, in __exit__
      |     self.gen.throw(value)
      |   File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 89, in map_httpcore_exceptions
      |     raise mapped_exc(message) from exc
      | httpx.ReadTimeout
      | 
      | During handling of the above exception, another exception occurred:
      | 
      | Traceback (most recent call last):
      |   File "/app/utils/http.py", line 301, in __download_chunk
      |     resp = await self.get(url, sync=False, **kwargs)
      |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/app/utils/retry.py", line 95, in wrapper
      |     return await func(*args, **kwargs)
      |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/app/utils/http.py", line 87, in _async_request
      |     raise TimeoutException
      | TypeError: RequestError.__init__() missing 1 required positional argument: 'message'
      +------------------------------------

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions