none
Storage RESTapi: List containers "The Date header in the request is incorrect."

    Întrebare

  • Hello there,

    I am trying storage rest api to list containers, however I got "The Date header in the request is incorrect." error.

    I saw there is same issue here:

    https://social.msdn.microsoft.com/Forums/en-US/287e70b7-6302-4cf4-a494-1c8f0c1e3a90/api-listing-containers-the-date-header-in-the-request-is-incorrect?forum=windowsazuremanagement

    but it seems it was solved by adding "GMT".

    In mine, I do have GMT, the following is header that I passed. I also tried UTC.

    HEADER ====

        $headers = [
            "x-ms-date: Fri, 17 May 2018 09:26:00 GMT",
            "x-ms-version: 2017-07-29",
            //"x-ms-version: 2017-04-17",
            "Authorization: SharedKey fordrmtest:2ia88FsxxxxxxxxSWDSsA/EBsLkNJQOsmnhN7YrkNgjSwxxxxxxxxxxxx",
            "Host: fordrmtest.blob.core.windows.net",
            "Connection: Keep-Alive"
        ];

    =====

    RESPONSE =====

    <?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:71c1a07b-a01e-0008-04c1-edde89000000
    Time:2018-05-17T09:26:18.4231794Z</Message><AuthenticationErrorDetail>The Date header in the request is incorrect.</AuthenticationErrorDetail></Error>

     =====

    Anyone has any thoughts?

    Ying



    17 mai 2018 09:42