Skip to content

ScopeSearchIndexManager::getAllIndexes throw error when response_code=200 #132

@davidkhala

Description

@davidkhala

Context

I am connecting to Couchbase Capella by this sdk.
I have loaded prebuilt sample dataset travel-sample.
I checked via another API QueryIndexManager::getAllIndexes('travel-sample'). to make sure several index are overthere.

Problem

When I use API ScopeSearchIndexManager::getAllIndexes today, it throws error stack

[InternalServerFailureError: internal server failure] {
  cause: [Error: internal_server_failure (5)] {
    ctxtype: 'http',
    code: 5,
    client_context_id: '058817-2644-9d45-868e-d263d31d76439a',
    method: 'GET',
    path: '/api/bucket/travel-sample/scope/inventory/index',
    http_status: 200,
    http_body: '{"status":"ok","indexDefs":null}\n',
    last_dispatched_to: '18.143.170.87:18094',
    last_dispatched_from: '192.168.3.230:58493',
    retry_attempts: 0,
    retry_reasons: []
  },
  context: HttpErrorContext {
    method: 'GET',
    request_path: '/api/bucket/travel-sample/scope/inventory/index',
    response_code: 200,
    response_body: '{"status":"ok","indexDefs":null}\n'
  }
}

2 problems

  • Why it throw when response_code = 200?
  • Why no indexes are found via this API? Anything I misused?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions