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

one way transmission ( Only Discord ->Matrix) #712

Open
V1TA5 opened this issue Jun 8, 2021 · 10 comments
Open

one way transmission ( Only Discord ->Matrix) #712

V1TA5 opened this issue Jun 8, 2021 · 10 comments
Labels
T-Defect Bugs, crashes, hangs, vulnerabilities, or other reported problems.

Comments

@V1TA5
Copy link

V1TA5 commented Jun 8, 2021

Hi,
one of my bridged Channels suddenly only transmits messages form Discord to Matrix and not the other way around.
Other channels (even on the same Discord "Server") still work both ways.

I tried:
Restarting the Bridge
Rebooting the machiene the bridge runs on
Reboot Server Matrix server is running on
"Rebridge" the channel

Suggestions?

@V1TA5 V1TA5 changed the title one way transmission ( Monly Discord ->Matrix) one way transmission ( Only Discord ->Matrix) Jun 8, 2021
@neutralinsomniac
Copy link

I'm in the same boat. The only messages I get from the log are of the form:
Jun-8 20:41:07.400 [DiscordBot] warn: Failed to send message $UbHNhS-QsjLujC4_8-SohbKbce4p2d-kTu2I3NNWsGc

@henesy
Copy link

henesy commented Jun 9, 2021

+1 matrix -> discord failing

@showermat
Copy link

I'm sure there are multiple reasons this might happen, but in my particular case it was because Ubuntu's default version of NodeJS is old (currently 10). #630 got me on the right track and upgrading to version 16 fixed it.

@2ro
Copy link

2ro commented Jun 25, 2021

I'm sure there are multiple reasons this might happen, but in my particular case it was because Ubuntu's default version of NodeJS is old (currently 10). #630 got me on the right track and upgrading to version 16 fixed it.

I think there are multiple reasons why this would happen as upgrading to nodejs v 16 did not work for me.

@jesterpm
Copy link

jesterpm commented Jul 2, 2021

Has anyone found a resolution besides upgrading NodeJS? I'm running the latest version in Docker, but I'm still seeing one-way messages.

I see "Failed to send message" in the logs, along with a Method Not Allowed error response from the Discord API. Discord.js users reported a similar issue as this (discordjs/discord.js#5731), but it was apparently a regression on the Discord API.

@Gigadoc2
Copy link

This might be completely unrelated, but did you check whether the webhooks in the Discord Guild all belong to the bot user of your bridge?

I encountered a very similar sounding problem, but in a specific situation: I first used the t2bot.io bridge for a certain Guild, then switched to self-hosting the appservice (due to t2bot.io being heavily rate-limited by Discord). On that switch, the old bot was removed from the Guild, but not the webhooks it had set up. This was no problem at first, the bridge could for some reason re-use the webhooks set down by t2bot.io. My guess is, Discord fixed this some time back, when the problems started. At least for me the timing seems right. It was solved by removing the t2bot "Integration" on the Discord side, then the appservice will recreate the webhooks on its own.

@pini-gh
Copy link

pini-gh commented Jul 25, 2021

I've been experiencing this very same issue since a few weeks. The log says:

Jul-25 15:14:42.168 [DiscordBot] warn: Failed to send message $2AXGkcJKjPnIeu58YUY3l2hmJ093ncLy6In_qm3ZWuk
Jul-25 15:14:42.171 [DiscordBot] verbose: DiscordAPIError: 405: Method Not Allowed
    at RequestHandler.execute (/node_modules/better-discord.js/src/rest/RequestHandler.js:170:25)
    at processTicksAndRejections (internal/process/task_queues.js:95:5) {

I run an up to date self hosted Docker instance using halfshot/matrix-appservice-discord:latest.

@Gigadoc2 The context you describe is similar to mine. But the previous bot was set up by another user. Would you mind describing what you mean with:

removing the t2bot "Integration" on the Discord side

?

@pini-gh
Copy link

pini-gh commented Jul 25, 2021

I had this old bot removed from discord by its owner and messages are handled both ways again. Yay! Thanks @Gigadoc2 for the hint!

@V1TA5
Copy link
Author

V1TA5 commented Jul 26, 2021

I reinstalled the whole Machine 3x. I never solved the original one way problem but found out that i need to use the releases and not the master repo so it would compile.

@jesterpm
Copy link

jesterpm commented Mar 9, 2022

I finally got my issue worked out by deleting the _matrix webhook from the Discord server. As soon as it was deleted, the bot recreated the webhook and everything worked perfectly.

@jaller94 jaller94 added the T-Defect Bugs, crashes, hangs, vulnerabilities, or other reported problems. label May 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Defect Bugs, crashes, hangs, vulnerabilities, or other reported problems.
Projects
None yet
Development

No branches or pull requests

9 participants