Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error '403 Server failed to authenticate the request.' shows when executing 'Download All...' for one docker container/custom account #8514

Closed
v-kellyluo opened this issue Mar 11, 2025 · 1 comment
Assignees
Labels
🧪 testing Found through regular testing
Milestone

Comments

@v-kellyluo
Copy link

Storage Explorer Version

1.38.0-dev (104)

Regression From

Not a regression

Architecture

x64

Storage Explorer Build Number

20250311.3

Platform

All

OS Version

Windows11 x64/Windows 11 arm64/Linux Ubuntu 22.04/MacOS Sequoia 15.0(Apple M1 Pro)

Bug Description

An error '403 Server failed to authenticate the request' shows when executing 'Download All...' for one docker container/custom account.

Steps to Reproduce

  1. Install Docker desktop.
  2. Run docker –version to make sure docker is installed successfully.
  3. Run Azurite with docker with the following command:
    docker run -p 10000:10000 -p 10001:10001 -p 10002:10002 \ -e AZURITE_ACCOUNTS="customaccount1:Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==" \ --name azurite-container mcr.microsoft.com/azure-storage/azurite
  4. Open Storage Explorer -> Expand the custom account.
  5. Blob Containers -> Create a blob container.
  6. Upload a blob -> Click 'Download -> Download All...'.
  7. Check whether the downloaded items are transferred successfully.

Actual Experience

An error '403 Server failed to authenticate the request.' shows in the activity log.
Image

Error details:Server failed to authenticate the request. Make sure the value of the Authorization header is formed correctly including the signature.

Expected Experience

The downloaded items are transferred successfully.

Additional Context

This issue doesn't reproduce for emulator blob containers.

@v-kellyluo v-kellyluo added the 🧪 testing Found through regular testing label Mar 11, 2025
@craxal
Copy link
Contributor

craxal commented Mar 11, 2025

I tried this using the Default Ports connection, and it worked. The only difference I could see between the Default Ports and the Docker container connections was the use of "127.0.0.1" vs "localhost". And when I changed the Docker connection to use "127.0.0.1", it started working.

The seems like a bug in Azurite, but we can adjust our code to use 127.0.0.1.

Azure/Azurite#2538

@craxal craxal added this to the 1.38.0 milestone Mar 11, 2025
@craxal craxal self-assigned this Mar 11, 2025
@craxal craxal closed this as completed Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧪 testing Found through regular testing
Projects
None yet
Development

No branches or pull requests

2 participants