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


  • 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:

    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",
            "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.
    Time:2018-05-17T09:26:18.4231794Z</Message><AuthenticationErrorDetail>The Date header in the request is incorrect.</AuthenticationErrorDetail></Error>


    Anyone has any thoughts?


    joi, 17 mai 2018 09:42


Toate mesajele