How to solve 404 while working with azure.storage.fileshare?

Bharvi Bhut 181 Reputation points
2022-12-23T19:28:06.647+00:00

Detailed logs of error:

[Information] Request URL: 'https://*******.file.core.windows.net/--/--***'
Request method: 'GET'
Request headers:
'x-ms-version': 'REDACTED'
'x-ms-range': 'REDACTED'
'Accept': 'application/xml'
'User-Agent': 'azsdk-python-storage-file-share/12.10.0 Python/3.9.15 (Linux-5.10.102.2-microsoft-standard-x86_64-with-glibc2.31)'
'x-ms-date': 'REDACTED'
'x-ms-client-request-id': 'ec462ba8-82f5-11ed-8e35-00155da773ff'
'Authorization': 'REDACTED'
No body was attached to the request
[Information] Response status: 404
Response headers:
'Content-Length': '223'
'Content-Type': 'application/xml'
'Server': 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0'
'x-ms-request-id': '8613cfc1-501a-0063-3502-17b13b000000'
'x-ms-client-request-id': 'ec462ba8-82f5-11ed-8e35-00155da773ff'
'x-ms-version': 'REDACTED'
'x-ms-error-code': 'REDACTED'
'Date': 'Fri, 23 Dec 2022 19:13:46 GMT'

In this type of error how we can troubleshoot the error?
can anyone please help me with this?

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,420 questions
Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
757 questions
Azure Storage
Azure Storage
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,529 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,193 questions
{count} votes

Accepted answer
  1. Sumarigo-MSFT 47,466 Reputation points Microsoft Employee Moderator
    2022-12-30T16:52:33.003+00:00

    @Bharvi Bhut Can you please elaborate bit more on your query? May I know what exactly are trying to accomplish?

    • Are you passing SAS token or auth in postman?
    • Cross verify the fileshare name?

    Azure Files error codes: https://learn.microsoft.com/en-us/rest/api/storageservices/File-Service-Error-Codes

    Ref: Get File Service Properties & Get Share Properties

    Based on the error message I understand, It could be policy/permission issue/Network failure or share doesn't exist Check the Access level or Regenerate the SAS token and provide appropriate permission.

    This article helps you investigate client application errors by using metrics, client side logs, and resource logs in Azure Monitor. Troubleshoot client application errors in Azure Storage accounts

    If the issue still persist, please share the complete screenshot of the error message, I would like to work closer on this issue

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

    ----------

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

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.