Details
-
Bug
-
Resolution: Unresolved
-
Major
-
1.0.0
-
None
-
None
Description
Problem
A user was using the node SDK and faced an error with RBAC where the error was
"err": {
|
"type": "Error",
|
"message": "protocol_error",
|
"stack": "Error: protocol_error",
|
"code": 1004
|
}
|
Once the logs were enabled it was clear to see it was a RBAC issue:
[2021-11-06 02:24:08.375] [703,710] [warning] 6ms, [c49459ea-0a35-4298-703d-d64f9f1814d7/957b08b8-51bf-43a8-057e-f1375e474fa8/tls/-] <patrick-1.patrick.cloud.couchbase.com/ 10.0.0.10:11207> unexpected message status during bootstrap: magic=alt_client_response (0x18), opcode=get_cluster_config (0xb5), status=no_access (0x24), error=(ref: "b91e9841-76bb-484a-a061-aa9232fd769a", ctx: "Authorization failure: can't execute GET_CLUSTER_CONFIG operation without the SystemSettings privilege") (opaque=6, 18 b5 03 00 00 01 00 24 00 00 00 ae 06 00 00 00 00 00 00 00 00 00 00 00)
|
Expectation
Error message has useful and hopefully actionable items
For example:
Error: Failed to get get_cluster_config from 10.0.0.10:11207: "Authorization failure: can't execute GET_CLUSTER_CONFIG operation without the SystemSettings privilege"
|
Having the connection really helps with debugging too, can jump straight to the service and node in question.
Note
Was not sure if the error was from the C++ library or nodeJS, please move the defect if required.