Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bot stuck without any log/traceback #500

Open
Jipok opened this issue Dec 15, 2023 · 2 comments
Open

Bot stuck without any log/traceback #500

Jipok opened this issue Dec 15, 2023 · 2 comments

Comments

@Jipok
Copy link

Jipok commented Dec 15, 2023

I noticed that after switching to using PROXY, the bot simply began to freeze about once every 2-3 days. It does not respond to messages in telegram (even /help) and everything is fine in the logs. The application stops by ctrl-с without any logs. It looks like this:

...
2023-12-14 12:46:34,884 - root - INFO - New message received from user @Jipok (id: 354339153)
^C2023-12-15 14:56:53,751 - telegram.ext.Application - INFO - Application is stopping. This might take a moment.
2023-12-15 14:56:53,751 - telegram.ext.Application - INFO - Application.stop() complete

After a restart, everything works fine.

I assume that the problem is on the part of the telegram bot(perhaps an infinite timeout somewhere). And for now I’ll replace the PROXY with OPENAI_PROXY, since telegram is still working without problems in my country.
I will post before the end of the year if this replacement helps solve the problem.

@Jipok
Copy link
Author

Jipok commented Dec 25, 2023

Not a single stuck in the last 10 days. So the problem is almost certainly in using a proxy for telegram.

@Jipok
Copy link
Author

Jipok commented Feb 11, 2024

No one stuck since use OPENAI_PROXY.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant