Giter VIP home page Giter VIP logo

Comments (4)

Bibo-Joshi avatar Bibo-Joshi commented on June 5, 2024 1

Hi, thanks for reaching out. The topic sounds very similar to #4155 and #4156 and I think that the first draft in #4157 could already address the issue.
Looking at your comments, I'm wondering if we could then also get rid of the suppressing the CancelledError in the _update_fetcher.
However tbh I'm not quite sure in the actual problem in your case. For one I don't quite see what causes the CancelledError in the first place - do you send a keyboard interrupt or SIGTERM? Moreover the logic that includes the mentioned warning exactly prevents the update fetcher from stopping to processing updates so I would expect that updates remain to be processed. Is it possible to boil your code down to an mwe that causes the issue reproducibly and ideally does not need any 3rd party dependencies other that PTB?

from python-telegram-bot.

Bibo-Joshi avatar Bibo-Joshi commented on June 5, 2024 1

Due to the last comment of Vibrat, I'll close this issue. @DominicFrei #4157 will be released in the next version in a bit. If you still encounter similar exceptions after that, feel free to open a new issue including tracebacks :)

from python-telegram-bot.

Vibrat avatar Vibrat commented on June 5, 2024

Hi,

Regarding the cause of the issue, I think it happens due to network issue which causes timeout in http request and later leads to AsyncCancelled. I switched to my new server which has more consistent network and the issue has not been happened again so far.

from python-telegram-bot.

DominicFrei avatar DominicFrei commented on June 5, 2024

Hi,

Regarding the cause of the issue, I think it happens due to network issue which causes timeout in http request and later leads to AsyncCancelled. I switched to my new server which has more consistent network and the issue has not been happened again so far.

I'm running into the same issue on an AWS EC2 which I'd assume to have a quite stable network. At least I didn't have any issues with other apps in recent years regarding network.

I see asyncio.CancelledError many times in the logs though, so there might be more to it than just the network.

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.