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

Unknown code: -1237188481 #70

Open
amitmtrn opened this issue Dec 24, 2017 · 9 comments
Open

Unknown code: -1237188481 #70

amitmtrn opened this issue Dec 24, 2017 · 9 comments

Comments

@amitmtrn
Copy link

amitmtrn commented Dec 24, 2017

I've got this weird exception:

2017-12-24T14:15:37.021Z - error: uncaughtException Error: Unknown code: -1237188481
    at validateCode (project-folder/node_modules/node-zookeeper-client/lib/Exception.js:51:15)
    at Function.create (project-folder/node_modules/node-zookeeper-client/lib/Exception.js:140:5)
    at ConnectionManager.Object.<anonymous>.ConnectionManager.onSocketData (project-folder/node_modules/node-zookeeper-client/lib/ConnectionManager.js:570:35)

Not sure if it's related to this package since I'm using kafka-node.
I'm also not sure what causes it; I'm just sending a message and listen to the message (straightforward use case).

@grayguo
Copy link

grayguo commented Jan 8, 2018

I'm seeing similar exception as well, with different code -321257332, running Node.js v6.11.5 on Linux

/app/node_modules/node-zookeeper-client/lib/Exception.js:51
        throw new Error('Unknown code: ' + code);
        ^
 Error: Unknown code: -321257332
    at validateCode (/app/node_modules/node-zookeeper-client/lib/Exception.js:51:15)
    at Function.create (/app/node_modules/node-zookeeper-client/lib/Exception.js:140:5)
    at ConnectionManager.onSocketData (/app/node_modules/node-zookeeper-client/lib/ConnectionManager.js:570:35)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:176:18)
    at Socket.Readable.push (_stream_readable.js:134:10)
    at TCP.onread (net.js:547:20)

@Catlite91
Copy link

+1

1 similar comment
@fbo3264
Copy link

fbo3264 commented Jul 10, 2018

+1

@alexguan
Copy link
Owner

What version of the zookeeper are you using? What operations were you doing when the exception happened?

@fbo3264
Copy link

fbo3264 commented Jul 24, 2018

@alexguan I was able to solve the issue. Unintentionally I was opening several zookeeper-connections almost at the same time, i.e. while the connect()-call was still in progress. It works fine now :)

@grayguo
Copy link

grayguo commented Aug 2, 2018

@alexguan I'm using [email protected] and the code simply does connect() to the Zookeeper server.

@Catlite91
Copy link

Catlite91 commented Nov 16, 2018

Some useful infomation:
step1. Create ZkClient and connect as normal
step2. Disable your network and wait for about 1 min(due to zk heap)
step3. Enable the network will throw this Error

image
image

@alexguan
Copy link
Owner

@Catlite91 which version of zookeeper are you using?

@Catlite91
Copy link

@alexguan 3.4.8

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