Closed 502milk closed 1 year ago
从你提供的日志中的ConnectionRefusedError: [Errno 111] Connect call failed ('::1', 1089, 0, 0)
与main.py文件中的调用代理部分相对应,可以得出程序启动时调用了本地的代理,如果你的docker的宿主主机已经具备了透明代理环境(例如TUN)可以将.proxy_url('http://localhost:1089')
删除后重新部署应用(我个人在测试docker环境时,也是删除掉这个部分的)。
从你提供的日志中的
ConnectionRefusedError: [Errno 111] Connect call failed ('::1', 1089, 0, 0)
与main.py文件中的调用代理部分相对应,可以得出程序启动时调用了本地的代理,如果你的docker的宿主主机已经具备了透明代理环境(例如TUN)可以将.proxy_url('http://localhost:1089')
删除后重新部署应用(我个人在测试docker环境时,也是删除掉这个部分的)。
那是否可以可以不用docker运行win跑docker实在是太顶了
从你提供的日志中的
ConnectionRefusedError: [Errno 111] Connect call failed ('::1', 1089, 0, 0)
与main.py文件中的调用代理部分相对应,可以得出程序启动时调用了本地的代理,如果你的docker的宿主主机已经具备了透明代理环境(例如TUN)可以将.proxy_url('http://localhost:1089')
删除后重新部署应用(我个人在测试docker环境时,也是删除掉这个部分的)。那是否可以可以不用docker运行~win跑docker实在是太顶了~
因为tgs2gif.py这个模块调用了tgs-to-gif
所以不得不使用docker环境。如果不想使用windows环境提供的docker的话可以尝试使用wsl提供的docker环境(这个之前我测试过了可以work)。或者可以尝试将tgs2gif.py模块(专门提取tg特有的Stickers的)禁用。
从你提供的日志中的
ConnectionRefusedError: [Errno 111] Connect call failed ('::1', 1089, 0, 0)
与main.py文件中的调用代理部分相对应,可以得出程序启动时调用了本地的代理,如果你的docker的宿主主机已经具备了透明代理环境(例如TUN)可以将.proxy_url('http://localhost:1089')
删除后重新部署应用(我个人在测试docker环境时,也是删除掉这个部分的)。那是否可以可以不用docker运行~win跑docker实在是太顶了~
我都稍微有点忘了我是怎么运行的这个bot了,直接跑main.py应该也是可以的。
但是正如Cyunrei所说,tgs-to-gif
需要docker环境,如果没有docker的话,会有问题。
我推荐Linux环境运行本项目。
还是直接开tun好用 (跑起来了,谢谢
跑起来了,但好像这个贴纸包下载一直会出错(URL:https://t.me/addstickers/thecutestrabbit) 换了别的贴纸包没问题,但是下载的文件没有后缀XD
附上面下载失败的日志 ' 2023-10-01 16:38:04 Sticker(api_kwargs={'thumb': {'file_id': 'AAMCAgADFQABZRfySompL8VKpbJqT6mIotYwphMAAuIBAAIaaeUUUGL_NYGfY8YBAAdtAAMwBA', 'file_unique_id': 'AQAD4gEAAhpp5RRy', 'file_size': 4148, 'width': 98, 'height': 128}}, emoji='😭', file_id='CAACAgIAAxUAAWUX8kqJqS_FSqWyak-piKLWMKYTAALiAQACGmnlFFBi_zWBn2PGMAQ', file_size=50000, file_unique_id='AgAD4gEAAhpp5RQ', height=512, is_animated=False, is_video=False, set_name='thecutestrabbit', thumbnail=PhotoSize(file_id='AAMCAgADFQABZRfySompL8VKpbJqT6mIotYwphMAAuIBAAIaaeUUUGL_NYGfY8YBAAdtAAMwBA', file_size=4148, file_unique_id='AQAD4gEAAhpp5RRy', height=128, width=98), type='regular', width=393) 28 2023-10-01 16:38:04 Sticker(api_kwargs={'thumb': {'file_id': 'AAMCAgADFQABZRfySr4aecyxm-mjd4hTkn4wmr8AAuMBAAIaaeUU07uVeWp-vr0BAAdtAAMwBA', 'file_unique_id': 'AQAD4wEAAhpp5RRy', 'file_size': 3174, 'width': 71, 'height': 128}}, emoji='😕', file_id='CAACAgIAAxUAAWUX8kq-GnnMsZvpo3eIU5J-MJq_AALjAQACGmnlFNO7lXlqfr69MAQ', file_size=27528, file_unique_id='AgAD4wEAAhpp5RQ', height=512, is_animated=False, is_video=False, set_name='thecutestrabbit', thumbnail=PhotoSize(file_id='AAMCAgADFQABZRfySr4aecyxm-mjd4hTkn4wmr8AAuMBAAIaaeUU07uVeWp-vr0BAAdtAAMwBA', file_size=3174, file_unique_id='AQAD4wEAAhpp5RRy', height=128, width=71), type='regular', width=285) 29 2023-10-01 16:38:21 2023-10-01 08:38:21,250 - telegram.ext.Application - ERROR - No error handlers are registered, logging exception. 2023-10-01 16:38:21 Traceback (most recent call last): 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/anyio/streams/tls.py", line 131, in _call_sslobject_method 2023-10-01 16:38:21 result = func(*args) 2023-10-01 16:38:21 ^^^^^^^^^^^ 2023-10-01 16:38:21 File "/usr/local/lib/python3.11/ssl.py", line 921, in read 2023-10-01 16:38:21 v = self._sslobj.read(len) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 ssl.SSLWantReadError: The operation did not complete (read) (_ssl.c:2546) 2023-10-01 16:38:21 2023-10-01 16:38:21 During handling of the above exception, another exception occurred: 2023-10-01 16:38:21 2023-10-01 16:38:21 Traceback (most recent call last): 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_backends/anyio.py", line 34, in read 2023-10-01 16:38:21 return await self._stream.receive(max_bytes=max_bytes) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/anyio/streams/tls.py", line 196, in receive 2023-10-01 16:38:21 data = await self._call_sslobject_method(self._ssl_object.read, max_bytes) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/anyio/streams/tls.py", line 138, in _call_sslobject_method 2023-10-01 16:38:21 data = await self.transport_stream.receive() 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 1203, in receive 2023-10-01 16:38:21 await self._protocol.read_event.wait() 2023-10-01 16:38:21 File "/usr/local/lib/python3.11/asyncio/locks.py", line 213, in wait 2023-10-01 16:38:21 await fut 2023-10-01 16:38:21 asyncio.exceptions.CancelledError 2023-10-01 16:38:21 2023-10-01 16:38:21 During handling of the above exception, another exception occurred: 2023-10-01 16:38:21 2023-10-01 16:38:21 Traceback (most recent call last): 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_exceptions.py", line 10, in map_exceptions 2023-10-01 16:38:21 yield 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_backends/anyio.py", line 32, in read 2023-10-01 16:38:21 with anyio.fail_after(timeout): 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/anyio/_core/_tasks.py", line 119, in exit 2023-10-01 16:38:21 raise TimeoutError 2023-10-01 16:38:21 TimeoutError 2023-10-01 16:38:21 2023-10-01 16:38:21 The above exception was the direct cause of the following exception: 2023-10-01 16:38:21 2023-10-01 16:38:21 Traceback (most recent call last): 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 60, in map_httpcore_exceptions 2023-10-01 16:38:21 yield 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 353, in handle_async_request 2023-10-01 16:38:21 resp = await self._pool.handle_async_request(req) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_async/connection_pool.py", line 262, in handle_async_request 2023-10-01 16:38:21 raise exc 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_async/connection_pool.py", line 245, in handle_async_request 2023-10-01 16:38:21 response = await connection.handle_async_request(request) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_async/connection.py", line 96, in handle_async_request 2023-10-01 16:38:21 return await self._connection.handle_async_request(request) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_async/http11.py", line 121, in handle_async_request 2023-10-01 16:38:21 raise exc 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_async/http11.py", line 99, in handle_async_request 2023-10-01 16:38:21 ) = await self._receive_response_headers(*kwargs) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_async/http11.py", line 164, in _receive_response_headers 2023-10-01 16:38:21 event = await self._receive_event(timeout=timeout) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_async/http11.py", line 200, in _receive_event 2023-10-01 16:38:21 data = await self._network_stream.read( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_backends/anyio.py", line 31, in read 2023-10-01 16:38:21 with map_exceptions(exc_map): 2023-10-01 16:38:21 File "/usr/local/lib/python3.11/contextlib.py", line 155, in exit 2023-10-01 16:38:21 self.gen.throw(typ, value, traceback) 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions 2023-10-01 16:38:21 raise to_exc(exc) from exc 2023-10-01 16:38:21 httpcore.ReadTimeout 2023-10-01 16:38:21 2023-10-01 16:38:21 The above exception was the direct cause of the following exception: 2023-10-01 16:38:21 2023-10-01 16:38:21 Traceback (most recent call last): 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/request/_httpxrequest.py", line 216, in do_request 2023-10-01 16:38:21 res = await self._client.request( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1530, in request 2023-10-01 16:38:21 return await self.send(request, auth=auth, follow_redirects=follow_redirects) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1617, in send 2023-10-01 16:38:21 response = await self._send_handling_auth( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1645, in _send_handling_auth 2023-10-01 16:38:21 response = await self._send_handling_redirects( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1682, in _send_handling_redirects 2023-10-01 16:38:21 response = await self._send_single_request(request) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1719, in _send_single_request 2023-10-01 16:38:21 response = await transport.handle_async_request(request) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 352, in handle_async_request 2023-10-01 16:38:21 with map_httpcore_exceptions(): 2023-10-01 16:38:21 File "/usr/local/lib/python3.11/contextlib.py", line 155, in exit 2023-10-01 16:38:21 self.gen.throw(typ, value, traceback) 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 77, in map_httpcore_exceptions 2023-10-01 16:38:21 raise mapped_exc(message) from exc 2023-10-01 16:38:21 httpx.ReadTimeout 2023-10-01 16:38:21 2023-10-01 16:38:21 The above exception was the direct cause of the following exception: 2023-10-01 16:38:21 2023-10-01 16:38:21 Traceback (most recent call last): 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/ext/_application.py", line 1173, in process_update 2023-10-01 16:38:21 await coroutine 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/ext/_basehandler.py", line 141, in handle_update 2023-10-01 16:38:21 return await self.callback(update, context) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/main.py", line 146, in sticker_set 2023-10-01 16:38:21 file = await sticker.get_file() 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/_files/_basemedium.py", line 93, in get_file 2023-10-01 16:38:21 return await self.get_bot().get_file( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/ext/_extbot.py", line 1654, in get_file 2023-10-01 16:38:21 return await super().get_file( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/_bot.py", line 388, in decorator 2023-10-01 16:38:21 result = await func(self, args, **kwargs) # skipcq: PYL-E1102 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/_bot.py", line 3047, in get_file 2023-10-01 16:38:21 result = await self._post( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/_bot.py", line 476, in _post 2023-10-01 16:38:21 return await self._do_post( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/ext/_extbot.py", line 332, in _do_post 2023-10-01 16:38:21 return await super()._do_post( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/_bot.py", line 504, in _do_post 2023-10-01 16:38:21 return await request.post( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/request/_baserequest.py", line 168, in post 2023-10-01 16:38:21 result = await self._request_wrapper( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/request/_baserequest.py", line 288, in _request_wrapper 2023-10-01 16:38:21 raise exc 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/request/_baserequest.py", line 278, in _request_wrapper 2023-10-01 16:38:21 code, payload = await self.do_request( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/request/_httpxrequest.py", line 233, in do_request 2023-10-01 16:38:21 raise TimedOut from err 2023-10-01 16:38:21 telegram.error.TimedOut: Timed out '
附上面下载失败的日志 ' 2023-10-01 16:38:04 Sticker(api_kwargs={'thumb': {'file_id': 'AAMCAgADFQABZRfySompL8VKpbJqT6mIotYwphMAAuIBAAIaaeUUUGL_NYGfY8YBAAdtAAMwBA', 'file_unique_id': 'AQAD4gEAAhpp5RRy', 'file_size': 4148, 'width': 98, 'height': 128}}, emoji='😭', file_id='CAACAgIAAxUAAWUX8kqJqS_FSqWyak-piKLWMKYTAALiAQACGmnlFFBi_zWBn2PGMAQ', file_size=50000, file_unique_id='AgAD4gEAAhpp5RQ', height=512, is_animated=False, is_video=False, set_name='thecutestrabbit', thumbnail=PhotoSize(file_id='AAMCAgADFQABZRfySompL8VKpbJqT6mIotYwphMAAuIBAAIaaeUUUGL_NYGfY8YBAAdtAAMwBA', file_size=4148, file_unique_id='AQAD4gEAAhpp5RRy', height=128, width=98), type='regular', width=393) 28 2023-10-01 16:38:04 Sticker(api_kwargs={'thumb': {'file_id': 'AAMCAgADFQABZRfySr4aecyxm-mjd4hTkn4wmr8AAuMBAAIaaeUU07uVeWp-vr0BAAdtAAMwBA', 'file_unique_id': 'AQAD4wEAAhpp5RRy', 'file_size': 3174, 'width': 71, 'height': 128}}, emoji='😕', file_id='CAACAgIAAxUAAWUX8kq-GnnMsZvpo3eIU5J-MJq_AALjAQACGmnlFNO7lXlqfr69MAQ', file_size=27528, file_unique_id='AgAD4wEAAhpp5RQ', height=512, is_animated=False, is_video=False, set_name='thecutestrabbit', thumbnail=PhotoSize(file_id='AAMCAgADFQABZRfySr4aecyxm-mjd4hTkn4wmr8AAuMBAAIaaeUU07uVeWp-vr0BAAdtAAMwBA', file_size=3174, file_unique_id='AQAD4wEAAhpp5RRy', height=128, width=71), type='regular', width=285) 29 2023-10-01 16:38:21 2023-10-01 08:38:21,250 - telegram.ext.Application - ERROR - No error handlers are registered, logging exception. 2023-10-01 16:38:21 Traceback (most recent call last): 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/anyio/streams/tls.py", line 131, in _call_sslobject_method 2023-10-01 16:38:21 result = func(*args) 2023-10-01 16:38:21 ^^^^^^^^^^^ 2023-10-01 16:38:21 File "/usr/local/lib/python3.11/ssl.py", line 921, in read 2023-10-01 16:38:21 v = self._sslobj.read(len) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 ssl.SSLWantReadError: The operation did not complete (read) (_ssl.c:2546) 2023-10-01 16:38:21 2023-10-01 16:38:21 During handling of the above exception, another exception occurred: 2023-10-01 16:38:21 2023-10-01 16:38:21 Traceback (most recent call last): 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_backends/anyio.py", line 34, in read 2023-10-01 16:38:21 return await self._stream.receive(max_bytes=max_bytes) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/anyio/streams/tls.py", line 196, in receive 2023-10-01 16:38:21 data = await self._call_sslobject_method(self._ssl_object.read, max_bytes) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/anyio/streams/tls.py", line 138, in _call_sslobject_method 2023-10-01 16:38:21 data = await self.transport_stream.receive() 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 1203, in receive 2023-10-01 16:38:21 await self._protocol.read_event.wait() 2023-10-01 16:38:21 File "/usr/local/lib/python3.11/asyncio/locks.py", line 213, in wait 2023-10-01 16:38:21 await fut 2023-10-01 16:38:21 asyncio.exceptions.CancelledError 2023-10-01 16:38:21 2023-10-01 16:38:21 During handling of the above exception, another exception occurred: 2023-10-01 16:38:21 2023-10-01 16:38:21 Traceback (most recent call last): 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_exceptions.py", line 10, in map_exceptions 2023-10-01 16:38:21 yield 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_backends/anyio.py", line 32, in read 2023-10-01 16:38:21 with anyio.fail_after(timeout): 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/anyio/_core/_tasks.py", line 119, in exit 2023-10-01 16:38:21 raise TimeoutError 2023-10-01 16:38:21 TimeoutError 2023-10-01 16:38:21 2023-10-01 16:38:21 The above exception was the direct cause of the following exception: 2023-10-01 16:38:21 2023-10-01 16:38:21 Traceback (most recent call last): 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 60, in map_httpcore_exceptions 2023-10-01 16:38:21 yield 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 353, in handle_async_request 2023-10-01 16:38:21 resp = await self._pool.handle_async_request(req) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_async/connection_pool.py", line 262, in handle_async_request 2023-10-01 16:38:21 raise exc 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_async/connection_pool.py", line 245, in handle_async_request 2023-10-01 16:38:21 response = await connection.handle_async_request(request) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_async/connection.py", line 96, in handle_async_request 2023-10-01 16:38:21 return await self._connection.handle_async_request(request) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_async/http11.py", line 121, in handle_async_request 2023-10-01 16:38:21 raise exc 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_async/http11.py", line 99, in handle_async_request 2023-10-01 16:38:21 ) = await self._receive_response_headers(kwargs) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_async/http11.py", line 164, in _receive_response_headers 2023-10-01 16:38:21 event = await self._receive_event(timeout=timeout) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_async/http11.py", line 200, in _receive_event 2023-10-01 16:38:21 data = await self._network_stream.read( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_backends/anyio.py", line 31, in read 2023-10-01 16:38:21 with map_exceptions(exc_map): 2023-10-01 16:38:21 File "/usr/local/lib/python3.11/contextlib.py", line 155, in exit 2023-10-01 16:38:21 self.gen.throw(typ, value, traceback) 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions 2023-10-01 16:38:21 raise to_exc(exc) from exc 2023-10-01 16:38:21 httpcore.ReadTimeout 2023-10-01 16:38:21 2023-10-01 16:38:21 The above exception was the direct cause of the following exception: 2023-10-01 16:38:21 2023-10-01 16:38:21 Traceback (most recent call last): 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/request/_httpxrequest.py", line 216, in do_request 2023-10-01 16:38:21 res = await self._client.request( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1530, in request 2023-10-01 16:38:21 return await self.send(request, auth=auth, follow_redirects=follow_redirects) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1617, in send 2023-10-01 16:38:21 response = await self._send_handling_auth( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1645, in _send_handling_auth 2023-10-01 16:38:21 response = await self._send_handling_redirects( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1682, in _send_handling_redirects 2023-10-01 16:38:21 response = await self._send_single_request(request) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1719, in _send_single_request 2023-10-01 16:38:21 response = await transport.handle_async_request(request) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 352, in handle_async_request 2023-10-01 16:38:21 with map_httpcore_exceptions(): 2023-10-01 16:38:21 File "/usr/local/lib/python3.11/contextlib.py", line 155, in exit* 2023-10-01 16:38:21 self.gen.throw(typ, value, traceback) 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 77, in map_httpcore_exceptions 2023-10-01 16:38:21 raise mapped_exc(message) from exc 2023-10-01 16:38:21 httpx.ReadTimeout 2023-10-01 16:38:21 2023-10-01 16:38:21 The above exception was the direct cause of the following exception: 2023-10-01 16:38:21 2023-10-01 16:38:21 Traceback (most recent call last): 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/ext/_application.py", line 1173, in process_update 2023-10-01 16:38:21 await coroutine 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/ext/_basehandler.py", line 141, in handle_update 2023-10-01 16:38:21 return await self.callback(update, context) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/main.py", line 146, in sticker_set 2023-10-01 16:38:21 file = await sticker.get_file() 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/_files/_basemedium.py", line 93, in get_file 2023-10-01 16:38:21 return await self.get_bot().get_file( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/ext/_extbot.py", line 1654, in get_file 2023-10-01 16:38:21 return await super().get_file( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/_bot.py", line 388, in decorator 2023-10-01 16:38:21 result = await func(self, args, **kwargs) # skipcq: PYL-E1102 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/_bot.py", line 3047, in get_file 2023-10-01 16:38:21 result = await self._post( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/_bot.py", line 476, in _post 2023-10-01 16:38:21 return await self._do_post( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/ext/_extbot.py", line 332, in _do_post 2023-10-01 16:38:21 return await super()._do_post( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/_bot.py", line 504, in _do_post 2023-10-01 16:38:21 return await request.post( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/request/_baserequest.py", line 168, in post 2023-10-01 16:38:21 result = await self._request_wrapper( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/request/_baserequest.py", line 288, in _request_wrapper 2023-10-01 16:38:21 raise exc 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/request/_baserequest.py", line 278, in _request_wrapper 2023-10-01 16:38:21 code, payload = await self.do_request( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/request/_httpxrequest.py", line 233, in do_request 2023-10-01 16:38:21 raise TimedOut from err 2023-10-01 16:38:21 telegram.error.TimedOut: Timed out '
这边我自己测试了下确实存在这个问题,由于最近个人没有时间而且这部分代码也不是我写的,暂时不能断定问题出在哪里,后续我们会follow up这个issue,如果你发现了解决方法,欢迎提交PR。
感觉像是网络不好呢。。
感觉像是网络不好呢。。
嗯。。。但下别的就没事。。。下这个就炸,很怪
附上面下载失败的日志 ' 2023-10-01 16:38:04 Sticker(api_kwargs={'thumb': {'file_id': 'AAMCAgADFQABZRfySompL8VKpbJqT6mIotYwphMAAuIBAAIaaeUUUGL_NYGfY8YBAAdtAAMwBA', 'file_unique_id': 'AQAD4gEAAhpp5RRy', 'file_size': 4148, 'width': 98, 'height': 128}}, emoji='😭', file_id='CAACAgIAAxUAAWUX8kqJqS_FSqWyak-piKLWMKYTAALiAQACGmnlFFBi_zWBn2PGMAQ', file_size=50000, file_unique_id='AgAD4gEAAhpp5RQ', height=512, is_animated=False, is_video=False, set_name='thecutestrabbit', thumbnail=PhotoSize(file_id='AAMCAgADFQABZRfySompL8VKpbJqT6mIotYwphMAAuIBAAIaaeUUUGL_NYGfY8YBAAdtAAMwBA', file_size=4148, file_unique_id='AQAD4gEAAhpp5RRy', height=128, width=98), type='regular', width=393) 28 2023-10-01 16:38:04 Sticker(api_kwargs={'thumb': {'file_id': 'AAMCAgADFQABZRfySr4aecyxm-mjd4hTkn4wmr8AAuMBAAIaaeUU07uVeWp-vr0BAAdtAAMwBA', 'file_unique_id': 'AQAD4wEAAhpp5RRy', 'file_size': 3174, 'width': 71, 'height': 128}}, emoji='😕', file_id='CAACAgIAAxUAAWUX8kq-GnnMsZvpo3eIU5J-MJq_AALjAQACGmnlFNO7lXlqfr69MAQ', file_size=27528, file_unique_id='AgAD4wEAAhpp5RQ', height=512, is_animated=False, is_video=False, set_name='thecutestrabbit', thumbnail=PhotoSize(file_id='AAMCAgADFQABZRfySr4aecyxm-mjd4hTkn4wmr8AAuMBAAIaaeUU07uVeWp-vr0BAAdtAAMwBA', file_size=3174, file_unique_id='AQAD4wEAAhpp5RRy', height=128, width=71), type='regular', width=285) 29 2023-10-01 16:38:21 2023-10-01 08:38:21,250 - telegram.ext.Application - ERROR - No error handlers are registered, logging exception. 2023-10-01 16:38:21 Traceback (most recent call last): 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/anyio/streams/tls.py", line 131, in _call_sslobject_method 2023-10-01 16:38:21 result = func(*args) 2023-10-01 16:38:21 ^^^^^^^^^^^ 2023-10-01 16:38:21 File "/usr/local/lib/python3.11/ssl.py", line 921, in read 2023-10-01 16:38:21 v = self._sslobj.read(len) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 ssl.SSLWantReadError: The operation did not complete (read) (_ssl.c:2546) 2023-10-01 16:38:21 2023-10-01 16:38:21 During handling of the above exception, another exception occurred: 2023-10-01 16:38:21 2023-10-01 16:38:21 Traceback (most recent call last): 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_backends/anyio.py", line 34, in read 2023-10-01 16:38:21 return await self._stream.receive(max_bytes=max_bytes) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/anyio/streams/tls.py", line 196, in receive 2023-10-01 16:38:21 data = await self._call_sslobject_method(self._ssl_object.read, max_bytes) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/anyio/streams/tls.py", line 138, in _call_sslobject_method 2023-10-01 16:38:21 data = await self.transport_stream.receive() 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 1203, in receive 2023-10-01 16:38:21 await self._protocol.read_event.wait() 2023-10-01 16:38:21 File "/usr/local/lib/python3.11/asyncio/locks.py", line 213, in wait 2023-10-01 16:38:21 await fut 2023-10-01 16:38:21 asyncio.exceptions.CancelledError 2023-10-01 16:38:21 2023-10-01 16:38:21 During handling of the above exception, another exception occurred: 2023-10-01 16:38:21 2023-10-01 16:38:21 Traceback (most recent call last): 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_exceptions.py", line 10, in map_exceptions 2023-10-01 16:38:21 yield 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_backends/anyio.py", line 32, in read 2023-10-01 16:38:21 with anyio.fail_after(timeout): 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/anyio/_core/_tasks.py", line 119, in exit 2023-10-01 16:38:21 raise TimeoutError 2023-10-01 16:38:21 TimeoutError 2023-10-01 16:38:21 2023-10-01 16:38:21 The above exception was the direct cause of the following exception: 2023-10-01 16:38:21 2023-10-01 16:38:21 Traceback (most recent call last): 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 60, in map_httpcore_exceptions 2023-10-01 16:38:21 yield 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 353, in handle_async_request 2023-10-01 16:38:21 resp = await self._pool.handle_async_request(req) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_async/connection_pool.py", line 262, in handle_async_request 2023-10-01 16:38:21 raise exc 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_async/connection_pool.py", line 245, in handle_async_request 2023-10-01 16:38:21 response = await connection.handle_async_request(request) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_async/connection.py", line 96, in handle_async_request 2023-10-01 16:38:21 return await self._connection.handle_async_request(request) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_async/http11.py", line 121, in handle_async_request 2023-10-01 16:38:21 raise exc 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_async/http11.py", line 99, in handle_async_request 2023-10-01 16:38:21 ) = await self._receive_response_headers(kwargs) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_async/http11.py", line 164, in _receive_response_headers 2023-10-01 16:38:21 event = await self._receive_event(timeout=timeout) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_async/http11.py", line 200, in _receive_event 2023-10-01 16:38:21 data = await self._network_stream.read( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_backends/anyio.py", line 31, in read 2023-10-01 16:38:21 with map_exceptions(exc_map): 2023-10-01 16:38:21 File "/usr/local/lib/python3.11/contextlib.py", line 155, in exit 2023-10-01 16:38:21 self.gen.throw(typ, value, traceback) 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions 2023-10-01 16:38:21 raise to_exc(exc) from exc 2023-10-01 16:38:21 httpcore.ReadTimeout 2023-10-01 16:38:21 2023-10-01 16:38:21 The above exception was the direct cause of the following exception: 2023-10-01 16:38:21 2023-10-01 16:38:21 Traceback (most recent call last): 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/request/_httpxrequest.py", line 216, in do_request 2023-10-01 16:38:21 res = await self._client.request( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1530, in request 2023-10-01 16:38:21 return await self.send(request, auth=auth, follow_redirects=follow_redirects) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1617, in send 2023-10-01 16:38:21 response = await self._send_handling_auth( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1645, in _send_handling_auth 2023-10-01 16:38:21 response = await self._send_handling_redirects( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1682, in _send_handling_redirects 2023-10-01 16:38:21 response = await self._send_single_request(request) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1719, in _send_single_request 2023-10-01 16:38:21 response = await transport.handle_async_request(request) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 352, in handle_async_request 2023-10-01 16:38:21 with map_httpcore_exceptions(): 2023-10-01 16:38:21 File "/usr/local/lib/python3.11/contextlib.py", line 155, in exit* 2023-10-01 16:38:21 self.gen.throw(typ, value, traceback) 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 77, in map_httpcore_exceptions 2023-10-01 16:38:21 raise mapped_exc(message) from exc 2023-10-01 16:38:21 httpx.ReadTimeout 2023-10-01 16:38:21 2023-10-01 16:38:21 The above exception was the direct cause of the following exception: 2023-10-01 16:38:21 2023-10-01 16:38:21 Traceback (most recent call last): 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/ext/_application.py", line 1173, in process_update 2023-10-01 16:38:21 await coroutine 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/ext/_basehandler.py", line 141, in handle_update 2023-10-01 16:38:21 return await self.callback(update, context) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/main.py", line 146, in sticker_set 2023-10-01 16:38:21 file = await sticker.get_file() 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/_files/_basemedium.py", line 93, in get_file 2023-10-01 16:38:21 return await self.get_bot().get_file( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/ext/_extbot.py", line 1654, in get_file 2023-10-01 16:38:21 return await super().get_file( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/_bot.py", line 388, in decorator 2023-10-01 16:38:21 result = await func(self, args, **kwargs) # skipcq: PYL-E1102 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/_bot.py", line 3047, in get_file 2023-10-01 16:38:21 result = await self._post( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/_bot.py", line 476, in _post 2023-10-01 16:38:21 return await self._do_post( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/ext/_extbot.py", line 332, in _do_post 2023-10-01 16:38:21 return await super()._do_post( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/_bot.py", line 504, in _do_post 2023-10-01 16:38:21 return await request.post( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/request/_baserequest.py", line 168, in post 2023-10-01 16:38:21 result = await self._request_wrapper( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/request/_baserequest.py", line 288, in _request_wrapper 2023-10-01 16:38:21 raise exc 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/request/_baserequest.py", line 278, in _request_wrapper 2023-10-01 16:38:21 code, payload = await self.do_request( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/request/_httpxrequest.py", line 233, in do_request 2023-10-01 16:38:21 raise TimedOut from err 2023-10-01 16:38:21 telegram.error.TimedOut: Timed out '
这边我自己测试了下确实存在这个问题,由于最近个人没有时间而且这部分代码也不是我写的,暂时不能断定问题出在哪里,后续我们会follow up这个issue,如果你发现了解决方法,欢迎提交PR。
嗯。。。@Stickerdownloadbot 用这个bot就下载成功了,但找不到源码XD
附上面下载失败的日志 ' 2023-10-01 16:38:04 Sticker(api_kwargs={'thumb': {'file_id': 'AAMCAgADFQABZRfySompL8VKpbJqT6mIotYwphMAAuIBAAIaaeUUUGL_NYGfY8YBAAdtAAMwBA', 'file_unique_id': 'AQAD4gEAAhpp5RRy', 'file_size': 4148, 'width': 98, 'height': 128}}, emoji='😭', file_id='CAACAgIAAxUAAWUX8kqJqS_FSqWyak-piKLWMKYTAALiAQACGmnlFFBi_zWBn2PGMAQ', file_size=50000, file_unique_id='AgAD4gEAAhpp5RQ', height=512, is_animated=False, is_video=False, set_name='thecutestrabbit', thumbnail=PhotoSize(file_id='AAMCAgADFQABZRfySompL8VKpbJqT6mIotYwphMAAuIBAAIaaeUUUGL_NYGfY8YBAAdtAAMwBA', file_size=4148, file_unique_id='AQAD4gEAAhpp5RRy', height=128, width=98), type='regular', width=393) 28 2023-10-01 16:38:04 Sticker(api_kwargs={'thumb': {'file_id': 'AAMCAgADFQABZRfySr4aecyxm-mjd4hTkn4wmr8AAuMBAAIaaeUU07uVeWp-vr0BAAdtAAMwBA', 'file_unique_id': 'AQAD4wEAAhpp5RRy', 'file_size': 3174, 'width': 71, 'height': 128}}, emoji='😕', file_id='CAACAgIAAxUAAWUX8kq-GnnMsZvpo3eIU5J-MJq_AALjAQACGmnlFNO7lXlqfr69MAQ', file_size=27528, file_unique_id='AgAD4wEAAhpp5RQ', height=512, is_animated=False, is_video=False, set_name='thecutestrabbit', thumbnail=PhotoSize(file_id='AAMCAgADFQABZRfySr4aecyxm-mjd4hTkn4wmr8AAuMBAAIaaeUU07uVeWp-vr0BAAdtAAMwBA', file_size=3174, file_unique_id='AQAD4wEAAhpp5RRy', height=128, width=71), type='regular', width=285) 29 2023-10-01 16:38:21 2023-10-01 08:38:21,250 - telegram.ext.Application - ERROR - No error handlers are registered, logging exception. 2023-10-01 16:38:21 Traceback (most recent call last): 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/anyio/streams/tls.py", line 131, in _call_sslobject_method 2023-10-01 16:38:21 result = func(*args) 2023-10-01 16:38:21 ^^^^^^^^^^^ 2023-10-01 16:38:21 File "/usr/local/lib/python3.11/ssl.py", line 921, in read 2023-10-01 16:38:21 v = self._sslobj.read(len) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 ssl.SSLWantReadError: The operation did not complete (read) (_ssl.c:2546) 2023-10-01 16:38:21 2023-10-01 16:38:21 During handling of the above exception, another exception occurred: 2023-10-01 16:38:21 2023-10-01 16:38:21 Traceback (most recent call last): 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_backends/anyio.py", line 34, in read 2023-10-01 16:38:21 return await self._stream.receive(max_bytes=max_bytes) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/anyio/streams/tls.py", line 196, in receive 2023-10-01 16:38:21 data = await self._call_sslobject_method(self._ssl_object.read, max_bytes) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/anyio/streams/tls.py", line 138, in _call_sslobject_method 2023-10-01 16:38:21 data = await self.transport_stream.receive() 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 1203, in receive 2023-10-01 16:38:21 await self._protocol.read_event.wait() 2023-10-01 16:38:21 File "/usr/local/lib/python3.11/asyncio/locks.py", line 213, in wait 2023-10-01 16:38:21 await fut 2023-10-01 16:38:21 asyncio.exceptions.CancelledError 2023-10-01 16:38:21 2023-10-01 16:38:21 During handling of the above exception, another exception occurred: 2023-10-01 16:38:21 2023-10-01 16:38:21 Traceback (most recent call last): 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_exceptions.py", line 10, in map_exceptions 2023-10-01 16:38:21 yield 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_backends/anyio.py", line 32, in read 2023-10-01 16:38:21 with anyio.fail_after(timeout): 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/anyio/_core/_tasks.py", line 119, in exit 2023-10-01 16:38:21 raise TimeoutError 2023-10-01 16:38:21 TimeoutError 2023-10-01 16:38:21 2023-10-01 16:38:21 The above exception was the direct cause of the following exception: 2023-10-01 16:38:21 2023-10-01 16:38:21 Traceback (most recent call last): 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 60, in map_httpcore_exceptions 2023-10-01 16:38:21 yield 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 353, in handle_async_request 2023-10-01 16:38:21 resp = await self._pool.handle_async_request(req) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_async/connection_pool.py", line 262, in handle_async_request 2023-10-01 16:38:21 raise exc 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_async/connection_pool.py", line 245, in handle_async_request 2023-10-01 16:38:21 response = await connection.handle_async_request(request) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_async/connection.py", line 96, in handle_async_request 2023-10-01 16:38:21 return await self._connection.handle_async_request(request) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_async/http11.py", line 121, in handle_async_request 2023-10-01 16:38:21 raise exc 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_async/http11.py", line 99, in handle_async_request 2023-10-01 16:38:21 ) = await self._receive_response_headers(kwargs) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_async/http11.py", line 164, in _receive_response_headers 2023-10-01 16:38:21 event = await self._receive_event(timeout=timeout) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_async/http11.py", line 200, in _receive_event 2023-10-01 16:38:21 data = await self._network_stream.read( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_backends/anyio.py", line 31, in read 2023-10-01 16:38:21 with map_exceptions(exc_map): 2023-10-01 16:38:21 File "/usr/local/lib/python3.11/contextlib.py", line 155, in exit 2023-10-01 16:38:21 self.gen.throw(typ, value, traceback) 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions 2023-10-01 16:38:21 raise to_exc(exc) from exc 2023-10-01 16:38:21 httpcore.ReadTimeout 2023-10-01 16:38:21 2023-10-01 16:38:21 The above exception was the direct cause of the following exception: 2023-10-01 16:38:21 2023-10-01 16:38:21 Traceback (most recent call last): 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/request/_httpxrequest.py", line 216, in do_request 2023-10-01 16:38:21 res = await self._client.request( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1530, in request 2023-10-01 16:38:21 return await self.send(request, auth=auth, follow_redirects=follow_redirects) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1617, in send 2023-10-01 16:38:21 response = await self._send_handling_auth( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1645, in _send_handling_auth 2023-10-01 16:38:21 response = await self._send_handling_redirects( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1682, in _send_handling_redirects 2023-10-01 16:38:21 response = await self._send_single_request(request) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1719, in _send_single_request 2023-10-01 16:38:21 response = await transport.handle_async_request(request) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 352, in handle_async_request 2023-10-01 16:38:21 with map_httpcore_exceptions(): 2023-10-01 16:38:21 File "/usr/local/lib/python3.11/contextlib.py", line 155, in exit* 2023-10-01 16:38:21 self.gen.throw(typ, value, traceback) 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 77, in map_httpcore_exceptions 2023-10-01 16:38:21 raise mapped_exc(message) from exc 2023-10-01 16:38:21 httpx.ReadTimeout 2023-10-01 16:38:21 2023-10-01 16:38:21 The above exception was the direct cause of the following exception: 2023-10-01 16:38:21 2023-10-01 16:38:21 Traceback (most recent call last): 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/ext/_application.py", line 1173, in process_update 2023-10-01 16:38:21 await coroutine 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/ext/_basehandler.py", line 141, in handle_update 2023-10-01 16:38:21 return await self.callback(update, context) 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/main.py", line 146, in sticker_set 2023-10-01 16:38:21 file = await sticker.get_file() 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/_files/_basemedium.py", line 93, in get_file 2023-10-01 16:38:21 return await self.get_bot().get_file( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/ext/_extbot.py", line 1654, in get_file 2023-10-01 16:38:21 return await super().get_file( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/_bot.py", line 388, in decorator 2023-10-01 16:38:21 result = await func(self, args, **kwargs) # skipcq: PYL-E1102 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/_bot.py", line 3047, in get_file 2023-10-01 16:38:21 result = await self._post( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/_bot.py", line 476, in _post 2023-10-01 16:38:21 return await self._do_post( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/ext/_extbot.py", line 332, in _do_post 2023-10-01 16:38:21 return await super()._do_post( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/_bot.py", line 504, in _do_post 2023-10-01 16:38:21 return await request.post( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/request/_baserequest.py", line 168, in post 2023-10-01 16:38:21 result = await self._request_wrapper( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/request/_baserequest.py", line 288, in _request_wrapper 2023-10-01 16:38:21 raise exc 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/request/_baserequest.py", line 278, in _request_wrapper 2023-10-01 16:38:21 code, payload = await self.do_request( 2023-10-01 16:38:21 ^^^^^^^^^^^^^^^^^^^^^^ 2023-10-01 16:38:21 File "/app/.venv/lib/python3.11/site-packages/telegram/request/_httpxrequest.py", line 233, in do_request 2023-10-01 16:38:21 raise TimedOut from err 2023-10-01 16:38:21 telegram.error.TimedOut: Timed out '
这边我自己测试了下确实存在这个问题,由于最近个人没有时间而且这部分代码也不是我写的,暂时不能断定问题出在哪里,后续我们会follow up这个issue,如果你发现了解决方法,欢迎提交PR。
嗯。。。@Stickerdownloadbot 用这个bot就下载成功了,但找不到源码XD
你提供的这个bot也无法下载这个贴纸包的部分贴纸,只不过让你感受到可以下载的"幻觉"是这个Bot在下载过程中发生异常跳过了有问题的贴纸,你下载后会发现打包的贴纸数量要比原有的贴纸数量要少。这个贴纸包里面的一部分贴纸即使网络正常下也是无法调用telegram api进行下载,目前除了跳过有问题的贴纸暂时没有解决方案。现在这个问题讨论已经不属于当前issue的讨论范围,如果有新的问题请重新开一个新的issue。
G:\桌面\sticker\telegram_sticker_downloader>docker compose up [+] Running 1/1 ✔ Container telegram_sticker_downloader-telegram_sticker_downloader-1 Created 0.1s Attaching to telegram_sticker_downloader-telegram_sticker_downloader-1 telegram_sticker_downloader-telegram_sticker_downloader-1 | [] [] telegram_sticker_downloader-telegram_sticker_downloader-1 | anyio._backends._asyncio.ExceptionGroup: 2 exceptions were raised in the task group: telegram_sticker_downloader-telegram_sticker_downloader-1 | ---------------------------- telegram_sticker_downloader-telegram_sticker_downloader-1 | Traceback (most recent call last): telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/app/.venv/lib/python3.11/site-packages/anyio/_core/_sockets.py", line 167, in try_connect telegram_sticker_downloader-telegram_sticker_downloader-1 | stream = await asynclib.connect_tcp(remote_host, remote_port, local_address) telegram_sticker_downloader-telegram_sticker_downloader-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/app/.venv/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 1627, in connect_tcp telegram_sticker_downloader-telegram_sticker_downloader-1 | await get_running_loop().create_connection( telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/usr/local/lib/python3.11/asyncio/base_events.py", line 1073, in create_connection telegram_sticker_downloader-telegram_sticker_downloader-1 | raise exceptions[0] telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/usr/local/lib/python3.11/asyncio/base_events.py", line 1058, in create_connection telegram_sticker_downloader-telegram_sticker_downloader-1 | sock = await self._connect_sock( telegram_sticker_downloader-telegram_sticker_downloader-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^ telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/usr/local/lib/python3.11/asyncio/base_events.py", line 964, in _connect_sock telegram_sticker_downloader-telegram_sticker_downloader-1 | await self.sock_connect(sock, address) telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/usr/local/lib/python3.11/asyncio/selector_events.py", line 633, in sock_connect telegram_sticker_downloader-telegram_sticker_downloader-1 | return await fut telegram_sticker_downloader-telegram_sticker_downloader-1 | ^^^^^^^^^ telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/usr/local/lib/python3.11/asyncio/selector_events.py", line 668, in _sock_connect_cb telegram_sticker_downloader-telegram_sticker_downloader-1 | raise OSError(err, f'Connect call failed {address}') telegram_sticker_downloader-telegram_sticker_downloader-1 | ConnectionRefusedError: [Errno 111] Connect call failed ('::1', 1089, 0, 0) telegram_sticker_downloader-telegram_sticker_downloader-1 | ---------------------------- telegram_sticker_downloader-telegram_sticker_downloader-1 | Traceback (most recent call last): telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/app/.venv/lib/python3.11/site-packages/anyio/_core/_sockets.py", line 167, in try_connect telegram_sticker_downloader-telegram_sticker_downloader-1 | stream = await asynclib.connect_tcp(remote_host, remote_port, local_address) telegram_sticker_downloader-telegram_sticker_downloader-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/app/.venv/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 1627, in connect_tcp telegram_sticker_downloader-telegram_sticker_downloader-1 | await get_running_loop().create_connection( telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/usr/local/lib/python3.11/asyncio/base_events.py", line 1073, in create_connection telegram_sticker_downloader-telegram_sticker_downloader-1 | raise exceptions[0] telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/usr/local/lib/python3.11/asyncio/base_events.py", line 1058, in create_connection telegram_sticker_downloader-telegram_sticker_downloader-1 | sock = await self._connect_sock( telegram_sticker_downloader-telegram_sticker_downloader-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^ telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/usr/local/lib/python3.11/asyncio/base_events.py", line 964, in _connect_sock telegram_sticker_downloader-telegram_sticker_downloader-1 | await self.sock_connect(sock, address) telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/usr/local/lib/python3.11/asyncio/selector_events.py", line 633, in sock_connect telegram_sticker_downloader-telegram_sticker_downloader-1 | return await fut telegram_sticker_downloader-telegram_sticker_downloader-1 | ^^^^^^^^^ telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/usr/local/lib/python3.11/asyncio/selector_events.py", line 668, in _sock_connect_cb telegram_sticker_downloader-telegram_sticker_downloader-1 | raise OSError(err, f'Connect call failed {address}') telegram_sticker_downloader-telegram_sticker_downloader-1 | ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.0.1', 1089) telegram_sticker_downloader-telegram_sticker_downloader-1 | telegram_sticker_downloader-telegram_sticker_downloader-1 | telegram_sticker_downloader-telegram_sticker_downloader-1 | The above exception was the direct cause of the following exception: telegram_sticker_downloader-telegram_sticker_downloader-1 | telegram_sticker_downloader-telegram_sticker_downloader-1 | Traceback (most recent call last): telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/app/.venv/lib/python3.11/site-packages/httpcore/_exceptions.py", line 10, in map_exceptions telegram_sticker_downloader-telegram_sticker_downloader-1 | yield telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/app/.venv/lib/python3.11/site-packages/httpcore/_backends/anyio.py", line 114, in connect_tcp telegram_sticker_downloader-telegram_sticker_downloader-1 | stream: anyio.abc.ByteStream = await anyio.connect_tcp( telegram_sticker_downloader-telegram_sticker_downloader-1 | ^^^^^^^^^^^^^^^^^^^^^^^^ telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/app/.venv/lib/python3.11/site-packages/anyio/_core/_sockets.py", line 225, in connect_tcp telegram_sticker_downloader-telegram_sticker_downloader-1 | raise OSError("All connection attempts failed") from cause telegram_sticker_downloader-telegram_sticker_downloader-1 | OSError: All connection attempts failed telegram_sticker_downloader-telegram_sticker_downloader-1 | telegram_sticker_downloader-telegram_sticker_downloader-1 | The above exception was the direct cause of the following exception: telegram_sticker_downloader-telegram_sticker_downloader-1 | telegram_sticker_downloader-telegram_sticker_downloader-1 | Traceback (most recent call last): telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/app/.venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 60, in map_httpcore_exceptions telegram_sticker_downloader-telegram_sticker_downloader-1 | yield telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/app/.venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 353, in handle_async_request telegram_sticker_downloader-telegram_sticker_downloader-1 | resp = await self._pool.handle_async_request(req) telegram_sticker_downloader-telegram_sticker_downloader-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/app/.venv/lib/python3.11/site-packages/httpcore/_async/connection_pool.py", line 262, in handle_async_request telegram_sticker_downloader-telegram_sticker_downloader-1 | raise exc telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/app/.venv/lib/python3.11/site-packages/httpcore/_async/connection_pool.py", line 245, in handle_async_request telegram_sticker_downloader-telegram_sticker_downloader-1 | response = await connection.handle_async_request(request) telegram_sticker_downloader-telegram_sticker_downloader-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/app/.venv/lib/python3.11/site-packages/httpcore/_async/http_proxy.py", line 271, in handle_async_request telegram_sticker_downloader-telegram_sticker_downloader-1 | connect_response = await self._connection.handle_async_request( telegram_sticker_downloader-telegram_sticker_downloader-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/app/.venv/lib/python3.11/site-packages/httpcore/_async/connection.py", line 92, in handle_async_request telegram_sticker_downloader-telegram_sticker_downloader-1 | raise exc telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/app/.venv/lib/python3.11/site-packages/httpcore/_async/connection.py", line 69, in handle_async_request telegram_sticker_downloader-telegram_sticker_downloader-1 | stream = await self._connect(request) telegram_sticker_downloader-telegram_sticker_downloader-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/app/.venv/lib/python3.11/site-packages/httpcore/_async/connection.py", line 117, in _connect telegram_sticker_downloader-telegram_sticker_downloader-1 | stream = await self._network_backend.connect_tcp(**kwargs) telegram_sticker_downloader-telegram_sticker_downloader-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/app/.venv/lib/python3.11/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp telegram_sticker_downloader-telegram_sticker_downloader-1 | return await self._backend.connect_tcp( telegram_sticker_downloader-telegram_sticker_downloader-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/app/.venv/lib/python3.11/site-packages/httpcore/_backends/anyio.py", line 112, in connect_tcp telegram_sticker_downloader-telegram_sticker_downloader-1 | with map_exceptions(exc_map): telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/usr/local/lib/python3.11/contextlib.py", line 155, in exit telegram_sticker_downloader-telegram_sticker_downloader-1 | self.gen.throw(typ, value, traceback) telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/app/.venv/lib/python3.11/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions telegram_sticker_downloader-telegram_sticker_downloader-1 | raise to_exc(exc) from exc telegram_sticker_downloader-telegram_sticker_downloader-1 | httpcore.ConnectError: All connection attempts failed telegram_sticker_downloader-telegram_sticker_downloader-1 | telegram_sticker_downloader-telegram_sticker_downloader-1 | The above exception was the direct cause of the following exception: telegram_sticker_downloader-telegram_sticker_downloader-1 | telegram_sticker_downloader-telegram_sticker_downloader-1 | Traceback (most recent call last): telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/app/.venv/lib/python3.11/site-packages/telegram/request/_httpxrequest.py", line 216, in do_request telegram_sticker_downloader-telegram_sticker_downloader-1 | res = await self._client.request( telegram_sticker_downloader-telegram_sticker_downloader-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/app/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1530, in request telegram_sticker_downloader-telegram_sticker_downloader-1 | return await self.send(request, auth=auth, follow_redirects=follow_redirects) telegram_sticker_downloader-telegram_sticker_downloader-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/app/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1617, in send telegram_sticker_downloader-telegram_sticker_downloader-1 | response = await self._send_handling_auth( telegram_sticker_downloader-telegram_sticker_downloader-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/app/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1645, in _send_handling_auth telegram_sticker_downloader-telegram_sticker_downloader-1 | response = await self._send_handling_redirects( telegram_sticker_downloader-telegram_sticker_downloader-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/app/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1682, in _send_handling_redirects telegram_sticker_downloader-telegram_sticker_downloader-1 | response = await self._send_single_request(request) telegram_sticker_downloader-telegram_sticker_downloader-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/app/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1719, in _send_single_request telegram_sticker_downloader-telegram_sticker_downloader-1 | response = await transport.handle_async_request(request) telegram_sticker_downloader-telegram_sticker_downloader-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/app/.venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 352, in handle_async_request telegram_sticker_downloader-telegram_sticker_downloader-1 | with map_httpcore_exceptions(): telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/usr/local/lib/python3.11/contextlib.py", line 155, in exit telegram_sticker_downloader-telegram_sticker_downloader-1 | self.gen.throw(typ, value, traceback) telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/app/.venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 77, in map_httpcore_exceptions telegram_sticker_downloader-telegram_sticker_downloader-1 | raise mapped_exc(message) from exc telegram_sticker_downloader-telegram_sticker_downloader-1 | httpx.ConnectError: All connection attempts failed telegram_sticker_downloader-telegram_sticker_downloader-1 | telegram_sticker_downloader-telegram_sticker_downloader-1 | The above exception was the direct cause of the following exception: telegram_sticker_downloader-telegram_sticker_downloader-1 | telegram_sticker_downloader-telegram_sticker_downloader-1 | Traceback (most recent call last): telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/app/main.py", line 217, in
telegram_sticker_downloader-telegram_sticker_downloader-1 | main(token)
telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/app/main.py", line 199, in main
telegram_sticker_downloader-telegram_sticker_downloader-1 | application.run_polling(allowed_updates=Update.ALL_TYPES)
telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/app/.venv/lib/python3.11/site-packages/telegram/ext/_application.py", line 752, in run_polling
telegram_sticker_downloader-telegram_sticker_downloader-1 | return self.run(
telegram_sticker_downloader-telegram_sticker_downloader-1 | ^^^^^^^^^^^
telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/app/.venv/lib/python3.11/site-packages/telegram/ext/_application.py", line 946, in __run
telegram_sticker_downloader-telegram_sticker_downloader-1 | raise exc
telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/app/.venv/lib/python3.11/site-packages/telegram/ext/_application.py", line 935, in run
telegram_sticker_downloader-telegram_sticker_downloader-1 | loop.run_until_complete(self.initialize())
telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/usr/local/lib/python3.11/asyncio/base_events.py", line 650, in run_until_complete
telegram_sticker_downloader-telegram_sticker_downloader-1 | return future.result()
telegram_sticker_downloader-telegram_sticker_downloader-1 | ^^^^^^^^^^^^^^^
telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/app/.venv/lib/python3.11/site-packages/telegram/ext/_application.py", line 422, in initialize
telegram_sticker_downloader-telegram_sticker_downloader-1 | await self.bot.initialize()
telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/app/.venv/lib/python3.11/site-packages/telegram/ext/_extbot.py", line 278, in initialize
telegram_sticker_downloader-telegram_sticker_downloader-1 | await super().initialize()
telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/app/.venv/lib/python3.11/site-packages/telegram/_bot.py", line 598, in initialize
telegram_sticker_downloader-telegram_sticker_downloader-1 | await self.get_me()
telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/app/.venv/lib/python3.11/site-packages/telegram/ext/_extbot.py", line 1717, in get_me
telegram_sticker_downloader-telegram_sticker_downloader-1 | return await super().get_me(
telegram_sticker_downloader-telegram_sticker_downloader-1 | ^^^^^^^^^^^^^^^^^^^^^
telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/app/.venv/lib/python3.11/site-packages/telegram/_bot.py", line 388, in decorator
telegram_sticker_downloader-telegram_sticker_downloader-1 | result = await func(self, *args, **kwargs) # skipcq: PYL-E1102
telegram_sticker_downloader-telegram_sticker_downloader-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/app/.venv/lib/python3.11/site-packages/telegram/_bot.py", line 743, in get_me
telegram_sticker_downloader-telegram_sticker_downloader-1 | result = await self._post(
telegram_sticker_downloader-telegram_sticker_downloader-1 | ^^^^^^^^^^^^^^^^^
telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/app/.venv/lib/python3.11/site-packages/telegram/_bot.py", line 476, in _post
telegram_sticker_downloader-telegram_sticker_downloader-1 | return await self._do_post(
telegram_sticker_downloader-telegram_sticker_downloader-1 | ^^^^^^^^^^^^^^^^^^^^
telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/app/.venv/lib/python3.11/site-packages/telegram/ext/_extbot.py", line 332, in _do_post
telegram_sticker_downloader-telegram_sticker_downloader-1 | return await super()._do_post(
telegram_sticker_downloader-telegram_sticker_downloader-1 | ^^^^^^^^^^^^^^^^^^^^^^^
telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/app/.venv/lib/python3.11/site-packages/telegram/_bot.py", line 504, in _do_post
telegram_sticker_downloader-telegram_sticker_downloader-1 | return await request.post(
telegram_sticker_downloader-telegram_sticker_downloader-1 | ^^^^^^^^^^^^^^^^^^^
telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/app/.venv/lib/python3.11/site-packages/telegram/request/_baserequest.py", line 168, in post
telegram_sticker_downloader-telegram_sticker_downloader-1 | result = await self._request_wrapper(
telegram_sticker_downloader-telegram_sticker_downloader-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/app/.venv/lib/python3.11/site-packages/telegram/request/_baserequest.py", line 288, in _request_wrapper
telegram_sticker_downloader-telegram_sticker_downloader-1 | raise exc
telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/app/.venv/lib/python3.11/site-packages/telegram/request/_baserequest.py", line 278, in _request_wrapper
telegram_sticker_downloader-telegram_sticker_downloader-1 | code, payload = await self.do_request(
telegram_sticker_downloader-telegram_sticker_downloader-1 | ^^^^^^^^^^^^^^^^^^^^^^
telegram_sticker_downloader-telegram_sticker_downloader-1 | File "/app/.venv/lib/python3.11/site-packages/telegram/request/_httpxrequest.py", line 240, in do_request
telegram_sticker_downloader-telegram_sticker_downloader-1 | raise NetworkError(f"httpx.{err.class.name}: {err}") from err
telegram_sticker_downloader-telegram_sticker_downloader-1 | telegram.error.NetworkError: httpx.ConnectError: All connection attempts failed
telegram_sticker_downloader-telegram_sticker_downloader-1 exited with code 0
(连不上掉了XD