agario-client icon indicating copy to clipboard operation
agario-client copied to clipboard

Packet issues while using agario-client with proxies

Open agarsearcher1985 opened this issue 8 years ago • 6 comments

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 :)

agarsearcher1985 avatar Apr 09 '16 22:04 agarsearcher1985

Error type B is an old bug in ws library which was fixed in repo https://github.com/websockets/ws/pull/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.

pulviscriptor avatar Apr 10 '16 08:04 pulviscriptor

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.

agarsearcher1985 avatar Apr 10 '16 11:04 agarsearcher1985

SAME WARNING

hassanila avatar Apr 10 '16 13:04 hassanila

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

agarsearcher1985 avatar Apr 10 '16 14:04 agarsearcher1985

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

pulviscriptor avatar May 02 '16 18:05 pulviscriptor

I dont see it anymore

hassanila avatar May 02 '16 21:05 hassanila