-
Notifications
You must be signed in to change notification settings - Fork 293
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
Can't send from IRC to Discord afterwards. #461
Comments
I do have the exact same problem. Do you need any more debug logging? |
This looks like it's coming from within discord.js, an upstream library used by discord-irc. I have no idea what it's trying to do there, though, and the bot uses the latest version. |
Thanks for looking into it, let's wait for upstream to fix it. As a workaround, I use a systemd timer to restart discord-irc every hour. |
Seems similar to #326 and #328. It looks like there was a fix with another project Headline/Discord-IRC-Relay#13 |
The error message occurs for me when many lines are sent at once. IRC-> discord cuts off on 5th or so message, iirc. |
I'll close this issue for now, as I haven't heard anything recent and the above logs look strange (our uses of |
Sorry to say, but I'm still getting that and will probably add --unhandled-rejections=strict to the service to see if systemd can just restart it instead of being blind about the bot not working.
Edit 1: It is very much like #356 too. Edit 2:
|
Hrrm, that's a shame. Are you testing out the latest alpha version (v2.9.0-alpha)? If not, would you be able to try that out and see if the same issue occurs? This seems to be happening in discord.js, which is a library we rely on, but it's had quite a significant recent update, and I wonder if it might have improved the behavior around this. |
It is running v2.8.1-11-g5af02c1 at the moment, is it considered 2.9 or should I git pull? |
I can't actually seem to find g5af02c1 in the repo (is that a Git commit?), so I'm not sure if you're on a more recent version than the release, but 2.8.1 was 41f8444, and the main relevant change for 2.9.0-alpha happened in f047ce0 - at the end of the v2.8.1...v2.9.0-alpha comparison. I'd git pull to be safe! |
My bad, I should have git log before posting. g5af02c1 = git shorthash when you remove the leading g. Git log shows that this short hash is "Add 2.9.0-alpha to CHANGELOG" 5af02c1 |
I almost forgot about this ticket and when I checked again, surprise! The service crashed a couple time but systemd restarted it as expected. With strict mode enabled, here is the log that is spit out before crashing:
|
Based on that log, it looks like something went wrong internally in Discord, since it returned an Internal Server Error? The upstream Edit: On second thoughts, the significant changes to discord.js seem to be going well (either that or nobody's testing the current version), so I'll just cut a regular release. |
Intended to avoid issues with 500 errors returned from Discord, as in #461.
Intended to avoid issues with 500 errors returned from Discord, as in #461.
From my point of view, this issue is fixed, when the retries can't handle it, the only way to fix 500 errors is wait for the platform to heal itself and restart. So, having the service manager handle the restart does it for me. |
I've been using this for more than a year. I'm not good at explaining but here's the issue I copied from the command prompt.
After the "UnhandledPromiseRejectionWarning" shows up, it cannot send transmission from IRC to Discord from one of the multiple channels (while the rest are working).
Screenshots from Discord: https://i.imgur.com/9N6TX6e.png, IRC: https://i.imgur.com/jfaaVTv.png
Can you fix that issue?
P.S. "DeprecationWarning: Collection#find: pass a function instead" annoys me so can you do something about that?
The text was updated successfully, but these errors were encountered: