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

PreparedQuery and ACL #58

Open
dmitriyGarden opened this issue May 25, 2017 · 0 comments
Open

PreparedQuery and ACL #58

dmitriyGarden opened this issue May 25, 2017 · 0 comments

Comments

@dmitriyGarden
Copy link

Function query.create not works in case use ACL.
For example:
const consul = require('consul')({
"host":"127.0.0.1",
"port":8085,
"sequre":false,
"defaults":{
"token":"vagrant"
}
});
consul.query.create({
name: "rabbitmqQuery",
service: {
service: "rabbitmq",
onlypassing: true
}
}).then(....)

Unhandled rejection Error: Permission denied
at create (/var/www/kvartus-parser/node_modules/consul/node_modules/papi/lib/errors.js:14:5)
at Object.response (/var/www/kvartus-parser/node_modules/consul/node_modules/papi/lib/errors.js:38:15)
at IncomingMessage. (/var/www/kvartus-parser/node_modules/consul/node_modules/papi/lib/client.js:593:26)
at emitNone (events.js:72:20)
at IncomingMessage.emit (events.js:166:7)
at endReadableNT (_stream_readable.js:923:12)
at nextTickCallbackWith2Args (node.js:511:9)
at process._tickCallback (node.js:425:17)

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