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

setData data can be null or undefined? #94

Open
ilaipi opened this issue Aug 10, 2019 · 0 comments
Open

setData data can be null or undefined? #94

ilaipi opened this issue Aug 10, 2019 · 0 comments

Comments

@ilaipi
Copy link

ilaipi commented Aug 10, 2019

run:

client.setData(path, '', cb);
// AssertionError [ERR_ASSERTION]: data must be a valid buffer, null or undefined.
// node_modules/node-zookeeper-client/index.js:492:5
client.setData(path, null, cb);
// TypeError: Cannot read property 'length' of null
// node_modules/node-zookeeper-client/index.js:511:38
client.setData(path, undefined, cb);
// TypeError: Cannot read property 'length' of undefined
// node_modules/node-zookeeper-client/index.js:511:38
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

1 participant