Skip to content

500 error on /query endpoint #7

@maximusunc

Description

@maximusunc

I'm getting a 500 error from the following GET request: https://smart-api.info/api/query?q=TRAPI%20KP. This query used to work but has recently stopped working.

Here is the error that is returned:
{"code":500,"success":false,"error":"search_phase_execution_exception","root_cuase_line_00":"Query contains too many nested clauses; maxClauseCount is set to 1024","debug":{"error":{"root_cause":[{"type":"too_many_nested_clauses","reason":"Query contains too many nested clauses; maxClauseCount is set to 1024"}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"smartapi_docs","node":"lpmpQYOsQVSFYPa-3_aCsw","reason":{"type":"too_many_nested_clauses","reason":"Query contains too many nested clauses; maxClauseCount is set to 1024"}}],"caused_by":{"type":"too_many_nested_clauses","reason":"Query contains too many nested clauses; maxClauseCount is set to 1024","caused_by":{"type":"too_many_nested_clauses","reason":"Query contains too many nested clauses; maxClauseCount is set to 1024"}}},"status":500}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions