question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

unable to create blob: Server failed to authenticate request

See original GitHub issue

Which service(blob, file, queue, table) does this issue concern?

blob

Which version of the Azurite was used?

3.9.0

Where do you get Azurite? (npm, DockerHub, NuGet, Visual Studio Code Extension)

DockerHub

What problem was encountered?

 22:01:12.967 INFO  STDOUT: 172.17.0.1 - - [16/Nov/2020:22:01:12 +0000] "GET /devstoreaccount1/dbvvehiclefiles?restype=container HTTP/1.1" 404 -
    22:01:12.984 INFO  STDOUT: 172.17.0.1 - - [16/Nov/2020:22:01:12 +0000] "PUT /devstoreaccount1/dbvvehiclefiles?restype=container HTTP/1.1" 201 -
    22:01:12.998 INFO  STDOUT: 172.17.0.1 - - [16/Nov/2020:22:01:12 +0000] "HEAD /devstoreaccount1/dbvvehiclefiles/vnext-202011161001129.xml HTTP/1.1" 404 -
    22:01:13.034 INFO  STDOUT: 172.17.0.1 - - [16/Nov/2020:22:01:13 +0000] "PUT /devstoreaccount1/dbvvehiclefiles/vnext-202011161001129.xml HTTP/1.1" 403

...

Caused by: com.azure.storage.blob.models.BlobStorageException: Status code 403, "<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Error>
      <Code>AuthorizationFailure</Code>
      <Message>Server failed to authenticate the request. Make sure the value of the Authorization header is formed correctly including the signature.
    RequestId:0b02a5b3-f84b-4ca0-92c2-164bb75213e2
    Time:2020-11-16T22:01:13.032Z</Message>
    </Error>

As you can see, I am able to create a container but I am not able to write to the blob in the previously created container.

Later in my tests, I am able to do some cleanups:

 22:01:13.076 INFO  STDOUT: 172.17.0.1 - - [16/Nov/2020:22:01:13 +0000] "GET /devstoreaccount1/dbvvehiclefiles?restype=container HTTP/1.1" 200 -
    22:01:13.098 INFO  STDOUT: 172.17.0.1 - - [16/Nov/2020:22:01:13 +0000] "DELETE /devstoreaccount1/dbvvehiclefiles?restype=container HTTP/1.1" 202 -

Since some operations are working, I infer that the credentials are transmitted well into the request.

Steps to reproduce the issue?

I’m trying to use Azurite with the Java SDK in order to run some integration tests with docker and testcontainers java library. Those tests are running just fine on the local machine but, as soon as I execute them in the CI environment (gitlab), I run into “AuthorizationFailure”.

The only difference I can see is that in CI environment I have a proxy configuration.

I’m not able to get the error logs from the Azurite server as it runs in a Docker container on the CI platform and it is destroyed right after the pipeline fails. So, if you can suggest a method to bring them up to the console, I would be happy to implement it.

Have you found a mitigation/solution?

No

Any ideas about what’s going wrong?

Thanks.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ArtemTrofimushkincommented, May 19, 2021

Hi, @XiaoningLiu I opened pull request for this

0reactions
stale[bot]commented, Apr 16, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure Blob Storage fails to authenticate: "Make sure the value ...
Hi I am trying to upload a binary file (a blob for an excel file, actually) to my storage account but the client...
Read more >
AzureStorage Blob Server failed to authenticate the request ...
Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. The error occurs when...
Read more >
Microsoft.Azure.Storage.StorageException: Server failed to ...
StorageException: Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. #176.
Read more >
How to fix Server failed to authenticate the request on ...
Make sure the value of Authorization header is formed correctly including the signature. I just create the storage account, so it should not...
Read more >
Error Message: “Server failed to authenticate the request ...
The following error indicates that there was an issue connecting to the Azure storage account: Lasernet monitor log:.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found