Title: TCPTransport after a while · Issue #29 · hydrogram/hydrogram · GitHub
Open Graph Title: TCPTransport after a while · Issue #29 · hydrogram/hydrogram
X Title: TCPTransport after a while · Issue #29 · hydrogram/hydrogram
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....
Open Graph 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://git...
X 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:/...
Opengraph URL: https://github.com/hydrogram/hydrogram/issues/29
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"TCPTransport after a while","articleBody":"### Checklist\r\n\r\n- [X] I am sure the error is coming from Hydrogram's code and not elsewhere\r\n- [X] I have searched in the issue tracker for similar bug reports, including closed ones\r\n- [X] I ran `pip3 install -U https://github.com/hydrogram/hydrogram/archive/dev.zip` and reproduced the issue using the latest development version\r\n\r\n### Description\r\n\r\nWhen 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.\r\n\r\n### Steps to reproduce\r\n\r\nRun your bot for a long time\r\n\r\n### Code example\r\n\r\n_No response_\r\n\r\n### Logs\r\n\r\n```shell\r\nroot@ubuntu-s-4vcpu-16gb-amd-sfo3-01:~# screen -r my_bot\r\nTransport closed=True reading=False 0x555fa38d01d0\u003e; the handler is closed\r\n[10] Retrying \"messages.SendMessage\" due to: unable to perform operation on \u003cTCPTransport closed=True reading=False 0x555fa38d01d0\u003e; the handler is closed\r\n[10] Retrying \"messages.SendMessage\" due to: unable to perform operation on \u003cTCPTransport closed=True reading=False 0x555fa38d01d0\u003e; the handler is closed\r\n[10] Retrying \"messages.SendMessage\" due to: unable to perform operation on \u003cTCPTransport closed=True reading=False 0x555fa38d01d0\u003e; the handler is closed\r\n[10] Retrying \"channels.GetFullChannel\" due to: unable to perform operation on \u003cTCPTransport closed=True reading=False 0x555fa38d01d0\u003e; the handler is closed\r\n[10] Retrying \"messages.SendMessage\" due to: unable to perform operation on \u003cTCPTransport closed=True reading=False 0x555fa38d01d0\u003e; the handler is closed\r\n[10] Retrying \"messages.SendMessage\" due to: unable to perform operation on \u003cTCPTransport closed=True reading=False 0x555fa38d01d0\u003e; the handler is closed\r\n[10] Retrying \"channels.GetFullChannel\" due to: unable to perform operation on \u003cTCPTransport closed=True reading=False 0x555fa38d01d0\u003e; the handler is closed\r\n[10] Retrying \"messages.SendMessage\" due to: unable to perform operation on \u003cTCPTransport closed=True reading=False 0x555fa38d01d0\u003e; the handler is closed\r\n[10] Retrying \"messages.SendMessage\" due to: unable to perform operation on \u003cTCPTransport closed=True reading=False 0x555fa38d01d0\u003e; the handler is closed\r\n[10] Retrying \"channels.GetFullChannel\" due to: unable to perform operation on \u003cTCPTransport closed=True reading=False 0x555fa38d01d0\u003e; the handler is closed\r\n[10] Retrying \"messages.SendMessage\" due to: unable to perform operation on \u003cTCPTransport closed=True reading=False 0x555fa38d01d0\u003e; the handler is closed\r\n```\r\n","author":{"url":"https://github.com/Eikosa","@type":"Person","name":"Eikosa"},"datePublished":"2024-05-29T15:39:28.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/29/hydrogram/issues/29"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5b0c6cb0-7d10-127b-702d-ea6f4afb0dcd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B230:25BF4B:4358C53:5A52C75:6973229F |
| html-safe-nonce | f64562dbb4a9c30cf9659cfbdcb9579c648255e8927f4be5b76756ed96c379a8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjMwOjI1QkY0Qjo0MzU4QzUzOjVBNTJDNzU6Njk3MzIyOUYiLCJ2aXNpdG9yX2lkIjoiNjk2MjA4NzAzMDE4MzYzMzU2NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 30fb2bf2c7afdb85dd855e787d225ff724aeca9c8bcff8f63532e9750ef81175 |
| hovercard-subject-tag | issue:2323633290 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/hydrogram/hydrogram/29/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9847c293e9eeaf32e2ff6a11860cc9afbd49e0df590d3528a076d4ecf4fd481c/hydrogram/hydrogram/issues/29 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9847c293e9eeaf32e2ff6a11860cc9afbd49e0df590d3528a076d4ecf4fd481c/hydrogram/hydrogram/issues/29 |
| og:image:alt | 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://git... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Eikosa |
| hostname | github.com |
| expected-hostname | github.com |
| None | 44ab3188c1dcfe3be0f9c3feca2e04e14fb79f120939ce2395e4f15ab96ec1d4 |
| turbo-cache-control | no-preview |
| go-import | github.com/hydrogram/hydrogram git https://github.com/hydrogram/hydrogram.git |
| octolytics-dimension-user_id | 153278131 |
| octolytics-dimension-user_login | hydrogram |
| octolytics-dimension-repository_id | 711555265 |
| octolytics-dimension-repository_nwo | hydrogram/hydrogram |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 711555265 |
| octolytics-dimension-repository_network_root_nwo | hydrogram/hydrogram |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | a5e2b48bd1260476599758f5d253b5d24092ab84 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width