Camunda 8 - Query process instances (alpha) /process-instances/search

Getting the below error when trying to search Query process instances (alpha) the below curl command and i am trying to run camunda 8 as a standalone for development purpose if i use the same curl with camunda c8 run i am getting response but getting the below error when trying in standalone

curl --location '{url}/v2/process-instances/search' \
--header 'Content-Type: application/json' \
--data '{
  "filter": {
  
  }
}

{
“type”: “about:blank”,
“title”: “Failed to execute Process Instance Search Query”,
“status”: 400,
“detail”: “Failed to execute search query”,
“instance”: “/v2/process-instances/search”
}

Hi @sree.s and welcome to the forum.

The query api is still an alpha feature and as such must be explicitely activated.
See here for reference:

Hi @rohwerj thanks for the reply yes i have activated the query api enabled to true

  • CAMUNDA_REST_QUERY_ENABLED=true
    but still getting error is there any way i can see the error logs for the response from query api i have updated the logs to debug mode still i dont see any error logs , If i try the same request in windows c8 run local i am getting response instead of bad request

Found the issue for query api but now i am getting connection refused for the above request
io.camunda.zeebe.gateway.rest - Expected to handle REST API request, but there was a connection error with one of the brokers
java.net.ConnectException: Connection refused
at org.elasticsearch.client.RestClient.extractAndWrapCause(RestClient.java:934) ~[elasticsearch-rest-client-8.13.4.jar:8.13.4]
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:304) ~[elasticsearch-rest-client-8.13.4.jar:8.13.4]
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:292) ~[elasticsearch-rest-client-8.13.4.jar:8.13.4]
at co.elastic.clients.transport.rest_client.RestClientHttpClient.performRequest(RestClientHttpClient.java:91) ~[elasticsearch-java-8.13.4.jar:?]

but when i do curl command inside the zeebe container i am getting response

curl --location --request POST ‘http://elasticsearch:9200/operate-list-view*/_search’ --data ‘’
{“took”:1,“timed_out”:false,“_shards”:{“total”:1,“successful”:1,“skipped”:0,“failed”:0},“hits”:{“total”:{“value”:0,“relation”:“eq”},“max_score”:null,“hits”:}}

Hello @sree.s ,

If you are using Camunda 8 SM on your local then do port-forward to access APIs.
kubectl port-forward svc/camunda-zeebe-gateway 8081:8080

The issue is these are the indices which are not created when zeebe started
i am using docker compose to run in my local for testing and using the zeebe version 8.7.0-alpha2

 zeebe-record_process-instance_8.6.5_2024-12-11          mdVWiNn1QZalIOL2MqnzKw   3   0          0            0       747b           747b         747b
green  open   zeebe-record_process-instance_8.6.5_2024-12-10