Comments (12)
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.
Are there still people experiencing this bug?
from javacord.
Hey,
Can you please enable the debug mode and see if there is any additional information?
from javacord.
There's no other information with debug mode on (I'm assuming that you mean the logger debug mode).
from javacord.
That seems to be working for the moment - thanks.
from javacord.
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.
@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.
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.
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.
And afterwards the Socket closed before ready packet was received
message?
from javacord.
Yep directly afterwards:
https://pastebin.com/AT28YtQx
from javacord.
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)
- Couldn't handle packet of type VOICE_STATE_UPDATE
- Add voice message support to text channel
- Add super reactions
- Slash Commands issue HOT 11
- Replacement/just removal and deprecation of `getDiscriminatedName ` HOT 8
- Add role flags HOT 1
- Add attachment flags HOT 1
- Add the message author id to message reaction events HOT 1
- Add user avatar decorations
- SlashCommandOptionChoice#getLongValue returns a empty optional despite a long value being present on DAPI HOT 2
- `ServerThreadChannelCreateListener` dispatching twice.
- Parameters are ignored when requesting archived threads
- Look through the code for non thread safe collections
- Add default select menu values HOT 1
- Add support for premium app subscriptions
- Add resolved field to message components
- Fix Embed* implementation methods returning null instead of optional
- Continuous switching between the voice channels.
- Ability to set message flags for any message to send (not only for interaction messages)
- Wrong channel type after an ephemeral response HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from javacord.