Giter Site home page Giter Site logo

Comments (3)

cmd410 avatar cmd410 commented on May 25, 2024

This seems to be network related error. Do you have any kind of PoC to reliably reproduce this?

from origamibot.

Gameheld avatar Gameheld commented on May 25, 2024

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.

vakdevi avatar vakdevi commented on May 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.