Forums

Connection aborted - ConnectionResetError(104, 'Connection reset by peer')

I had been executing a script designed to manage telebot commands. Initially, it functioned flawlessly for a brief period; however, it abruptly ceased operation and started displaying the following error message: Error: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer')). Despite my efforts to rerun the code, I am still encountering the same issue. This error primarily occurs when attempting to access specific files housed on PythonAnywhere, such as CSV or JSON files. Interestingly, when I input commands that do not necessitate the use of these files, like the /help command, the system operates perfectly.

We need more details about your code to even try to help you.