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

sending "m.relates_to": null causing internal server error in Synapse #336

Closed
Limvot opened this issue Jun 15, 2019 · 2 comments
Closed

Comments

@Limvot
Copy link

Limvot commented Jun 15, 2019

Not sure if this bug is more for Synapse or mautrix-telegram, but when I upgraded both today Telegram messeges stopped appearing in Matrix.

It sends messages like:
[2019-06-15 21:32:07,871] [DEBUG@mau.as.api] PUT /rooms/%21mMWGhycXzeDvpkjCzk%3Aroom409.xyz/send/m.room.message/61560634327871 {"body": "Forever", "msgtype": "m.text", "m.relates_to": null, "external_url": "https://t.me/c /1050980458/48908"} as user @telegram_163061100:room409.xyz

causing

mautrix_appservice.errors.MatrixRequestError: 500: {"errcode":"M_UNKNOWN","error":"Internal server error"}

On the synapse side File "/nix/store/n55kpxsc5m225xdvyqg3p0kljksfyyyx-matrix-synapse-1.0.0/lib/python3.7/site-packages/synapse/handlers/message.py", line 611, in create_new_client_event if relation.get("rel_type") == RelationTypes.ANNOTATION: AttributeError: 'NoneType' object has no attribute 'get'

(These are actually from different messages, because different logs, but this is what happens every time)

Let me know if I should report to Synapse instead, or if I messed up somewhere. Thank you!

@tulir
Copy link
Member

tulir commented Jun 15, 2019

It's a bug in synapse, but it's fixed in the bridge in both the latest patch release (0.5.2) and on master (0.6.0 dev)

@tulir tulir closed this as completed Jun 15, 2019
@WGH-
Copy link

WGH- commented Jul 15, 2019

What bug? Is there an issue open in Synapse GitHub?

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

No branches or pull requests

3 participants