Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: index out of range #83

Closed
agarioBotDev opened this issue Feb 9, 2016 · 9 comments
Closed

error: index out of range #83

agarioBotDev opened this issue Feb 9, 2016 · 9 comments

Comments

@agarioBotDev
Copy link

hello pulviscriptor,

i get the error (in picture) random....it works and then suddenly i get this error..
what it is and what can i do to fix it ?
1

@Petterholm
Copy link

I get the same error

@pulviscriptor
Copy link
Owner

Check event packetError in readme. You need to do preventCrash() when event packetError happens.

@Petterholm
Copy link

how can i do that?

@Petterholm
Copy link

Can you check my issue

@issy123
Copy link

issy123 commented Feb 9, 2016

You need to add this :

bot.on('packetError', function(packet, err, preventCrash) { bot.log('Packet error detected for packet: ' + packet.toString()); bot.log('Crash will be prevented, bot will be disconnected'); preventCrash(); bot.disconnect(); });

More details here: #46

@pulviscriptor pulviscriptor mentioned this issue Feb 9, 2016
@agarioBotDev agarioBotDev reopened this Feb 9, 2016
@agarioBotDev
Copy link
Author

actually, when i do this, i get annother error
1

@pulviscriptor
Copy link
Owner

@agarioBotDev
This is bug in ws websockets/ws#669
Check crash 1

@agarioBotDev
Copy link
Author

@pulviscriptor thanks !

@LordMajestros
Copy link

Fixed here https://github.com/websockets/ws/pull/681/commits please test and confirm.

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

No branches or pull requests

5 participants