LonamiWebs / Telethon

Pure Python 3 MTProto API Telegram client library, for bots too!
https://docs.telethon.dev
MIT License
9.67k stars 1.38k forks source link

telethon.client.updates - ERROR - Fatal error handling updates (this is a bug in Telethon v1.28.5, please report it) #4190

Closed JoGreen closed 11 months ago

JoGreen commented 1 year ago

Code that causes the issue

it doesn't seem to be related to my code, so I don't fill this field

Expected behavior

the client should be up and running

Actual behavior

The client suddenly shutted down

Traceback

2023-08-28 14:38:19,288 - telethon.client.updates - ERROR - Fatal error handling updates (this is a bug in Telethon v1.28.5, please report it)
Traceback (most recent call last):
File "/home/ec2-user/copy-telegram-channels/my_telegram_account_bot/venv/lib/python3.9/site-packages/telethon/client/[updates.py](http://updates.py/)", line 340, in _update_loop
diff = await self(get_diff)
File "/home/ec2-user/copy-telegram-channels/my_telegram_account_bot/venv/lib/python3.9/site-packages/telethon/client/[users.py](http://users.py/)", line 30, in call
return await self._call(self._sender, request, ordered=ordered)
File "/home/ec2-user/copy-telegram-channels/my_telegram_account_bot/venv/lib/python3.9/site-packages/telethon/client/[users.py](http://users.py/)", line 83, in _call
result = await future
telethon.errors.rpcbaseerrors.RPCError: RPCError -505: Nothing stored (caused by GetChannelDifferenceRequest)
2023-08-28 14:38:19,294 - telethon.network.mtprotosender - INFO - Disconnecting from XXX.XXX.XXX.XXX:443/TcpFull...
2023-08-28 14:38:19,295 - telethon.network.mtprotosender - INFO - Disconnection from  XXX.XXX.XXX.XXX:443/TcpFull complete!
2023-08-28 14:38:19,295 - telethon.network.mtprotosender - INFO - Not disconnecting (already have no connection)
2023-08-28 14:38:19,321 - telethon.network.mtprotosender - INFO - Not disconnecting (already have no connection)
2023-08-28 14:38:19,335 - telethon.network.mtprotosender - INFO - Not disconnecting (already have no connection)

Telethon version

1.28.5

Python version

3.9

Operating system (including distribution name and version)

NAME="Amazon Linux" VERSION="2" ID="amzn" ID_LIKE="centos rhel fedora" VERSION_ID="2" PRETTY_NAME="Amazon Linux 2"

Other details

I can't reproduce the issue, because it just happens ONCE on my production server after weeks it was working fine. no clues about a specific message triggering the issue

Checklist

Lonami commented 1 year ago

it just happens ONCE on my production server

It's a temporary server issue that has made a comeback after some years.

omkarsing6458 commented 11 months ago

telethon.client.updates: Fatal error handling updates (this is a bug in Telethon v1.28.5, please report it)

Traceback (most recent call last):

Same error coming in my code

Any solution for this

Lonami commented 11 months ago

You're using an outdated version.