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

Packet issues while using agario-client with proxies #147

Open
agarsearcher1985 opened this issue Apr 9, 2016 · 6 comments
Open

Packet issues while using agario-client with proxies #147

agarsearcher1985 opened this issue Apr 9, 2016 · 6 comments

Comments

@agarsearcher1985
Copy link

Hey,
I get 2 types of errors if I use agario-client with proxies.

Error type A (almost only with https-proxy-agent):

Bot 8: [warning] unknown packet ID(0): 00 4c 00 6f 00 6c 00 5e 00 5e 00
Bot 8: [warning] unknown packet ID(0): 00 4c 00 6f 00 6c 00 5e 00 5e 00
Bot 82: [warning] unknown packet ID(0): 00 4c 00 6f 00 6c 00 5e 00 5e 00
Bot 98: [warning] unknown packet ID(0): 00 4c 00 6f 00 6c 00 5e 00 5e 00
Bot 82: [warning] unknown packet ID(0): 00 4c 00 6f 00 6c 00 5e 00 5e 00
Bot 82: [warning] unknown packet ID(0): 00 4c 00 6f 00 6c 00 5e 00 5e 00
Bot 82: [warning] unknown packet ID(0): 00 4c 00 6f 00 6c 00 5e 00 5e 00
Bot 82: [warning] unknown packet ID(0): 00 4c 00 6f 00 6c 00 5e 00 5e 00
Bot 82: [warning] unknown packet ID(0): 00 4c 00 6f 00 6c 00 5e 00 5e 00
Bot 82: [warning] unknown packet ID(0): 00 4c 00 6f 00 6c 00 5e 00 5e 00
Bot 82: [warning] unknown packet ID(0): 00 4c 00 6f 00 6c 00 5e 00 5e 00
Bot 82: [warning] unknown packet ID(0): 00 4c 00 6f 00 6c 00 5e 00 5e 00

Error type B (https-proxy-agent and agent via socks):

/path/to/my/server/files/node_modules/ws/lib/WebSocket.js:426
    event.type = 'error';
               ^

TypeError: Cannot assign to read only property 'type' of continuation frame cannot follow current opcode
    at WebSocket.onError (/path/to/my/server/files/node_modules/ws/lib/WebSocket.js:426:16)
    at emitTwo (events.js:87:13)
    at WebSocket.emit (events.js:172:7)
    at Receiver.onerror (/path/to/my/server/files/node_modules/ws/lib/WebSocket.js:851:10)
    at Receiver.error (/path/to/my/server/files/node_modules/ws/lib/Receiver.js:321:8)
    at Receiver.processPacket (/path/to/my/server/files/node_modules/ws/lib/Receiver.js:212:12)
    at Receiver.add (/path/to/my/server/files/node_modules/ws/lib/Receiver.js:95:24)
    at Socket.realHandler (/path/to/my/server/files/node_modules/ws/lib/WebSocket.js:800:20)
    at emitOne (events.js:77:13)
    at Socket.emit (events.js:169:7)

Thanks for your help :)

@pulviscriptor
Copy link
Owner

Error type B is an old bug in ws library which was fixed in repo websockets/ws#681 but NPM package is not updated. You can fix it like it fixed in that PR.
Error A is something strange. There is no Server->Client packet ID 0, only Client->Server which means "Spawn with nickname" and your packets have nickname Lol^^ in them. But how did they got received by client. Is that your nickname? How often you see these warnings?
If anybody else saw this warning unknown packet ID(0) please report it here.

@agarsearcher1985
Copy link
Author

I receive this warning often. Usually the client crashs, but I implemented the preventCrash and added this debug line. I'll test it with the new ws version, thx.

@hassanila
Copy link

SAME WARNING

@agarsearcher1985
Copy link
Author

Ok, ws update fixed the crash issue. Warning is still there. Hopefully anyone knows why they appear.

@pulviscriptor
Copy link
Owner

I'd like to know if warning is still there. Does anybody see it? Does that packet contains your nickname?

@hassanila
Copy link

I dont see it anymore

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

4 participants
@pulviscriptor @hassanila @agarsearcher1985 and others