Camunda 8.7 docker-compose vs. message publication via REST API

Hi, I have clean Camunda 8.7 installed locally using official docker-compose.yaml file without any modifications and If I try to publish message using /v2/messages/publication REST API endpoint then I got the following error response:

{
  "type": "about:blank",
  "title": "io.camunda.zeebe.broker.client.api.NoTopologyAvailableException",
  "status": 503,
  "detail": "Expected to handle REST API request, but the gateway does not know any partitions yet",
  "instance": "/v2/messages/publication"
}

If I try to do the same but using gRPC protocol, then message is successfully published.

What I am doing wrong, why it is not working via REST API?

Hi @bobeteb853, welcome to the forum! I suspect you need to enable the alpha endpoints. Some endpoints in the unified REST API are still alpha, though they are quite stable and I recommend developing against them.

I enabled alpha endpoints by setting CAMUNDA_REST_QUERY_ENABLED=true in operate service but the result is still the same.

Hi @bobeteb853 - sorry for the confusion, you need to add that to the zeebe: section. The REST API you are trying to use is part of our unified REST API featre, which moves control of the API to Zeebe instead of each component have it’s own API.