Error while calling Azure Event Hub REST API RRS feed

  • Question

  • I'm trying to work on a POC where I am going to post messages into Event Hub and then consume it within azure blob storage. I created a new event hub namespace and an event hub under it and then trying to use REST API to post message using shared key but getting error. here are the details of HTTP POST request and response. Please help.. what am I doing wrong??

    POST /aaeventhub/messages?timeout=60&api-version=2014-01 HTTP/1.1
    Host: aaeventhubns.servicebus.windows.net
    Content-Type: application/atom+xml;type=entry;charset=utf-8
    Authorization: SharedAccessSignature sr=aaeventhubns.servicebus.windows.net&sig=mE3DVY4rZXbIVNY4a7XXXXXtlGzqUDsBf0XMU9JOzlo%3D&se=1555052400&skn=RootManageSharedAccessKey
    Cache-Control: no-cache
    Postman-Token: 22c611ca-2e63-1c36-f554-240a80d2a2ba


    Response: getting error 401 4013: Invalid authorization token signature

    content-length →0
    date →Wed, 10 Apr 2019 21:18:33 GMT
    server →Microsoft-HTTPAPI/2.0
    strict-transport-security →max-age=31536000

    Wednesday, April 10, 2019 9:28 PM

All replies