GithubHelp home page GithubHelp logo

Comments (12)

Bastian avatar Bastian commented on May 27, 2024 2

Hey,

api.setWaitForServersOnStartup(false);

works as a temporary fix. I still have to find out the reason for this error, but this is at least a temporary solution for everyone with this problem (It seems to not affect everyone).

from javacord.

Bastian avatar Bastian commented on May 27, 2024 1

Are there still people experiencing this bug?

from javacord.

Bastian avatar Bastian commented on May 27, 2024

Hey,
Can you please enable the debug mode and see if there is any additional information?

from javacord.

pcr3w avatar pcr3w commented on May 27, 2024

There's no other information with debug mode on (I'm assuming that you mean the logger debug mode).

from javacord.

pcr3w avatar pcr3w commented on May 27, 2024

That seems to be working for the moment - thanks.

from javacord.

iiiLollo avatar iiiLollo commented on May 27, 2024

I noticed the following, I get this error when I try to connect to a server after my connection didn't close property. This can happen if the application running the api crashes before running the api.disconnect() command.

But I also noticed that api.disconnect() sometimes doesn't close the connection properly,
I found the following lines in the log after running api.disconnect(), it looks like it's trying to connect again.

d.b.j.utils.DiscordWebsocketAdapter - Websocket closed with reason null and code 1000 by client!
d.b.j.utils.DiscordWebsocketAdapter - Sending resume packet
d.b.j.utils.DiscordWebsocketAdapter - Received HELLO packet
d.b.j.utils.DiscordWebsocketAdapter - Could not resume session. Reconnecting now...
d.b.j.utils.DiscordWebsocketAdapter - Sending identify packet

from javacord.

Yorkforce avatar Yorkforce commented on May 27, 2024

@BtoBastian Has there been any update on this at all? We have always had this problem every couple of weeks or so, but we have always been able to use the discord reconnect command a few times to eventually get it to connect, however right now it will not connect at all, i just tried running the discord reconnect command over 50 times on one of our servers and it just won't have it.

from javacord.

Bastian avatar Bastian commented on May 27, 2024

Hey,
if you have debugging enabled, what is the full log?
Is there a Received READY packet before receiving the error?
Is there a Websocket closed ... message?

from javacord.

Yorkforce avatar Yorkforce commented on May 27, 2024

This is what the logs are showing:
[20:01:27] [ReadingThread/DEBUG] [de.btobastian.javacord.utils.DiscordWebsocketAdapter/sponge]: Received READY packet [20:01:29] [WritingThread/DEBUG] [de.btobastian.javacord.utils.DiscordWebsocketAdapter/sponge]: Websocket closed with reason No more WebSocket frame from the server. and code 1002 by client! Trying to resume connection.

This morning it seems better, I just checked and only 2 servers hadn't automatically reconnected (they auto restart every 8 hours) and running the discord reconnect commands on those 2 servers both reconnected straight away but the problem will eventually return again and there will be periods of time where we are unable to connect at all, as was the case last night.

from javacord.

Bastian avatar Bastian commented on May 27, 2024

And afterwards the Socket closed before ready packet was received message?

from javacord.

Yorkforce avatar Yorkforce commented on May 27, 2024

Yep directly afterwards:
https://pastebin.com/AT28YtQx

from javacord.

AldeRoberge avatar AldeRoberge commented on May 27, 2024

Hello Bastian, I've encountered this bug. I'll keep you updated if updating to the latest Javacord version fixes it!

Edit : Actually yes, updating to 2.0.17 did it for me

from javacord.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.