Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File upload via Pantalaimon #19

Open
daedric7 opened this issue Jan 4, 2023 · 0 comments
Open

File upload via Pantalaimon #19

daedric7 opened this issue Jan 4, 2023 · 0 comments

Comments

@daedric7
Copy link

daedric7 commented Jan 4, 2023

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant