-
-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Labels
bugSomething is wrongSomething is wrong
Description
Checklist
- I am sure the error is coming from Hydrogram's code and not elsewhere
- I have searched in the issue tracker for similar bug reports, including closed ones
- I ran
pip3 install -U https://github.com/hydrogram/hydrogram/archive/dev.zipand reproduced the issue using the latest development version
Description
When I run one of my bots for a long time, it works fine at first, but after a while it stops working, and when I enter the logs, I get the error "the handler is closed" as follows. I also have about 10 bots on my server that work with this module, but while some of them never give this error, some bots in particular constantly give this error and I can never understand why. To solve this problem, I even had to install another bot that would constantly check if the bot was on and reset it if it wasn't.
Steps to reproduce
Run your bot for a long time
Code example
No response
Logs
root@ubuntu-s-4vcpu-16gb-amd-sfo3-01:~# screen -r my_bot
Transport closed=True reading=False 0x555fa38d01d0>; the handler is closed
[10] Retrying "messages.SendMessage" due to: unable to perform operation on <TCPTransport closed=True reading=False 0x555fa38d01d0>; the handler is closed
[10] Retrying "messages.SendMessage" due to: unable to perform operation on <TCPTransport closed=True reading=False 0x555fa38d01d0>; the handler is closed
[10] Retrying "messages.SendMessage" due to: unable to perform operation on <TCPTransport closed=True reading=False 0x555fa38d01d0>; the handler is closed
[10] Retrying "channels.GetFullChannel" due to: unable to perform operation on <TCPTransport closed=True reading=False 0x555fa38d01d0>; the handler is closed
[10] Retrying "messages.SendMessage" due to: unable to perform operation on <TCPTransport closed=True reading=False 0x555fa38d01d0>; the handler is closed
[10] Retrying "messages.SendMessage" due to: unable to perform operation on <TCPTransport closed=True reading=False 0x555fa38d01d0>; the handler is closed
[10] Retrying "channels.GetFullChannel" due to: unable to perform operation on <TCPTransport closed=True reading=False 0x555fa38d01d0>; the handler is closed
[10] Retrying "messages.SendMessage" due to: unable to perform operation on <TCPTransport closed=True reading=False 0x555fa38d01d0>; the handler is closed
[10] Retrying "messages.SendMessage" due to: unable to perform operation on <TCPTransport closed=True reading=False 0x555fa38d01d0>; the handler is closed
[10] Retrying "channels.GetFullChannel" due to: unable to perform operation on <TCPTransport closed=True reading=False 0x555fa38d01d0>; the handler is closed
[10] Retrying "messages.SendMessage" due to: unable to perform operation on <TCPTransport closed=True reading=False 0x555fa38d01d0>; the handler is closedMetadata
Metadata
Assignees
Labels
bugSomething is wrongSomething is wrong