Forums

Always-on tasks, Connection aborted

('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

My telegram bot in python worked well for 5 days, but today this error being again and again, my code is 100% correctly, pythonanywhere's servers updating? Or something else?

Perhaps this helps: https://stackoverflow.com/questions/60477835/why-can-connection-aborted-connectionreseterror104-connection-reset-by-p Another possibility is that you're holding the connection open for longer than telegram is happy with and perhaps you just need to remake the connection periodically.