Saw this traceback in logs, and probably should investigate:
INFO:slixmpp.plugins.xep_0363.http_upload:Response code: 201 ()
Traceback (most recent call last):
File "/venv/whatsapp/lib/python3.11/site-packages/legacy_module/session.py", line 513, in wrapper
Traceback (most recent call last):
File "/venv/whatsapp/lib/python3.11/site-packages/legacy_module/session.py", line 513, in wrapper
return future.result()
^^^^^^^^^^^^^^^
return future.result()
^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/concurrent/futures/_base.py", line 456, in result
File "/usr/lib/python3.11/concurrent/futures/_base.py", line 456, in result
return self.__get_result()
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
^^^^^^^^^^^^^^^^^^^
raise self._exception
File "/venv/whatsapp/lib/python3.11/site-packages/legacy_module/session.py", line 47, in wrapped
File "/usr/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
return await func(self, *a, **k)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/whatsapp/lib/python3.11/site-packages/legacy_module/session.py", line 141, in handle_event
raise self._exception
File "/venv/whatsapp/lib/python3.11/site-packages/legacy_module/session.py", line 47, in wrapped
await self.handle_message(data.Message)
File "/venv/whatsapp/lib/python3.11/site-packages/legacy_module/session.py", line 264, in handle_message
return await func(self, *a, **k)
await contact.send_files(
File "/venv/whatsapp/lib/python3.11/site-packages/slidge/core/mixins/attachment.py", line 405, in send_files
^^^^^^^^^^^^^^^^^^^^^^^^^
_url, msgs = await self.send_file(
^^^^^^^^^^
TypeError: cannot unpack non-iterable NoneType object
File "/venv/whatsapp/lib/python3.11/site-packages/legacy_module/session.py", line 141, in handle_event
await self.handle_message(data.Message)
File "/venv/whatsapp/lib/python3.11/site-packages/legacy_module/session.py", line 264, in handle_message
await contact.send_files(
File "/venv/whatsapp/lib/python3.11/site-packages/slidge/core/mixins/attachment.py", line 405, in send_files
_url, msgs = await self.send_file(
^^^^^^^^^^
TypeError: cannot unpack non-iterable NoneType object
Hum why are all the lines duplicated. For some reason,
Contact.send_file()
returnedNone
which is what the TypeError is about. But this wrong behaviour was supposedly fixed by this commit. Maybe you didn't update in a while?
This is super-old and not well-replicated, closing. We can open a new ticket if it comes up again.