Mautrix-Discord unable to send messages from discord to matrix: no server available to assist in joining
Messages send like normal from matrix to discord, but do not flow back from discord to matrix. When a message is sent in discord, the following HTTP request shows up in the mautrix logs:
Jan 20 15:53:00 localhost mautrix-discord[57166]: [Jan 20, 2023 15:53:00] [Matrix/@discord_417024349095067659:breakfastclub.chat/DEBUG] req #527: POST https://matrix.breakfastclub.chat/_matrix/client/v3/rooms/%211e3UqgAUHeH9spG701:breakfastclub.chat/join?user_id=%40discord_417024349095067659%3Abreakfastclub.chat <default empty object>
Jan 20 15:53:00 localhost mautrix-discord[57166]: [Jan 20, 2023 15:53:00] [Matrix/@discord_417024349095067659:breakfastclub.chat/DEBUG] req #527 (/v3/rooms/!1e3UqgAUHeH9spG701:breakfastclub.chat/join) completed in 16.881686ms with status 500 and 75 bytes of application/json body
Jan 20 15:53:00 localhost mautrix-discord[57166]: [Jan 20, 2023 15:53:00] [Portal/781191225168232479/WARN] Failed to send message 1066022546014732418 to matrix: failed to ensure joined: failed to POST /_matrix/client/v3/rooms/!1e3UqgAUHeH9spG701:breakfastclub.chat/join: M_UNKNOWN (HTTP 500): No server available to assist in joining.
Jan 20 15:53:00 localhost mautrix-discord[57166]: [Jan 20, 2023 15:53:00] [Portal/781191225168232479/DEBUG] Starting handling of 1066022546014732418 by 417024349095067659
Jan 20 15:53:00 localhost mautrix-discord[57166]: [Jan 20, 2023 15:53:00] [Matrix/@discord_417024349095067659:breakfastclub.chat/DEBUG] req #528: POST https://matrix.breakfastclub.chat/_matrix/client/v3/rooms/%211e3UqgAUHeH9spG701:breakfastclub.chat/join?user_id=%40discord_417024349095067659%3Abreakfastclub.chat <default empty object>
Jan 20 15:53:00 localhost mautrix-discord[57166]: [Jan 20, 2023 15:53:00] [Matrix/@discord_417024349095067659:breakfastclub.chat/DEBUG] req #528 (/v3/rooms/!1e3UqgAUHeH9spG701:breakfastclub.chat/join) completed in 4.409947ms with status 500 and 75 bytes of application/json body
Jan 20 15:53:00 localhost mautrix-discord[57166]: [Jan 20, 2023 15:53:00] [Portal/781191225168232479/WARN] Failed to send message 1066022546014732418 to matrix: failed to ensure joined: failed to POST /_matrix/client/v3/rooms/!1e3UqgAUHeH9spG701:breakfastclub.chat/join: M_UNKNOWN (HTTP 500): No server available to assist in joining.
Conduit logs:
Jan 20 15:44:23 localhost matrix-conduit[585]: 2023-01-20T15:44:23.824001Z WARN conduit::utils::error: 500 Internal Server Error: No server available to assist in joining.
Jan 20 15:44:23 localhost matrix-conduit[585]: 2023-01-20T15:44:23.825378Z ERROR tower_http::trace::on_failure: response failed classification=Status code: 500 Internal Server Error latency=2 ms
Jan 20 15:44:23 localhost matrix-conduit[585]: 2023-01-20T15:44:23.834844Z WARN conduit::utils::error: 500 Internal Server Error: No server available to assist in joining.
Jan 20 15:44:23 localhost matrix-conduit[585]: 2023-01-20T15:44:23.835607Z ERROR tower_http::trace::on_failure: response failed classification=Status code: 500 Internal Server Error latency=1 ms
What's curious is that discord DMs were working without issue, this issue only appears in bridged guilds (servers). Seems like the bot isn't able to add the users which have sent the message to the room?
Conduit Version | {"server":{"name":"Conduit","version":"0.5.0"}} |
Database backend | rocksdb |
Reproduction
- add mautrix-discord appservice and join a room with the discord bot user.
- login to discord using the chatbot.
-
guilds status
to list guilds and bridge one withguilds bridge [id]
- join all of the spaces and send a message in one of the matrix rooms. The message will appear under your user in discord.
- send a message in discord; no messages appear in matrix.