Description
I have received the following error :
InternalServerFailureError: internal server failure
Can you tell me what is the issue ? Me neither.
You have to dive deep into the `cause` property (or `context`, which oddly contains the exact same data) and decipher the body string to get the actual problem :
cause: [Error: internal_server_failure (5)] {
|
ctxtype: 'http',
|
code: 5,
|
method: 'POST',
|
path: '/query/service',
|
http_status: 500,
|
http_body: '{\n' +
|
'"requestID": "85ba82f8-501e-4f0b-bfd0-c338d0212ce2",\n' +
|
'"clientContextID": "cddaaf-f8f1-c745-e091-ce4064829b381a",\n' +
|
'"signature": null,\n' +
|
'"results": [\n' +
|
'],\n' +
|
'"errors": [{"code":5000,"msg":"GSI CreateIndex() - cause: Please Set Indexer Storage Mode Before Create Index\\n"}],\n' +
|
'"status": "errors",\n' +
|
'"metrics": {"elapsedTime": "10.031994785s","executionTime": "10.031929791s","resultCount": 0,"resultSize": 0,"serviceLoad": 12,"errorCount": 1}\n' +
|
'}\n',
|
},
|
We should set the errors as the message.