'peeking azure servicebus error queus + curl

Ive red this doc:

https://docs.microsoft.com/en-us/rest/api/servicebus/peek-lock-message-non-destructive-read#request

Im trying to automate a process which part of it is getting my messages that are my servicebus error queue

my queue name is test-error:

curl -d --location --request POST 'https://bla-develop.servicebus.windows.net/test-error/messages/head' --header 'Authorization: Bearer <here_is_insert_the_long_token>

im getting nothing in return, can anyone point me to what im doing wrong please?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source