Title: Handler is closed. · Issue #18 · PyrogramMod/PyrogramMod · GitHub
Open Graph Title: Handler is closed. · Issue #18 · PyrogramMod/PyrogramMod
X Title: Handler is closed. · Issue #18 · PyrogramMod/PyrogramMod
Description: Checklist I am sure the error is coming from Pyrogram'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/pyrogram/pyrogram/archive/master....
Open Graph Description: Checklist I am sure the error is coming from Pyrogram'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://gith...
X Description: Checklist I am sure the error is coming from Pyrogram'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/PyrogramMod/PyrogramMod/issues/18
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Handler is closed.","articleBody":"### Checklist\n\n- [X] I am sure the error is coming from Pyrogram's code and not elsewhere\n- [X] I have searched in the issue tracker for similar bug reports, including closed ones\n- [X] I ran `pip3 install -U https://github.com/pyrogram/pyrogram/archive/master.zip` and reproduced the issue using the latest development version\n\n### Description\n\nGetting handler is closed error.\n\n### Steps to reproduce\n\nJust running the bot.\n\n### Code example\n\n```python\nnill\n```\n\n\n### Logs\n\n```shell\n-01-21T07:46:56.115221696Z [10] Retrying \"messages.SendMessage\" due to: unable to perform operation on \u003cTCPTransport closed=True reading=False 0x7fc0edd24ff0\u003e; the handler is closed\r\n\r\n2024-01-21T07:46:56.623466868Z unable to perform operation on \u003cTCPTransport closed=True reading=False 0x7fc0edd24ff0\u003e; the handler is closed\r\n\r\n2024-01-21T07:46:56.623511959Z Traceback (most recent call last):\r\n\r\n2024-01-21T07:46:56.623516067Z File \"/opt/venv/lib/python3.12/site-packages/pyrogram/dispatcher.py\", line 240, in handler_worker\r\n\r\n2024-01-21T07:46:56.623519617Z await handler.callback(self.client, *args)\r\n\r\n2024-01-21T07:46:56.623522481Z File \"./main.py\", line 58, in start\r\n\r\n2024-01-21T07:46:56.623525343Z File \"/opt/venv/lib/python3.12/site-packages/pyrogram/types/messages_and_media/message.py\", line 1003, in reply_text\r\n\r\n2024-01-21T07:46:56.623528293Z return await self._client.send_message(\r\n\r\n2024-01-21T07:46:56.623531375Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n\r\n2024-01-21T07:46:56.623534072Z File \"/opt/venv/lib/python3.12/site-packages/pyrogram/methods/messages/send_message.py\", line 137, in send_message\r\n\r\n2024-01-21T07:46:56.623537073Z r = await self.invoke(\r\n\r\n2024-01-21T07:46:56.623539749Z ^^^^^^^^^^^^^^^^^^\r\n\r\n2024-01-21T07:46:56.623542399Z File \"/opt/venv/lib/python3.12/site-packages/pyrogram/methods/advanced/invoke.py\", line 79, in invoke\r\n\r\n2024-01-21T07:46:56.623545227Z r = await self.session.invoke(\r\n\r\n2024-01-21T07:46:56.623547971Z ^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n\r\n2024-01-21T07:46:56.623562414Z File \"/opt/venv/lib/python3.12/site-packages/pyrogram/session/session.py\", line 412, in invoke\r\n\r\n2024-01-21T07:46:56.623565580Z return await self.invoke(query, retries - 1, timeout)\r\n\r\n2024-01-21T07:46:56.623568361Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n\r\n2024-01-21T07:46:56.623571134Z File \"/opt/venv/lib/python3.12/site-packages/pyrogram/session/session.py\", line 412, in invoke\r\n\r\n2024-01-21T07:46:56.623573918Z return await self.invoke(query, retries - 1, timeout)\r\n\r\n2024-01-21T07:46:56.623576605Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n\r\n2024-01-21T07:46:56.623579298Z File \"/opt/venv/lib/python3.12/site-packages/pyrogram/session/session.py\", line 412, in invoke\r\n\r\n2024-01-21T07:46:56.623582109Z return await self.invoke(query, retries - 1, timeout)\r\n\r\n2024-01-21T07:46:56.623584849Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n\r\n2024-01-21T07:46:56.623587702Z [Previous line repeated 7 more times]\r\n\r\n2024-01-21T07:46:56.623590448Z File \"/opt/venv/lib/python3.12/site-packages/pyrogram/session/session.py\", line 402, in invoke\r\n\r\n2024-01-21T07:46:56.623593382Z raise e from None\r\n\r\n2024-01-21T07:46:56.623596092Z File \"/opt/venv/lib/python3.12/site-packages/pyrogram/session/session.py\", line 389, in invoke\r\n\r\n2024-01-21T07:46:56.623612377Z return await self.send(query, timeout=timeout)\r\n\r\n2024-01-21T07:46:56.623615312Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n\r\n2024-01-21T07:46:56.623618023Z File \"/opt/venv/lib/python3.12/site-packages/pyrogram/session/session.py\", line 340, in send\r\n\r\n2024-01-21T07:46:56.623620868Z raise e\r\n\r\n2024-01-21T07:46:56.623624305Z File \"/opt/venv/lib/python3.12/site-packages/pyrogram/session/session.py\", line 337, in send\r\n\r\n2024-01-21T07:46:56.623637592Z await self.connection.send(payload)\r\n\r\n2024-01-21T07:46:56.623640583Z File \"/opt/venv/lib/python3.12/site-packages/pyrogram/connection/connection.py\", line 69, in send\r\n\r\n2024-01-21T07:46:56.623643396Z await self.protocol.send(data)\r\n\r\n2024-01-21T07:46:56.623646022Z File \"/opt/venv/lib/python3.12/site-packages/pyrogram/connection/transport/tcp/tcp_abridged.py\", line 38, in send\r\n\r\n2024-01-21T07:46:56.623648855Z await super().send(\r\n\r\n2024-01-21T07:46:56.623651466Z File \"/opt/venv/lib/python3.12/site-packages/pyrogram/connection/transport/tcp/tcp.py\", line 104, in send\r\n\r\n2024-01-21T07:46:56.623654277Z raise OSError(e)\r\n\r\n2024-01-21T07:46:56.623656914Z OSError: unable to perform operation on \u003cTCPTransport closed=True reading=False 0x7fc0edd24ff0\u003e; the handler is closed\n```\n","author":{"url":"https://github.com/annihilatorrrr","@type":"Person","name":"annihilatorrrr"},"datePublished":"2024-01-21T07:52:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/18/PyrogramMod/issues/18"}
| 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:46405763-9c83-2899-34b4-8d7c7f155d39 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 99AC:3B9F32:86E602:BE1A45:69725006 |
| html-safe-nonce | 50d1a6621af2858b4465dfff3143c9c621d1e11f3c4de62fdae06aa1b4cbff06 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OUFDOjNCOUYzMjo4NkU2MDI6QkUxQTQ1OjY5NzI1MDA2IiwidmlzaXRvcl9pZCI6IjE4NDYwNDI0NjUzMTU5OTk3NTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f53d6ee4bc08723f85c20c7261ee0cb434d19f8aa988bed9e9c319921d6b6c9d |
| hovercard-subject-tag | issue:2092469187 |
| 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/PyrogramMod/PyrogramMod/18/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b1f8cbe5717750a39958efe14d7d789e94667d3faffb8ecd69876c35de50a6b6/PyrogramMod/PyrogramMod/issues/18 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b1f8cbe5717750a39958efe14d7d789e94667d3faffb8ecd69876c35de50a6b6/PyrogramMod/PyrogramMod/issues/18 |
| og:image:alt | Checklist I am sure the error is coming from Pyrogram'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://gith... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | annihilatorrrr |
| hostname | github.com |
| expected-hostname | github.com |
| None | f6d9b08324bb62b2cf170b9e435da2bdc7efa5aa93e7ca70ee3162552c05329b |
| turbo-cache-control | no-preview |
| go-import | github.com/PyrogramMod/PyrogramMod git https://github.com/PyrogramMod/PyrogramMod.git |
| octolytics-dimension-user_id | 145343079 |
| octolytics-dimension-user_login | PyrogramMod |
| octolytics-dimension-repository_id | 435451689 |
| octolytics-dimension-repository_nwo | PyrogramMod/PyrogramMod |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 435451689 |
| octolytics-dimension-repository_network_root_nwo | PyrogramMod/PyrogramMod |
| 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 | 169d2b5c72bff9cc676084f0ac7f8ea888f15f54 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width