Docker部署失败
以下是运行日志: vTraceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/httpx/_transports/default.py", line 60, in map_httpcore_exceptions yield File "/usr/local/lib/python3.10/site-packages/httpx/_transports/default.py", line 353, in handle_async_request resp = await self._pool.handle_async_request(req) File "/usr/local/lib/python3.10/site-packages/httpcore/_async/connection_pool.py", line 262, in handle_async_request status=response.status, File "/usr/local/lib/python3.10/site-packages/httpcore/_async/connection_pool.py", line 245, in handle_async_request # up as HTTP/1.1. File "/usr/local/lib/python3.10/site-packages/httpcore/_async/connection.py", line 96, in handle_async_request retries_left = self._retries File "/usr/local/lib/python3.10/site-packages/httpcore/_async/http11.py", line 121, in handle_async_request event = h11.Request( File "/usr/local/lib/python3.10/site-packages/httpcore/_async/http11.py", line 99, in handle_async_request return Response( File "/usr/local/lib/python3.10/site-packages/httpcore/_async/http11.py", line 164, in _receive_response_headers http_version = b"HTTP/" + event.http_version File "/usr/local/lib/python3.10/site-packages/httpcore/_async/http11.py", line 200, in _receive_event # Which is accurate, but not very informative from an end-user File "/usr/local/lib/python3.10/site-packages/httpcore/_backends/anyio.py", line 31, in read File "/usr/local/lib/python3.10/contextlib.py", line 153, in exit self.gen.throw(typ, value, traceback) File "/usr/local/lib/python3.10/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) httpcore.ReadTimeout
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/telegram/request/_httpxrequest.py", line 219, in do_request headers={"User-Agent": self.USER_AGENT}, File "/usr/local/lib/python3.10/site-packages/httpx/_client.py", line 1530, in request timeout=timeout, File "/usr/local/lib/python3.10/site-packages/httpx/_client.py", line 1617, in send File "/usr/local/lib/python3.10/site-packages/httpx/_client.py", line 1645, in _send_handling_auth request = await auth_flow.anext() File "/usr/local/lib/python3.10/site-packages/httpx/_client.py", line 1682, in _send_handling_redirects for hook in self._event_hooks["request"]: File "/usr/local/lib/python3.10/site-packages/httpx/_client.py", line 1719, in _send_single_request ) File "/usr/local/lib/python3.10/site-packages/httpx/_transports/default.py", line 352, in handle_async_request with map_httpcore_exceptions(): File "/usr/local/lib/python3.10/contextlib.py", line 153, in exit self.gen.throw(typ, value, traceback) File "/usr/local/lib/python3.10/site-packages/httpx/_transports/default.py", line 77, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ReadTimeout
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "stop_signals.
File "/usr/local/lib/python3.10/site-packages/telegram/ext/_application.py", line 963, in __run
Returns:
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/usr/local/lib/python3.10/site-packages/telegram/ext/_updater.py", line 752, in stop
# This only happens in rare edge-cases, e.g. when stop() is called directly
File "/usr/local/lib/python3.10/site-packages/telegram/ext/_updater.py", line 777, in _stop_polling
File "/usr/local/lib/python3.10/site-packages/telegram/ext/_updater.py", line 381, in _get_updates_cleanup
cert: Union[str, Path] = None,
File "/usr/local/lib/python3.10/site-packages/telegram/ext/_extbot.py", line 553, in get_updates
current_offset: str = None,
File "/usr/local/lib/python3.10/site-packages/telegram/_bot.py", line 394, in decorator
be done in ExtBot instead of Bot, shortcuts like Message.reply_text need to work for both
File "/usr/local/lib/python3.10/site-packages/telegram/_bot.py", line 3542, in get_updates
pool_timeout=pool_timeout,
File "/usr/local/lib/python3.10/site-packages/telegram/_bot.py", line 482, in _post
if endpoint == "getUpdates":
File "/usr/local/lib/python3.10/site-packages/telegram/ext/_extbot.py", line 335, in _do_post
kwargs=kwargs,
File "/usr/local/lib/python3.10/site-packages/telegram/_bot.py", line 510, in _do_post
*,
File "/usr/local/lib/python3.10/site-packages/telegram/request/_baserequest.py", line 168, in post
request_data=request_data,
File "/usr/local/lib/python3.10/site-packages/telegram/request/_baserequest.py", line 288, in _request_wrapper
raise exc
File "/usr/local/lib/python3.10/site-packages/telegram/request/_baserequest.py", line 278, in _request_wrapper
read_timeout=read_timeout,
File "/usr/local/lib/python3.10/site-packages/telegram/request/_httpxrequest.py", line 236, in do_request
# TODO p4: do something smart here; for now just raise NetworkError
telegram.error.TimedOut: Timed out
[ 2025-04-15 12:15:00,134: ERROR ] asyncio - Task was destroyed but it is pending!
task: <Task pending name='Application:7353398151:update_fetcher' coro=<Application._update_fetcher() running at /usr/local/lib/python3.10/site-packages/telegram/ext/_application.py:1101> wait_for=<Future pending cb=[Task.task_wakeup()]>>
Exception ignored in: <coroutine object Application._update_fetcher at 0xffffa3fb8200>
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/telegram/ext/_application.py", line 1101, in _update_fetcher
File "/usr/local/lib/python3.10/asyncio/queues.py", line 161, in get
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 753, in call_soon
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 515, in _check_closed
RuntimeError: Event loop is closed
Skipping virtualenv creation, as specified in config file.
[ 2025-04-15 12:15:09,733: INFO ] forwarder - Modules to load: ['default', 'forward', 'misc']
[ 2025-04-15 12:15:09,735: INFO ] forwarder - Successfully loaded modules: ['default', 'forward', 'misc']
[ 2025-04-15 12:15:09,735: INFO ] forwarder - Starting bot...
[ 2025-04-15 12:15:10,350: INFO ] telegram.ext._application - Application started