strapi-provider-upload-azure-storage
strapi-provider-upload-azure-storage copied to clipboard
Deleting media 404 error
When I delete media from the admin panel media library, I receive a 404 message.
This what the output looks like:
[2023-10-10 11:58:15.316] error: The specified blob does not exist.
RequestId:32a84387-a01e-0012-79ab-fbe3ce000000
Time:2023-10-10T18:58:15.3378526Z
RestError: The specified blob does not exist.
RequestId:32a84387-a01e-0012-79ab-fbe3ce000000
Time:2023-10-10T18:58:15.3378526Z
at handleErrorResponse (...\node_modules@azure\core-http\dist\index.js:3146:19)
at ...\node_modules@azure\core-http\dist\index.js:3082:49
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async StorageRetryPolicy.attemptSendRequest (...\node_modules@azure\storage-blob\dist\index.js:14396:24)
at async StorageClientContext.sendOperationRequest (...\node_modules@azure\core-http\dist\index.js:4865:31)
at async BlobClient.delete (...\node_modules@azure\storage-blob\dist\index.js:19568:20)
The URL for the media exists, and I can access it. The media file was uploaded via the API uploader with a folder path specified. It looks like your code assumes the default path?
Thanks for reporting. I can take a look at this later this week