knrd1 / chatgpt

ChatGPT IRC bot
https://github.com/knrd1/chatgpt
MIT License
33 stars 7 forks source link

ConnectionResetError: [Errno 104] Connection reset by peer #4

Closed takenek closed 1 year ago

takenek commented 1 year ago

I just run a bot and it's crash. Please add handling for error:

root@radvd:~/chatgpt# ./chatgpt.py Traceback (most recent call last): File "/root/chatgpt/./chatgpt.py", line 25, in message = irc.recv(2048).decode("UTF-8") ConnectionResetError: [Errno 104] Connection reset by peer

knrd1 commented 1 year ago

This is a duplicate of: https://github.com/knrd1/chatgpt/issues/3 Error handling to be implemented

takenek commented 1 year ago

Hey Problem still exist i just pull new version and get same error but other line:

root@radvd:~/chatgpt# python3 chatgpt.py Traceback (most recent call last): File "/root/chatgpt/chatgpt.py", line 28, in message = irc.recv(2048).decode("UTF-8") ConnectionResetError: [Errno 104] Connection reset by peer

Best Regards TaKeN

takenek commented 1 year ago

And problem still exist:

root@radvd:~/chatgpt# python3 chatgpt.py
connecting to:irc.wroclaw.pl
connected to:irc.wroclaw.pl
Traceback (most recent call last):
  File "/root/chatgpt/chatgpt.py", line 37, in <module>
    message = irc.recv(2048).decode("UTF-8")
ConnectionResetError: [Errno 104] Connection reset by peer
root@radvd:~/chatgpt#
knrd1 commented 1 year ago

As discussed, I'm unable to reproduce this error.

Looks like certain conditions must be met to get this error, e.g: port 113 is blocked using DROP rule (Not REJECT).

Also, it's intermittent, doesn't happen always, even if the condition is met.

Closing, this won't be "fixed".