Issue with retrieving PNS Feedback Data, provided storage container URL doesn't work

Vladimir 0 Reputation points
2024-03-27T08:34:26.1333333+00:00

I am using Azure Notification Hub on standard pricing tier and its REST API for diagnosing dropped notifications in some specific cases. Per message telemetry is generally available.

However, when trying to get PNS Feedback data for the notification hub, Azure Storage Container URL is generated successfully but when URL is called, server responded with 403 authentication failed error with message: "Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. RequestId:b1f114b0-601e-0030-1e14-80410f000000 Time:2024-03-27T07:00:21.8261075Z"

I did it according to the documentation from here: https://learn.microsoft.com/en-us/previous-versions/azure/reference/mt705560(v=azure.100)

How to overcome this problem?

Azure Notification Hubs
Azure Notification Hubs
An Azure service that is used to send push notifications to all major platforms from the cloud or on-premises environments.
255 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 18,191 Reputation points
    2024-03-28T11:32:22.0233333+00:00

    @Vladimir If you are trying to access BLOB Storage through REST API Endpoint,

    and getting below response with Authorization header

    <?xml version="1.0" encoding="utf-8"?>
    <Error>
        <Code>AuthenticationFailed</Code>
        <Message>Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.
    RequestId:096c6d73-f01e-0054-6816-e8eaed000000
    Time:2019-03-31T23:08:43.6593937Z</Message>
        <AuthenticationErrorDetail>Authentication scheme Bearer is not supported in this version.</AuthenticationErrorDetail>
    </Error>
    

    then solution is to include below header

    x-ms-version: 2017-11-09

    Let me know, if this works