Giter VIP home page Giter VIP logo

Comments (18)

Helloyunho avatar Helloyunho commented on September 21, 2024 2

image
1000 is normal closure(means closed without any errors)

from harmony.

Helloyunho avatar Helloyunho commented on September 21, 2024 2

image
1000 is normal closure(means closed without any errors)

How are we supposed to handle that?

Just reconnect with cached session I guess?

from harmony.

Preta-Crowz avatar Preta-Crowz commented on September 21, 2024 1

yes. 4005 is already authenticated and 1000 is unknown error. see below

from harmony.

DjDeveloperr avatar DjDeveloperr commented on September 21, 2024

I'll check this ASAP, to me it looks like a problem with seq or other props not being reset at reconnect.

from harmony.

Helloyunho avatar Helloyunho commented on September 21, 2024

image
Hmm

from harmony.

DjDeveloperr avatar DjDeveloperr commented on September 21, 2024

image
1000 is normal closure(means closed without any errors)

How are we supposed to handle that?

from harmony.

DjDeveloperr avatar DjDeveloperr commented on September 21, 2024

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.

AkiaCode avatar AkiaCode commented on September 21, 2024

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.

Helloyunho avatar Helloyunho commented on September 21, 2024

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.
image

from harmony.

DjDeveloperr avatar DjDeveloperr commented on September 21, 2024

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.

Helloyunho avatar Helloyunho commented on September 21, 2024

That's the reason why it gives 4005, right?

from harmony.

DjDeveloperr avatar DjDeveloperr commented on September 21, 2024

That's the reason why it gives 4005, right?

Exactly. Should I remove that?

from harmony.

Helloyunho avatar Helloyunho commented on September 21, 2024

That's the reason why it gives 4005, right?

Exactly. Should I remove that?

Yeah.

from harmony.

Preta-Crowz avatar Preta-Crowz commented on September 21, 2024

I'll make file hander to save logs today and result will be got on tomorrow

from harmony.

DjDeveloperr avatar DjDeveloperr commented on September 21, 2024

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.

tejasag avatar tejasag commented on September 21, 2024

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.

Preta-Crowz avatar Preta-Crowz commented on September 21, 2024

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.

Preta-Crowz avatar Preta-Crowz commented on September 21, 2024

fixed!

from harmony.

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.