matrix-org / dendrite

Dendrite is a second-generation Matrix homeserver written in Go!
https://matrix-org.github.io/dendrite/
Apache License 2.0
5.54k stars 660 forks source link

mautrix-discord cannot relay messages #3328

Open Elara6331 opened 5 months ago

Elara6331 commented 5 months ago

Background information

Description

Steps to reproduce

Additional Information

2696 had a similar issue

Elara6331 commented 5 months ago

I believe the internal server error is coming from here:

https://github.com/matrix-org/dendrite/blob/67d68768574a234b733eb3e4061644fc098a69f6/clientapi/routing/joinroom.go#L121-L125

Elara6331 commented 5 months ago

Actually, looking closer, it looks like there is an error message from dendrite, it was just written to stderr instead of stdout:

level=error msg="Failed to join room" error="M_FORBIDDEN: You are not joined to any matching rooms." room_id="!Sk5rRcx0XrZ87BkT:genzedong.xyz" servers="[]" user_id="@discord_<redacted>:genzedong.xyz"
regalialong commented 5 months ago

Just noticed this issue, stumbled onto this myself on a fresh e9deb5244edd4827234622ea0d3b11678a33b0ac instance. Works on Synapse so might be worth looking into since there seems to be different behavior between the two.

For me, direct messages seemingly bridged fine while guilds failed.

niebloomj commented 5 months ago

Are you sure this isn't an issue with the bridge?

regalialong commented 5 months ago

Not sure but my install of Synapse handles it fine, so I don't believe the bridge is outright broken.

alnmy commented 4 months ago

Having same issue and I noticed that DMs work aswell but not guilds. Freshly made Dendrite instance.

alnmy commented 4 months ago

It works if I manually invite the bridged users into the room.

Pyro57000 commented 3 months ago

Gonna echo this above seeing the same thing on dendrite, gonna try to set up synapse instead and see if that works better.

pathwayx99 commented 3 weeks ago

Another echo here. Same error messages, same behavior. Direct messages work fine, guilds do not. I can send messages, which appear on the channel (checking using Discord client) but any replies are not received.

Should say I'm running instagram, messenger and whatsapp bridges without issues.