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

Received images no longer appearing #19

Closed
meyerrj opened this issue Apr 16, 2020 · 1 comment
Closed

Received images no longer appearing #19

meyerrj opened this issue Apr 16, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@meyerrj
Copy link

meyerrj commented Apr 16, 2020

Received images (sent by others) through hangouts are no longer appearing in Riot/Matrix clients.

Images sent through Riot/Matrix are successfully sending as expected.

@erdnaxeli
Copy link

The error is the following

mautrix-hangouts    | [2020-04-18 08:51:51,615] [DEBUG@mau.as.api.@hangouts_102111775594222325608:cervoi.se] PUT /_matrix/client/r0/rooms/%21YkrdxzBHvFFSoUvmhx%3Acervoi.se/send/m.room.message/1091587199911615 {"b
ody": "2020-04-18-Chantier2bis.jpg", "url": "mxc://cervoi.se/yCXSyPeKxFMIDDfCVlESEvQd", "info": {"mimetype": "image/jpeg", "size": 370134}}
mautrix-hangouts    | [2020-04-18 08:51:51,621] [ERROR@mau.user.@erdnaxeli:cervoi.se] Exception in event handler
mautrix-hangouts    | Traceback (most recent call last):
mautrix-hangouts    |   File "/opt/mautrix-hangouts/mautrix_hangouts/user.py", line 233, in try_proxy
mautrix-hangouts    |     await method(*args, **kwargs)
mautrix-hangouts    |   File "/opt/mautrix-hangouts/mautrix_hangouts/user.py", line 274, in on_event
mautrix-hangouts    |     await portal.handle_hangouts_message(self, sender, event)
mautrix-hangouts    |   File "/opt/mautrix-hangouts/mautrix_hangouts/portal.py", line 445, in handle_hangouts_message
mautrix-hangouts    |     event_id = await self.process_hangouts_attachments(event, intent)
mautrix-hangouts    |   File "/opt/mautrix-hangouts/mautrix_hangouts/portal.py", line 492, in process_hangouts_attachments
mautrix-hangouts    |     return await self._send_message(intent, content)
mautrix-hangouts    |   File "/opt/mautrix-hangouts/mautrix_hangouts/portal.py", line 422, in _send_message
mautrix-hangouts    |     return await intent.send_message_event(self.mxid, event_type, content, **kwargs)
mautrix-hangouts    |   File "/usr/lib/python3.8/site-packages/mautrix/appservice/api/intent.py", line 87, in wrapper
mautrix-hangouts    |     return await __method(*args, **kwargs)
mautrix-hangouts    |   File "/usr/lib/python3.8/site-packages/mautrix/appservice/api/intent.py", line 289, in send_message_event
mautrix-hangouts    |     return await super().send_message_event(room_id, event_type, content, **kwargs)
mautrix-hangouts    |   File "/usr/lib/python3.8/site-packages/mautrix/client/api/events.py", line 294, in send_message_event
mautrix-hangouts    |     resp = await self.api.request(Method.PUT, url, content, **kwargs)
mautrix-hangouts    |   File "/usr/lib/python3.8/site-packages/mautrix/api/http.py", line 205, in request
mautrix-hangouts    |     return await self._send(method, endpoint, content, query_params, headers or {})
mautrix-hangouts    |   File "/usr/lib/python3.8/site-packages/mautrix/api/http.py", line 144, in _send
mautrix-hangouts    |     raise make_request_error(http_status=response.status,
mautrix-hangouts    | mautrix.errors.request.MUnknown: 'msgtype' not in content

@tulir tulir added the bug Something isn't working label Apr 18, 2020
@tulir tulir closed this as completed in 7671a4c Apr 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

3 participants