Closed LeNitrous closed 5 years ago
I thought this issue was fixed in 11.3.2? Are you sure your discord.js version is 11.3.2?
I made sure before writing up this issue.
Looks like the issue is back and it's up to the devs to find out, again.
Same issue here
Nvm, turns out it was a ReDOS vulnerability, so even if my server doesn't have any loops it still was my own fault.
Having the same issue here on the latest master branch (11.4.2) on node 9.8.0 on RHEL-7.3_HVM_GA-20161026-x86_64-1-Hourly2-GP2 on AWS. Been having it silently disconnect anywhere from 1 minute to 2 days after restarting it.
Not a sharding issue since I only run a single instance of it at the moment.
Same issue on master. Simple roles bot goes silently offline. I'm using pm2.
Node: v8.15.0
Distributor ID: Debian
Description: Debian GNU/Linux 9.7 (stretch)
Release: 9.7
Codename: stretch
Linux 1e9778c9 2.6.32-042stab134.8 #1 SMP Fri Dec 7 17:16:09 MSK 2018 x86_64 GNU/Linux
@xonrsoftware relax, this issue is confirmed (though the labels say otherwise, somebody has to change them).
There are two PRs that fix this, with similar implementations: https://github.com/discordjs/discord.js/pull/2976 and https://github.com/discordjs/discord.js/pull/2996. If this issue happens to you many times, please consider using any of both PRs!
@xonrsoftware relax, this issue is confirmed (though the labels say otherwise, somebody has to change them).
There are two PRs that fix this, with similar implementations: #2976 and #2996. If this issue happens to you many times, please consider using any of both PRs!
Just to provide some additional feedback, #2996 seems to have fixed the issue for me. My bot was disconnecting once, sometimes twice a day before this, and after applying #2996 I haven't disconnected in about a week. Will continue testing. I also didn't merge with master, I just checked out the PR, so maybe that's why I'm having better luck with it?
Seems like #2976 (14b771b05599535970262a3e673a74927df55264) fixed this for me.
Not fixed. Tested on 89e27e507144dd3c32d644e0f298207eb538ff65. Experiencing same issues. @vladfrangu Node: v11.13.0 pm2: 3.4.1 npm: 6.7.0
Ready event contains:
client.on('ready', async () => {
...
setInterval(function () {
client.user.setStatus('invisible');
}, 600000);
...
});
Same issue
Try using with uws, in past that solved this issue for me ^
Try using with uws, in past that solved this issue for me ^
I using it already.
use a commit before internal sharding merge in master then use it with uws ^ if the latest master isnt working right for you
use a commit before internal sharding merge in master then use it with uws ^ if the latest master isnt working right for you
This bug is present since 11.4 as i remember. (When i start using d.js, may be in early versions too) Because of it and some other stuff i upgraded it to master. Still here.
Please describe the problem you are having in as much detail as possible: Bot silently disconnects when left on for hours. The issue probably not related with my own code. Uploaded is the runtime when it occured. runtime.log
Further details:
Minor. Restarting should make it work again but it's a pain to restart it every now and then.