It is not allowed to publish events

thanks for your answer :slightly_smiling_face:

The code is called in a saga.

When i block the call i get an error EventListener [AnnotatedSaga] failed to handle event [0a9fd626-68d9-46c9-934c-74e43888836f] (com.pt.api.PaymentConfirmed). Continuing processing with next listener, Subscription queries in Sagas

For that i changed block to subscribe.