node-zookeeper-dubbo icon indicating copy to clipboard operation
node-zookeeper-dubbo copied to clipboard

连接dubbo报错

Open xiaohui1016 opened this issue 7 years ago • 1 comments

throw new Error('offset: ' + offset + ' is out of buffer range.');

Error: offset: 4 is out of buffer range. at constructor.Record.deserialize (C:\Users\Administrator\WebstormProjects\sip-node\node_modules\node-zookeeper-client\lib\jute\index.js:465:15) at ConnectionManager.onSocketData (C:\Users\Administrator\WebstormProjects\sip-node\node_modules\node-zookeeper-client\lib\ConnectionManager.js:428:35) at emitOne (events.js:116:13) at Socket.emit (events.js:211:7) at addChunk (_stream_readable.js:263:12) at readableAddChunk (_stream_readable.js:250:11) at Socket.Readable.push (_stream_readable.js:208:10) at TCP.onread (net.js:594:20)

一直是这个错误,如果debug发现定义的方法签名一直是undefined TypeError: Cannot read property 'xxx' of undefined

xiaohui1016 avatar Mar 20 '18 10:03 xiaohui1016

楼主解决了吗?我也遇到了,毫无头绪。

经过大佬p412726700的加持,找到原因了,是zk的端口号错了。

arrowing avatar May 07 '18 02:05 arrowing