Comments (18)
1000 is normal closure(means closed without any errors)
from harmony.
How are we supposed to handle that?
Just reconnect with cached session I guess?
from harmony.
yes. 4005 is already authenticated and 1000 is unknown error. see below
from harmony.
I'll check this ASAP, to me it looks like a problem with seq
or other props not being reset at reconnect.
from harmony.
from harmony.
How are we supposed to handle that?
from harmony.
So, what you said is already being done i.e. reconnects with cached session. Looks like socket immediately closes after INVALID_SESSION is dispatched, what do you think about doing nothing when we receive INVALID_SESSION?
from harmony.
So, what you said is already being done i.e. reconnects with cached session. Looks like socket immediately closes after INVALID_SESSION is dispatched, what do you think about doing nothing when we receive INVALID_SESSION?
I think it would be better to show the error
from harmony.
So, what you said is already being done i.e. reconnects with cached session. Looks like socket immediately closes after INVALID_SESSION is dispatched, what do you think about doing nothing when we receive INVALID_SESSION?
Actually it doesn't even reconnect. It just resends the identify data.
from harmony.
That's what I mean, we shouldn't be re-identifying there with timeout. Socket closes after we receive that, and we end up with two identifies.
This is from mid of logs...
[Gateway] Fetching /gateway/bot...
[Gateway] Recommended Shards: 1
[Gateway] === Session Limit Info ===
[Gateway] Remaining: 360/1000
[Gateway] Reset After: 7000508ms
[Gateway] Fetching /gateway/bot...
[Gateway] Recommended Shards: 1
[Gateway] === Session Limit Info ===
[Gateway] Remaining: 360/1000
[Gateway] Reset After: 6999437ms
[Gateway] Connection Closed with code: 1000
[Gateway] Unknown Close code, probably connection error. Reconnecting in 5s.
[Gateway] Connected to Gateway!
[Gateway] Received HELLO. Heartbeat Interval: 41250
[Gateway] Preparing to resume with Session: 164b497ecee07ec65e5f8a60c18c670c
[Gateway] Received Heartbeat Ack. Ping Recognized: 192ms
[Gateway] Invalid Session! Identifying with forced new session
Two times lib tried to re-identify.
Though don't understand those logs in start... connection closed with code 1000 is handled just fine.
from harmony.
That's the reason why it gives 4005, right?
from harmony.
That's the reason why it gives 4005, right?
Exactly. Should I remove that?
from harmony.
That's the reason why it gives 4005, right?
Exactly. Should I remove that?
Yeah.
from harmony.
I'll make file hander to save logs today and result will be got on tomorrow
from harmony.
I'll make file hander to save logs today and result will be got on tomorrow
Can you try using latest code from main
branch after I push the changes?
from harmony.
The same thing happened to me yesterday but it solved when i switched my network so i didn't find the need to report it :/
from harmony.
I'll make file hander to save logs today and result will be got on tomorrow
Can you try using latest code from
main
branch after I push the changes?
Sure. I'll do it
from harmony.
fixed!
from harmony.
Related Issues (20)
- [Feature Request] GatewayIntents.MESSAGE_CONTENT
- [Feature Request] Add Guilded API support HOT 6
- [Bug] Reconnect seems not working HOT 2
- [Feature Request] Builders HOT 2
- [Feature Request] ApplicationCommandOptionType should have ATTACHMENT support HOT 2
- [Bug] Crash on user kick HOT 3
- [Bug] InteractionUser.discriminator === 0? HOT 3
- Implement `Client`
- Implement Cache API
- Implement Structures
- Implement Managers
- Implement Abstracted REST Endpoints
- Implement Abstracted Gateway Events
- [Bug] Webhooks don't send components
- [Bug] Message.Member.Permissions has incorrect permissions set
- [Bug] Webhook.send throws exception when channels mentioned
- [Bug] Bot Randomly Crashes
- [Bug] Emoji events don't work properly
- [Bug] `MessageComponents.prototype.row()` creates a circular reference HOT 1
- [Feature Request] User application commands
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 harmony.