matrix.sh icon indicating copy to clipboard operation
matrix.sh copied to clipboard

File upload via Pantalaimon

Open daedric7 opened this issue 2 years ago • 0 comments

I'm trying to use Pantalaimon so that messages become encrypted.

Simple text works ok. Images don't. Since this does not happen if not using Pantalaimon, it can be that the issue is not with Matrix.sh but pantalaimon itself, but i cannot debug further.

Error in matrix.sh:

matrix.sh --image --file=5Mph94m.jpeg Sending file... {"m.upload.size":2147483648} Uploading... jq: error (at :1): Cannot index number with string "errcode" parse error: Invalid numeric literal at line 1, column 13

Error in Pantalaimon log:

pantalaimon-pantalaimon-1 | [2023-01-04 21:25:14.699830] INFO: pantalaimon: Adding media info for aguiarvieira.pt/lvGHuLnVIzFqiBgfzLXhUtBK to the store pantalaimon-pantalaimon-1 | Error handling request pantalaimon-pantalaimon-1 | Traceback (most recent call last): pantalaimon-pantalaimon-1 | File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 433, in _handle_request pantalaimon-pantalaimon-1 | resp = await request_handler(request) pantalaimon-pantalaimon-1 | File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 504, in _handle pantalaimon-pantalaimon-1 | resp = await handler(request) pantalaimon-pantalaimon-1 | File "/usr/local/lib/python3.8/site-packages/pantalaimon/daemon.py", line 1053, in send_message pantalaimon-pantalaimon-1 | return await _send(self.conf.ignore_verification) pantalaimon-pantalaimon-1 | File "/usr/local/lib/python3.8/site-packages/pantalaimon/daemon.py", line 1005, in _send pantalaimon-pantalaimon-1 | if content["info"].get("thumbnail_url", False): pantalaimon-pantalaimon-1 | KeyError: 'info'

daedric7 avatar Jan 04 '23 21:01 daedric7