node-consul
node-consul copied to clipboard
PreparedQuery and ACL
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.