Details
-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
None
-
None
-
None
Description
Couchbase server (4.5 beta enterprise) is being setup through CLI. No index storage mode is being set beforehand.
Where trying to CREATE PRIMARY INDEX via nodejs client library (bucket.query), there is no error returned via the callback first parameter. However there in the 3rd parameter of the callback, we got an error as below.
{ requestID: 'ddd74be7-86b7-40d8-b2c9-64f21c51d8f6', |
signature: null, |
errors:
|
[ { code: 5000,
|
msg: 'GSI CreatePrimaryIndex() - cause: Please Set Indexer Storage Mode Before Create Index' } ], |
status: 'errors', |
metrics:
|
{ elapsedTime: '605.781796ms', |
executionTime: '605.695541ms', |
resultCount: 0,
|
resultSize: 0,
|
errorCount: 1 } }
|
This is considered as an error too and should be return via the 1st parameter of the callback for a node application to handle the error.
Attachments
Issue Links
- duplicates
-
JSCBC-306 Bucket management operations do not indicate status code errors.
- Resolved