Bug: broken pipe after a few minutes of importing
After a few minutes of importing, the plugin breaks with the following error:
Requesting chats with 123456-7891011@g.us
Requesting profile picture of 123456-7891011@g.us (changed for privacy reasons
Exception in thread Thread-7:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.7/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/usr/src/whatsapp/whatsapp/plugin.py", line 198, in collect_pictures
self.socket.get_profile_picture(jid, self.process_profile_picture_response)
File "/usr/src/whatsapp/whatsapp/web_client/client.py", line 282, in get_profile_picture
message_tag = self.call("query", "ProfilePicThumb", f"{jid}")
File "/usr/src/whatsapp/whatsapp/web_client/client.py", line 317, in call
self.activeWs.send(payload)
File "/usr/local/lib/python3.7/site-packages/websocket/_app.py", line 189, in send
if not self.sock or self.sock.send(data, opcode) == 0:
File "/usr/local/lib/python3.7/site-packages/websocket/_core.py", line 283, in send
return self.send_frame(frame)
File "/usr/local/lib/python3.7/site-packages/websocket/_core.py", line 311, in send_frame
l = self._send(data)
File "/usr/local/lib/python3.7/site-packages/websocket/_core.py", line 525, in _send
return send(self.sock, data)
File "/usr/local/lib/python3.7/site-packages/websocket/_socket.py", line 173, in send
return _send()
File "/usr/local/lib/python3.7/site-packages/websocket/_socket.py", line 150, in _send
return sock.send(data)
File "/usr/local/lib/python3.7/ssl.py", line 1003, in send
return self._sslobj.write(data)
ConnectionResetError: [Errno 104] Connection reset by peer
Requesting chats with 123456-7891011@g.us
Exception in thread Thread-9:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.7/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/usr/src/whatsapp/whatsapp/plugin.py", line 208, in collect_chat_messages
self.socket.request_chat_history(chat.externalId)
File "/usr/src/whatsapp/whatsapp/web_client/client.py", line 287, in request_chat_history
message_tag = self.call("query", type="message", flags=flags, jid=jid, count=count, kind="before", index=before, owner="true" if is_owner else "false")
File "/usr/src/whatsapp/whatsapp/web_client/client.py", line 326, in call
self.activeWs.send(payload, websocket.ABNF.OPCODE_BINARY)
File "/usr/local/lib/python3.7/site-packages/websocket/_app.py", line 189, in send
if not self.sock or self.sock.send(data, opcode) == 0:
File "/usr/local/lib/python3.7/site-packages/websocket/_core.py", line 283, in send
return self.send_frame(frame)
File "/usr/local/lib/python3.7/site-packages/websocket/_core.py", line 311, in send_frame
l = self._send(data)
File "/usr/local/lib/python3.7/site-packages/websocket/_core.py", line 525, in _send
return send(self.sock, data)
File "/usr/local/lib/python3.7/site-packages/websocket/_socket.py", line 173, in send
return _send()
File "/usr/local/lib/python3.7/site-packages/websocket/_socket.py", line 150, in _send
return sock.send(data)
File "/usr/local/lib/python3.7/ssl.py", line 1003, in send
return self._sslobj.write(data)
BrokenPipeError: [Errno 32] Broken pipe
[+] Whatsapp plugin import complete
Error while listening whatsapp ('Connection aborted.', OSError(0, 'Error'))
Could not get run in status listener: ('Connection aborted.', OSError(0, 'E
┆Issue is synchronized with this Clickup task by Unito