Giter VIP home page Giter VIP logo

Comments (4)

leandrotoledo avatar leandrotoledo commented on May 22, 2024

How exactly to reproduce? Are these errors common in what kind of messages? Would you handle these exceptions and print its messages.to_json()?

Thanks!

from python-telegram-bot.

JokerQyou avatar JokerQyou commented on May 22, 2024

A 502 error indicates that the gateway failed to pass the request to the backend servers, which is, as its first digit indicates, a server error. So actually what you can do is very limited, usually you would want to catch these exceptions and ignore them, or alert that the operation failed.

I've experienced 502 Bad Gateway that day before yesterday, when I was trying to send photo to Telegram server. The errors were gone by yesterday, and I did not change any code related to this. So I think it's the Telegram server's fault.

from python-telegram-bot.

yogch avatar yogch commented on May 22, 2024

Thanks,

I don't know how to reproduce. For the moment I put exception handling (as I should) and it didn't happen again yet.

It was pretty random, I mean, I think I got it while I was blocking in the getUpdates() function, and waiting for text messages only. So I don't know what to say :\

I'll tell if it'll happen again.

from python-telegram-bot.

alfem avatar alfem commented on May 22, 2024

I got this error yesterday too. I wonder if it is some kind of abuse protection.

from python-telegram-bot.

Related Issues (20)

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.