Comments (3)
This seems to be network related error. Do you have any kind of PoC to reliably reproduce this?
from origamibot.
I restarted the bot 2 days ago and the bot stopped reacting to my commands yesterday. The daily announcement at 23:59 worked without problems. The server on which the is running had no downtime. The error log shows the following:
*** | Exception in thread Listen thread:
*** | Traceback (most recent call last):
*** | File "/usr/local/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
*** | self.run()
*** | File "/usr/local/lib/python3.10/threading.py", line 953, in run
*** | self._target(*self._args, **self._kwargs)
*** | File "/usr/local/lib/python3.10/site-packages/origamibot/core/bot.py", line 1440, in _listen_loop
*** | updates = self.get_updates()
*** | File "/usr/local/lib/python3.10/site-packages/origamibot/core/bot.py", line 313, in get_updates
*** | updates = get_updates(
*** | File "/usr/local/lib/python3.10/site-packages/origamibot/core/api_request.py", line 109, in get_updates
*** | updates = request(
*** | File "/usr/local/lib/python3.10/site-packages/origamibot/core/api_request.py", line 91, in request
*** | raise TelegramAPIError(f'[{response.status_code}] {description}')
*** | origamibot.core.exceptions.TelegramAPIError: [429] Too Many Requests: retry after 5
from origamibot.
Hello. I got the same exception in the listen thread after about 5 minutes.
Problem is there is no way to catch this exception and deal with it in the user application (and the bot being toast).
Exception in thread Listen thread:
Traceback (most recent call last):
File "/usr/lib/python3.10/threading.py", line 1009, in _bootstrap_inner
self.run()%
File "/usr/lib/python3.10/threading.py", line 946, in run
self._target(*self._args, **self._kwargs)
File "/home/pi/.local/lib/python3.10/site-packages/origamibot/core/bot.py", line 1440, in _listen_loop
updates = self.get_updates()
File "/home/pi/.local/lib/python3.10/site-packages/origamibot/core/bot.py", line 313, in get_updates
updates = get_updates(
File "/home/pi/.local/lib/python3.10/site-packages/origamibot/core/api_request.py", line 109, in get_updates
updates = request(
File "/home/pi/.local/lib/python3.10/site-packages/origamibot/core/api_request.py", line 91, in request
raise TelegramAPIError(f'[{response.status_code}] {description}')
origamibot.core.exceptions.TelegramAPIError: [429] Too Many Requests: retry after 5
from origamibot.
Related Issues (12)
- Implement all Telegram API methods
- Implement webhooks
- Inline support?
- Broken sendMediaGroup
- Markup submodule support HOT 1
- Send Poll: Reply Markup is Optional, but needs unfold() HOT 1
- After internet reconnect the bot does not receive updates anymore HOT 3
- CI is broken, for some reason. HOT 1
- Handling of connection error exceptions
- Support Inline mode
- Support messages with no commands
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from origamibot.