popcorn9499 / Youtube-Discord-Relay-Bot

This is a youtube and discord chat relay bot
MIT License
9 stars 4 forks source link

Possible crash issue #6

Open popcorn9499 opened 7 years ago

popcorn9499 commented 7 years ago

Possible bug when leaving this open for a few days. It crashed with this. It still seemed to be pulling from discord but youtube isnt working

Ignoring exception in on_ready Traceback (most recent call last): File "/usr/local/lib/python3.5/dist-packages/discord/client.py", line 307, in _run_event yield from getattr(self, event)(*args, **kwargs) File "main.py", line 177, in on_ready await youtubeChatImport() #runs the youtube chat import code File "main.py", line 185, in youtubeChatImport await listChat(youtube) #checks the youtube chat File "main.py", line 124, in listChat pageToken=config["pageToken"] #gives the previous token so it loads a new section of the chat File "/usr/local/lib/python3.5/dist-packages/oauth2client/_helpers.py", line 133, in positional_wrapper return wrapped(*args, **kwargs) File "/usr/local/lib/python3.5/dist-packages/googleapiclient/http.py", line 833, in execute method=str(self.method), body=self.body, headers=self.headers) File "/usr/local/lib/python3.5/dist-packages/googleapiclient/http.py", line 160, in _retry_request resp, content = http.request(uri, method, *args, **kwargs) File "/usr/local/lib/python3.5/dist-packages/oauth2client/transport.py", line 175, in new_request redirections, connection_type) File "/usr/local/lib/python3.5/dist-packages/oauth2client/transport.py", line 282, in request connection_type=connection_type) File "/usr/local/lib/python3.5/dist-packages/httplib2/__init__.py", line 1314, in request (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey) File "/usr/local/lib/python3.5/dist-packages/httplib2/__init__.py", line 1064, in _request (response, content) = self._conn_request(conn, request_uri, method, body, headers) File "/usr/local/lib/python3.5/dist-packages/httplib2/__init__.py", line 1017, in _conn_request response = conn.getresponse() File "/usr/lib/python3.5/http/client.py", line 1197, in getresponse response.begin() File "/usr/lib/python3.5/http/client.py", line 297, in begin version, status, reason = self._read_status() File "/usr/lib/python3.5/http/client.py", line 258, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") File "/usr/lib/python3.5/socket.py", line 575, in readinto return self._sock.recv_into(b) File "/usr/lib/python3.5/ssl.py", line 929, in recv_into return self.read(nbytes, buffer) File "/usr/lib/python3.5/ssl.py", line 791, in read return self._sslobj.read(len, buffer) File "/usr/lib/python3.5/ssl.py", line 575, in read v = self._sslobj.read(len, buffer) ConnectionResetError: [Errno 104] Connection reset by peer

popcorn9499 commented 7 years ago

it seemed to continue working after reloading the bot