rakusan2 / FRC-NT-Client

WPI NetworkTables Client for Node
https://www.npmjs.com/package/wpilib-nt-client
MIT License
21 stars 5 forks source link

Keep Alive 0x00 Unknown Message Type #6

Closed AdamBusch closed 6 years ago

AdamBusch commented 6 years ago

I keep getting errors when trying to connect to a robot about 50% of the time. The error points to the known message list, and the 0x00 keep alive message not being one of them (thus throwing this error).

{ buf: <Buffer 00> } { con: true, err: Error: Unknown Message Type - 0x00 at Client.read (C:\Users\adamj\Development\FRC-6800-2018-code\FRCDashboard\node_modules\wpilib-nt-client\index.js:335:19) at Socket.client.on.data (C:\Users\adamj\Development\FRC-6800-2018-code\FRCDashboard\node_modules\wpilib-nt-client\index.js:253:26) at emitOne (events.js:96:13) at Socket.emit (events.js:191:7) at readableAddChunk (_stream_readable.js:178:18) at Socket.Readable.push (_stream_readable.js:136:10) at TCP.onread (net.js:560:20) }

rakusan2 commented 6 years ago

Sorry about this and thank you for reporting. The error was caused by me forgetting to accept the keep alive message. This has been fixed in 1.3.1