Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-60301

Improve error messages

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Minor
    • None
    • None
    • fts, RESTful-APIs
    • None
    • 0

    Description

      If I try to create an index on a keyspace that does not exist, a json body is returned with the following error property (string) :

      rest_create_index: error creating index: c47fdb, err: manager_api: CreateIndex, Prepare failed, err: bleve: Prepare, err: readObjectStart: expect { or n, but found R, error found in #1 byte of ...|Requested r|..., bigger context ...|Requested resource not found.|...
      

      There is room for improvement 😂.

      I think having an object with a reason property (Keyspace not found) and a details property is a good start.

      Attachments

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

        Activity

          People

            abhinav Abhi Dangeti
            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