dzakyputra / doggobot

A telegram bot, has a superpower to send you some random dog images.
MIT License
38 stars 33 forks source link

A promise with deactivated error handling raised an error. #6

Open dcorreavi opened 3 years ago

dcorreavi commented 3 years ago

Hi again! I shared the bot with a friend and now I'm getting the error above when I try to use the /bop function.

dzakyputra commented 3 years ago

Hi, can you provide the error details and pictures

dcorreavi commented 3 years ago

image

dzakyputra commented 3 years ago

Hhhhmm I couldn't recreate the error

I ran it on my computer and it works, it only shows the warning for run_async

Is this only one-time error or does it keep happening?

Make sure you are using the latest version of https://github.com/python-telegram-bot/python-telegram-bot

dcorreavi commented 3 years ago

It's happened a couple of times now. I fixed it by rebooting the local server. How could I ensure I'm using the latest version of python-telegram-bot? I ran this command on my virtualenv $ pip3 install python-telegram-bot I could try to install it again, but I'm not sure that would work. Sorry, I'm not a developer :)

dzakyputra commented 3 years ago

You could reinstall the python-telegram-bot library

I assume there is something wrong with the virtual environment, unsupported library, or something, but I am not really sure

You can make sure by running the script on a different machine or computer and see if the error is still there

ghost commented 3 years ago

I got the same error!

ghost commented 3 years ago

I have latest version of python-telegram-bot