Azure Blob Storage: how to fix 403 error on my Windows 10 PC

Sergey Kryuchkov 0 Reputation points
2023-10-27T20:18:52.6766667+00:00

Hi everyone!

I faced with very strange bug with Azure Blob Storage. POST requests works fine (I mean I can upload files to container). But GET requests sometimes return 403 error:

GET https://studioproject.blob.core.windows.net/files-local/47fe6e73-c617-4b58-bad4-b5daed585e80.jpeg?sv=2021-10-04&st=2023-10-27T14%3A13%3A18Z&se=2023-10-27T14%3A18%3A18Z&sr=c&sp=rwd&sig=JRL2QDuj2Zg1kWPfCorIKY8DJRrxu3OyH0OAoWqYNCk%3D 403 (Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.)

And it happens on the one particular machine (which is running on Windows 10). On my macbook, on computer running on Linux the same development set up works fine without such an error. What could be a reason of this strange bug and what can I try to solve the problem?

What I tried to do:

  1. Change timezone and sync time on my PC
  2. Remove params from link (works, but I do not want to remove them at all)
  3. Reinstall Chrome and use another browsers

Also I note, that the problem only with local development. When I use actual site from my PC on windows 10, there is no such an error

Also I do not understand, why it is happens just sometimes (not always)? I believe the problem with the machine, but not sure.

Any ideas? I'll be grateful for any help

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,192 questions
{count} votes

2 answers

Sort by: Most helpful
  1. JimmySalian-2011 42,491 Reputation points
    2023-10-29T17:19:38.35+00:00

    Hi,

    By any chance did you check the SAS keys on the PC? As this could be one of the issue causing 403 errors - https://learn.microsoft.com/en-us/troubleshoot/azure/azure-storage/troubleshoot-storage-client-application-errors?tabs=dotnet

    Hope this helps.

    JS

    ==

    Please Accept the answer if the information helped you. This will help us and others in the community as well.

    0 comments No comments

  2. Sumarigo-MSFT 47,466 Reputation points Microsoft Employee Moderator
    2023-10-30T13:57:54.87+00:00

    @Sergey Kryuchkov Adding more information to the above @JimmySalian-2011 response!

    The error you are encountering with Azure Blob Storage when making GET requests, specifically the "Server failed to authenticate the request" with a 403 error, can be due to a variety of factors. Since you are experiencing this issue on one particular machine running Windows 10 and not consistently, there are several potential reasons and troubleshooting steps to consider:

    1. Can you also check Firewall is enabled on your Windows 10 (Review the Windows Firewall and any antivirus software on your Windows 10 machine. Sometimes, these security tools can interfere with network requests. Try temporarily disabling them for testing purposes)?
    2. Check if there are any network-related issues specific to your Windows 10 machine. Ensure that the machine has proper network connectivity to Azure Blob Storage. Firewalls or security software on the Windows machine might be interfering with the requests.
    3. If your Windows machine is using a proxy server or VPN, it may affect the way requests are sent to Azure Blob Storage. Ensure that the proxy or VPN configuration is not causing the issue.
    4. Investigate any machine-specific factors, such as group policies, Windows updates, or software configurations that might affect how your machine interacts with Azure services.
    5. You mentioned that this issue occurs on one machine and with specific browsers. Try clearing your browser's cache and cookies. Additionally, make sure there are no cached or invalid credentials stored for Azure Blob Storage. Logging out and back into your Azure account may help.

    Based on the error message, there is a similar thread discussion in the SO forum, please refer to the suggestion and let me know the status.

    Please let us know if you have any further queries. I’m happy to assist you further.


    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.