Async submission problem #40

Closed
opened 2023-08-16 12:05:05 +03:00 by profitroll · 1 comment
Owner
Aug 15 22:30:06 minecraft2 bash[2101262]: pyrogram.dispatcher.handler_worker | ERROR | Telegram says: [400 MESSAGE_TOO_LONG] - The message text is too long (caused by "messages.SendMessage")
Aug 15 22:30:06 minecraft2 bash[2101262]: Traceback (most recent call last):
Aug 15 22:30:06 minecraft2 bash[2101262]:   File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/httpcore/backends/asyncio.py", line 34, in read
Aug 15 22:30:06 minecraft2 bash[2101262]:     return await self._stream.receive(max_bytes=max_bytes)
Aug 15 22:30:06 minecraft2 bash[2101262]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Aug 15 22:30:06 minecraft2 bash[2101262]:   File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 1203, in receive
Aug 15 22:30:06 minecraft2 bash[2101262]:     await self._protocol.read_event.wait()
Aug 15 22:30:06 minecraft2 bash[2101262]:   File "/usr/lib/python3.11/asyncio/locks.py", line 213, in wait
Aug 15 22:30:06 minecraft2 bash[2101262]:     await fut
Aug 15 22:30:06 minecraft2 bash[2101262]: asyncio.exceptions.CancelledError
Aug 15 22:30:06 minecraft2 bash[2101262]: During handling of the above exception, another exception occurred:
Aug 15 22:30:06 minecraft2 bash[2101262]: Traceback (most recent call last):
Aug 15 22:30:06 minecraft2 bash[2101262]:   File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/httpcore/_exceptions.py", line 10, in map_exceptions
Aug 15 22:30:06 minecraft2 bash[2101262]:     yield
Aug 15 22:30:06 minecraft2 bash[2101262]:   File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/httpcore/backends/asyncio.py", line 32, in read
Aug 15 22:30:06 minecraft2 bash[2101262]:     with anyio.fail_after(timeout):
Aug 15 22:30:06 minecraft2 bash[2101262]:   File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/anyio/_core/_tasks.py", line 119, in __exit__
Aug 15 22:30:06 minecraft2 bash[2101262]:     raise TimeoutError
Aug 15 22:30:06 minecraft2 bash[2101262]: TimeoutError
Aug 15 22:30:06 minecraft2 bash[2101262]: During handling of the above exception, another exception occurred:
Aug 15 22:30:06 minecraft2 bash[2101262]: Traceback (most recent call last):
Aug 15 22:30:06 minecraft2 bash[2101262]:   File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 60, in map_httpcore_exceptions
Aug 15 22:30:06 minecraft2 bash[2101262]:     yield
Aug 15 22:30:06 minecraft2 bash[2101262]:   File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 353, in handle_async_request
Aug 15 22:30:06 minecraft2 bash[2101262]:     resp = await self._pool.handle_async_request(req)
Aug 15 22:30:06 minecraft2 bash[2101262]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Aug 15 22:30:06 minecraft2 bash[2101262]:   File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/httpcore/_async/connection_pool.py", line 253, in handle_async_request
Aug 15 22:30:06 minecraft2 bash[2101262]:     raise exc
Aug 15 22:30:06 minecraft2 bash[2101262]:   File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/httpcore/_async/connection_pool.py", line 237, in handle_async_request
Aug 15 22:30:06 minecraft2 bash[2101262]:     response = await connection.handle_async_request(request)
Aug 15 22:30:06 minecraft2 bash[2101262]:                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Aug 15 22:30:06 minecraft2 bash[2101262]:   File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/httpcore/_async/connection.py", line 90, in handle_async_request
Aug 15 22:30:06 minecraft2 bash[2101262]:     return await self._connection.handle_async_request(request)
Aug 15 22:30:06 minecraft2 bash[2101262]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Aug 15 22:30:06 minecraft2 bash[2101262]:   File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/httpcore/_async/http11.py", line 112, in handle_async_request
Aug 15 22:30:06 minecraft2 bash[2101262]:     raise exc
Aug 15 22:30:06 minecraft2 bash[2101262]:   File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/httpcore/_async/http11.py", line 91, in handle_async_request
Aug 15 22:30:06 minecraft2 bash[2101262]:     ) = await self._receive_response_headers(**kwargs)
Aug 15 22:30:06 minecraft2 bash[2101262]:         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Aug 15 22:30:06 minecraft2 bash[2101262]:   File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/httpcore/_async/http11.py", line 155, in _receive_response_headers
Aug 15 22:30:06 minecraft2 bash[2101262]:     event = await self._receive_event(timeout=timeout)
Aug 15 22:30:06 minecraft2 bash[2101262]:             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Aug 15 22:30:06 minecraft2 bash[2101262]:   File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/httpcore/_async/http11.py", line 191, in _receive_event
Aug 15 22:30:06 minecraft2 bash[2101262]:     data = await self._network_stream.read(
Aug 15 22:30:06 minecraft2 bash[2101262]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Aug 15 22:30:06 minecraft2 bash[2101262]:   File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/httpcore/backends/asyncio.py", line 31, in read
Aug 15 22:30:06 minecraft2 bash[2101262]:     with map_exceptions(exc_map):
Aug 15 22:30:06 minecraft2 bash[2101262]:   File "/usr/lib/python3.11/contextlib.py", line 155, in __exit__
Aug 15 22:30:06 minecraft2 bash[2101262]:     self.gen.throw(typ, value, traceback)
Aug 15 22:30:06 minecraft2 bash[2101262]:   File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
Aug 15 22:30:06 minecraft2 bash[2101262]:     raise to_exc(exc)
Aug 15 22:30:06 minecraft2 bash[2101262]: httpcore.ReadTimeout
Aug 15 22:30:06 minecraft2 bash[2101262]: The above exception was the direct cause of the following exception:
Aug 15 22:30:06 minecraft2 bash[2101262]: Traceback (most recent call last):
Aug 15 22:30:06 minecraft2 bash[2101262]:   File "/home/supermine/Python/Duptsia/plugins/handlers/submission.py", line 222, in get_submission
Aug 15 22:30:06 minecraft2 bash[2101262]:     submitted = await app.submit_media(str(inserted.inserted_id))
Aug 15 22:30:06 minecraft2 bash[2101262]:                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Aug 15 22:30:06 minecraft2 bash[2101262]:   File "/home/supermine/Python/Duptsia/classes/pyroclient.py", line 179, in submit_media
Aug 15 22:30:06 minecraft2 bash[2101262]:     response = await photo_upload(
Aug 15 22:30:06 minecraft2 bash[2101262]:                ^^^^^^^^^^^^^^^^^^^
Aug 15 22:30:06 minecraft2 bash[2101262]:   File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/photosapi_client/api/default/photo_upload_albums_album_photos_post.py", line 202, in asyncio_detailed
Aug 15 22:30:06 minecraft2 bash[2101262]:     response = await _client.request(**kwargs)
Aug 15 22:30:06 minecraft2 bash[2101262]:                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Aug 15 22:30:06 minecraft2 bash[2101262]:   File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1533, in request
Aug 15 22:30:06 minecraft2 bash[2101262]:     return await self.send(request, auth=auth, follow_redirects=follow_redirects)
Aug 15 22:30:06 minecraft2 bash[2101262]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Aug 15 22:30:06 minecraft2 bash[2101262]:   File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1620, in send
Aug 15 22:30:06 minecraft2 bash[2101262]:     response = await self._send_handling_auth(
Aug 15 22:30:06 minecraft2 bash[2101262]:                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Aug 15 22:30:06 minecraft2 bash[2101262]:   File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1648, in _send_handling_auth
Aug 15 22:30:06 minecraft2 bash[2101262]:     response = await self._send_handling_redirects(
Aug 15 22:30:06 minecraft2 bash[2101262]:                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Aug 15 22:30:06 minecraft2 bash[2101262]:   File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1685, in _send_handling_redirects
Aug 15 22:30:06 minecraft2 bash[2101262]:     response = await self._send_single_request(request)
Aug 15 22:30:06 minecraft2 bash[2101262]:                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Aug 15 22:30:06 minecraft2 bash[2101262]:   File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1722, in _send_single_request
Aug 15 22:30:06 minecraft2 bash[2101262]:     response = await transport.handle_async_request(request)
Aug 15 22:30:06 minecraft2 bash[2101262]:                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Aug 15 22:30:06 minecraft2 bash[2101262]:   File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 352, in handle_async_request
Aug 15 22:30:06 minecraft2 bash[2101262]:     with map_httpcore_exceptions():
Aug 15 22:30:06 minecraft2 bash[2101262]:   File "/usr/lib/python3.11/contextlib.py", line 155, in __exit__
Aug 15 22:30:06 minecraft2 bash[2101262]:     self.gen.throw(typ, value, traceback)
Aug 15 22:30:06 minecraft2 bash[2101262]:   File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 77, in map_httpcore_exceptions
Aug 15 22:30:06 minecraft2 bash[2101262]:     raise mapped_exc(message) from exc
Aug 15 22:30:06 minecraft2 bash[2101262]: httpx.ReadTimeout
Aug 15 22:30:06 minecraft2 bash[2101262]: During handling of the above exception, another exception occurred:
Aug 15 22:30:06 minecraft2 bash[2101262]: Traceback (most recent call last):
Aug 15 22:30:06 minecraft2 bash[2101262]:   File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/pyrogram/dispatcher.py", line 240, in handler_worker
Aug 15 22:30:06 minecraft2 bash[2101262]:     await handler.callback(self.client, *args)
Aug 15 22:30:06 minecraft2 bash[2101262]:   File "/home/supermine/Python/Duptsia/plugins/handlers/submission.py", line 249, in get_submission
Aug 15 22:30:06 minecraft2 bash[2101262]:     await msg.reply_text(format_exc(), quote=True)
Aug 15 22:30:06 minecraft2 bash[2101262]:   File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/pyrogram/types/messages_and_media/message.py", line 970, in reply_text
Aug 15 22:30:06 minecraft2 bash[2101262]:     return await self._client.send_message(
Aug 15 22:30:06 minecraft2 bash[2101262]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Aug 15 22:30:06 minecraft2 bash[2101262]:   File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/pyrogram/methods/messages/send_message.py", line 126, in send_message
Aug 15 22:30:06 minecraft2 bash[2101262]:     r = await self.invoke(
Aug 15 22:30:06 minecraft2 bash[2101262]:         ^^^^^^^^^^^^^^^^^^
Aug 15 22:30:06 minecraft2 bash[2101262]:   File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/pyrogram/methods/advanced/invoke.py", line 79, in invoke
Aug 15 22:30:06 minecraft2 bash[2101262]:     r = await self.session.invoke(
Aug 15 22:30:06 minecraft2 bash[2101262]:         ^^^^^^^^^^^^^^^^^^^^^^^^^^
Aug 15 22:30:06 minecraft2 bash[2101262]:   File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/pyrogram/session/session.py", line 389, in invoke
Aug 15 22:30:06 minecraft2 bash[2101262]:     return await self.send(query, timeout=timeout)
Aug 15 22:30:06 minecraft2 bash[2101262]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Aug 15 22:30:06 minecraft2 bash[2101262]:   File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/pyrogram/session/session.py", line 357, in send
Aug 15 22:30:06 minecraft2 bash[2101262]:     RPCError.raise_it(result, type(data))
Aug 15 22:30:06 minecraft2 bash[2101262]:   File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/pyrogram/errors/rpc_error.py", line 91, in raise_it
Aug 15 22:30:06 minecraft2 bash[2101262]:     raise getattr(
Aug 15 22:30:06 minecraft2 bash[2101262]: pyrogram.errors.exceptions.bad_request_400.MessageTooLong: Telegram says: [400 MESSAGE_TOO_LONG] - The message text is too long (caused by "messages.SendMessage")
```systemd Aug 15 22:30:06 minecraft2 bash[2101262]: pyrogram.dispatcher.handler_worker | ERROR | Telegram says: [400 MESSAGE_TOO_LONG] - The message text is too long (caused by "messages.SendMessage") Aug 15 22:30:06 minecraft2 bash[2101262]: Traceback (most recent call last): Aug 15 22:30:06 minecraft2 bash[2101262]: File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/httpcore/backends/asyncio.py", line 34, in read Aug 15 22:30:06 minecraft2 bash[2101262]: return await self._stream.receive(max_bytes=max_bytes) Aug 15 22:30:06 minecraft2 bash[2101262]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Aug 15 22:30:06 minecraft2 bash[2101262]: File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 1203, in receive Aug 15 22:30:06 minecraft2 bash[2101262]: await self._protocol.read_event.wait() Aug 15 22:30:06 minecraft2 bash[2101262]: File "/usr/lib/python3.11/asyncio/locks.py", line 213, in wait Aug 15 22:30:06 minecraft2 bash[2101262]: await fut Aug 15 22:30:06 minecraft2 bash[2101262]: asyncio.exceptions.CancelledError Aug 15 22:30:06 minecraft2 bash[2101262]: During handling of the above exception, another exception occurred: Aug 15 22:30:06 minecraft2 bash[2101262]: Traceback (most recent call last): Aug 15 22:30:06 minecraft2 bash[2101262]: File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/httpcore/_exceptions.py", line 10, in map_exceptions Aug 15 22:30:06 minecraft2 bash[2101262]: yield Aug 15 22:30:06 minecraft2 bash[2101262]: File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/httpcore/backends/asyncio.py", line 32, in read Aug 15 22:30:06 minecraft2 bash[2101262]: with anyio.fail_after(timeout): Aug 15 22:30:06 minecraft2 bash[2101262]: File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/anyio/_core/_tasks.py", line 119, in __exit__ Aug 15 22:30:06 minecraft2 bash[2101262]: raise TimeoutError Aug 15 22:30:06 minecraft2 bash[2101262]: TimeoutError Aug 15 22:30:06 minecraft2 bash[2101262]: During handling of the above exception, another exception occurred: Aug 15 22:30:06 minecraft2 bash[2101262]: Traceback (most recent call last): Aug 15 22:30:06 minecraft2 bash[2101262]: File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 60, in map_httpcore_exceptions Aug 15 22:30:06 minecraft2 bash[2101262]: yield Aug 15 22:30:06 minecraft2 bash[2101262]: File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 353, in handle_async_request Aug 15 22:30:06 minecraft2 bash[2101262]: resp = await self._pool.handle_async_request(req) Aug 15 22:30:06 minecraft2 bash[2101262]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Aug 15 22:30:06 minecraft2 bash[2101262]: File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/httpcore/_async/connection_pool.py", line 253, in handle_async_request Aug 15 22:30:06 minecraft2 bash[2101262]: raise exc Aug 15 22:30:06 minecraft2 bash[2101262]: File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/httpcore/_async/connection_pool.py", line 237, in handle_async_request Aug 15 22:30:06 minecraft2 bash[2101262]: response = await connection.handle_async_request(request) Aug 15 22:30:06 minecraft2 bash[2101262]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Aug 15 22:30:06 minecraft2 bash[2101262]: File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/httpcore/_async/connection.py", line 90, in handle_async_request Aug 15 22:30:06 minecraft2 bash[2101262]: return await self._connection.handle_async_request(request) Aug 15 22:30:06 minecraft2 bash[2101262]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Aug 15 22:30:06 minecraft2 bash[2101262]: File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/httpcore/_async/http11.py", line 112, in handle_async_request Aug 15 22:30:06 minecraft2 bash[2101262]: raise exc Aug 15 22:30:06 minecraft2 bash[2101262]: File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/httpcore/_async/http11.py", line 91, in handle_async_request Aug 15 22:30:06 minecraft2 bash[2101262]: ) = await self._receive_response_headers(**kwargs) Aug 15 22:30:06 minecraft2 bash[2101262]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Aug 15 22:30:06 minecraft2 bash[2101262]: File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/httpcore/_async/http11.py", line 155, in _receive_response_headers Aug 15 22:30:06 minecraft2 bash[2101262]: event = await self._receive_event(timeout=timeout) Aug 15 22:30:06 minecraft2 bash[2101262]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Aug 15 22:30:06 minecraft2 bash[2101262]: File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/httpcore/_async/http11.py", line 191, in _receive_event Aug 15 22:30:06 minecraft2 bash[2101262]: data = await self._network_stream.read( Aug 15 22:30:06 minecraft2 bash[2101262]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Aug 15 22:30:06 minecraft2 bash[2101262]: File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/httpcore/backends/asyncio.py", line 31, in read Aug 15 22:30:06 minecraft2 bash[2101262]: with map_exceptions(exc_map): Aug 15 22:30:06 minecraft2 bash[2101262]: File "/usr/lib/python3.11/contextlib.py", line 155, in __exit__ Aug 15 22:30:06 minecraft2 bash[2101262]: self.gen.throw(typ, value, traceback) Aug 15 22:30:06 minecraft2 bash[2101262]: File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions Aug 15 22:30:06 minecraft2 bash[2101262]: raise to_exc(exc) Aug 15 22:30:06 minecraft2 bash[2101262]: httpcore.ReadTimeout Aug 15 22:30:06 minecraft2 bash[2101262]: The above exception was the direct cause of the following exception: Aug 15 22:30:06 minecraft2 bash[2101262]: Traceback (most recent call last): Aug 15 22:30:06 minecraft2 bash[2101262]: File "/home/supermine/Python/Duptsia/plugins/handlers/submission.py", line 222, in get_submission Aug 15 22:30:06 minecraft2 bash[2101262]: submitted = await app.submit_media(str(inserted.inserted_id)) Aug 15 22:30:06 minecraft2 bash[2101262]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Aug 15 22:30:06 minecraft2 bash[2101262]: File "/home/supermine/Python/Duptsia/classes/pyroclient.py", line 179, in submit_media Aug 15 22:30:06 minecraft2 bash[2101262]: response = await photo_upload( Aug 15 22:30:06 minecraft2 bash[2101262]: ^^^^^^^^^^^^^^^^^^^ Aug 15 22:30:06 minecraft2 bash[2101262]: File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/photosapi_client/api/default/photo_upload_albums_album_photos_post.py", line 202, in asyncio_detailed Aug 15 22:30:06 minecraft2 bash[2101262]: response = await _client.request(**kwargs) Aug 15 22:30:06 minecraft2 bash[2101262]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Aug 15 22:30:06 minecraft2 bash[2101262]: File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1533, in request Aug 15 22:30:06 minecraft2 bash[2101262]: return await self.send(request, auth=auth, follow_redirects=follow_redirects) Aug 15 22:30:06 minecraft2 bash[2101262]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Aug 15 22:30:06 minecraft2 bash[2101262]: File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1620, in send Aug 15 22:30:06 minecraft2 bash[2101262]: response = await self._send_handling_auth( Aug 15 22:30:06 minecraft2 bash[2101262]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Aug 15 22:30:06 minecraft2 bash[2101262]: File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1648, in _send_handling_auth Aug 15 22:30:06 minecraft2 bash[2101262]: response = await self._send_handling_redirects( Aug 15 22:30:06 minecraft2 bash[2101262]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Aug 15 22:30:06 minecraft2 bash[2101262]: File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1685, in _send_handling_redirects Aug 15 22:30:06 minecraft2 bash[2101262]: response = await self._send_single_request(request) Aug 15 22:30:06 minecraft2 bash[2101262]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Aug 15 22:30:06 minecraft2 bash[2101262]: File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1722, in _send_single_request Aug 15 22:30:06 minecraft2 bash[2101262]: response = await transport.handle_async_request(request) Aug 15 22:30:06 minecraft2 bash[2101262]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Aug 15 22:30:06 minecraft2 bash[2101262]: File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 352, in handle_async_request Aug 15 22:30:06 minecraft2 bash[2101262]: with map_httpcore_exceptions(): Aug 15 22:30:06 minecraft2 bash[2101262]: File "/usr/lib/python3.11/contextlib.py", line 155, in __exit__ Aug 15 22:30:06 minecraft2 bash[2101262]: self.gen.throw(typ, value, traceback) Aug 15 22:30:06 minecraft2 bash[2101262]: File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 77, in map_httpcore_exceptions Aug 15 22:30:06 minecraft2 bash[2101262]: raise mapped_exc(message) from exc Aug 15 22:30:06 minecraft2 bash[2101262]: httpx.ReadTimeout Aug 15 22:30:06 minecraft2 bash[2101262]: During handling of the above exception, another exception occurred: Aug 15 22:30:06 minecraft2 bash[2101262]: Traceback (most recent call last): Aug 15 22:30:06 minecraft2 bash[2101262]: File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/pyrogram/dispatcher.py", line 240, in handler_worker Aug 15 22:30:06 minecraft2 bash[2101262]: await handler.callback(self.client, *args) Aug 15 22:30:06 minecraft2 bash[2101262]: File "/home/supermine/Python/Duptsia/plugins/handlers/submission.py", line 249, in get_submission Aug 15 22:30:06 minecraft2 bash[2101262]: await msg.reply_text(format_exc(), quote=True) Aug 15 22:30:06 minecraft2 bash[2101262]: File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/pyrogram/types/messages_and_media/message.py", line 970, in reply_text Aug 15 22:30:06 minecraft2 bash[2101262]: return await self._client.send_message( Aug 15 22:30:06 minecraft2 bash[2101262]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Aug 15 22:30:06 minecraft2 bash[2101262]: File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/pyrogram/methods/messages/send_message.py", line 126, in send_message Aug 15 22:30:06 minecraft2 bash[2101262]: r = await self.invoke( Aug 15 22:30:06 minecraft2 bash[2101262]: ^^^^^^^^^^^^^^^^^^ Aug 15 22:30:06 minecraft2 bash[2101262]: File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/pyrogram/methods/advanced/invoke.py", line 79, in invoke Aug 15 22:30:06 minecraft2 bash[2101262]: r = await self.session.invoke( Aug 15 22:30:06 minecraft2 bash[2101262]: ^^^^^^^^^^^^^^^^^^^^^^^^^^ Aug 15 22:30:06 minecraft2 bash[2101262]: File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/pyrogram/session/session.py", line 389, in invoke Aug 15 22:30:06 minecraft2 bash[2101262]: return await self.send(query, timeout=timeout) Aug 15 22:30:06 minecraft2 bash[2101262]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Aug 15 22:30:06 minecraft2 bash[2101262]: File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/pyrogram/session/session.py", line 357, in send Aug 15 22:30:06 minecraft2 bash[2101262]: RPCError.raise_it(result, type(data)) Aug 15 22:30:06 minecraft2 bash[2101262]: File "/home/supermine/Python/Duptsia/.venv/lib/python3.11/site-packages/pyrogram/errors/rpc_error.py", line 91, in raise_it Aug 15 22:30:06 minecraft2 bash[2101262]: raise getattr( Aug 15 22:30:06 minecraft2 bash[2101262]: pyrogram.errors.exceptions.bad_request_400.MessageTooLong: Telegram says: [400 MESSAGE_TOO_LONG] - The message text is too long (caused by "messages.SendMessage") ```
profitroll self-assigned this 2023-08-16 12:05:05 +03:00
Author
Owner

Well, it does seem to work. Although PhotosAPI still needs some sort of duplicates finder optimization.

Well, it does seem to work. Although PhotosAPI still needs some sort of duplicates finder optimization.
profitroll added the
Kind/Bug
label 2023-11-29 16:14:18 +02:00
This repo is archived. You cannot comment on issues.
No Milestone
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: profitroll/TelegramPoster#40
No description provided.