Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Crashing after reconnecting too many times #269

Closed
HyCore opened this issue Apr 25, 2021 · 6 comments
Closed

Crashing after reconnecting too many times #269

HyCore opened this issue Apr 25, 2021 · 6 comments

Comments

@HyCore
Copy link

HyCore commented Apr 25, 2021

Here is the issue:

Connection reset by 2b2t server. Reconnecting...
Reconnecting...
Connection reset by 2b2t server. Reconnecting...
Reconnecting...
$ /var/www/html/2bored2wait/node_modules/minecraft-protocol/src/transforms/framing.js:67
          } else { throw e }
                   ^

TypeError: Cannot read property 'id' of undefined
    at Conn.generatePackets (/var/www/html/2bored2wait/node_modules/mcproxy/dist/conn.js:101:43)
    at Conn.sendPackets (/var/www/html/2bored2wait/node_modules/mcproxy/dist/conn.js:90:28)
    at Server.<anonymous> (/var/www/html/2bored2wait/main.js:290:8)
    at Server.emit (events.js:315:20)
    at loginClient (/var/www/html/2bored2wait/node_modules/minecraft-protocol/src/server/login.js:127:12)
    at Client.onLogin (/var/www/html/2bored2wait/node_modules/minecraft-protocol/src/server/login.js:49:7)
    at Object.onceWrapper (events.js:422:26)
    at Client.emit (events.js:315:20)
    at FullPacketParser.<anonymous> (/var/www/html/2bored2wait/node_modules/minecraft-protocol/src/client.js:91:12)
    at FullPacketParser.emit (events.js:315:20)
@MrGeorgen
Copy link
Collaborator

looks like a mcproxy issue

@rob9315
Copy link
Collaborator

rob9315 commented May 1, 2021

@MrGeorgen can you look into making mcproxy more crash-safe? like adding a try-catch statement somewhere, so it just doesn't crash even if something went wrong?

@rob9315
Copy link
Collaborator

rob9315 commented May 2, 2021

@HyCore I have not been able to reproduce this issue, as it says reconnecting a lot, this is probably unfortunate timing matching a server restart. I will still add a try statement somewhere to stop it from crashing

@HyCore
Copy link
Author

HyCore commented May 5, 2021

Okey thanks. I think to reproduce the issue you need to have a client that autoreconnect to the proxy while this one is trying to connect on. Btw could you send me your discord ?

@rob9315
Copy link
Collaborator

rob9315 commented May 5, 2021

Rob9315#9315 on discord

@rob9315
Copy link
Collaborator

rob9315 commented May 15, 2021

I think this might be fixed now. Please reopen if the issue still persists

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants