Uploaded image for project: 'Couchbase node.js Client Library'
  1. Couchbase node.js Client Library
  2. JSCBC-1213

Throw errors with the actual issue in the message

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Minor
    • 4.x
    • None
    • library
    • None
    • 0

    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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jared.casey Jared Casey
            JesusTheHun Jonathan MASSUCHETTI
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty