Azure correctly creates the blob, but Azurite returns CannotVerifyCopySource (404)
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 393
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 36
Description
# Summary
Using Azure Blob Storage on the cloud, I can create a new blob from a url with no problem. However, using Azurite, get an error saying "CannotVerifyCopySource", status code 404.
I'm trying to verify if the issue lies in Azurite itself or the Rust SDK. In the Rust code example I set, I'm using the SDK's [`copy_from_url`](https://docs.rs/azure_storage_blobs/0.21.0/azure_storage_blobs/prelude/struct.BlobClient.html#method.copy_from_url) to copy a cat image from thecatapi cdn into the Azure blob storage container.
## Versions
I'm using azurite's latest docker container image (azure-storage/azurite:latest) as of November 11th, 2024.
Azure Rust SDKs version 0.21.0
## Steps to reproduce
I created [a dummy project that can help reproducing the error.](https://github.com/caioluis/azurite-demo) You just need to change the environment variables to test either on Azure or Azurite. As a second option, here are the steps:
1. Run an Azurite container.
2. Use [Copy blob from URL](https://learn.microsoft.com/en-us/rest/api/storageservices/copy-blob-from-url?tabs=microsoft-entra-id) operation.
3. Verify if the 404 error persists
4. Change the environment variables to repeat the same operations on Azure cloud
5. Verify if the blob is created.
## Additional information
I haven't found any workaround yet. There are some hypothesis around the copy not being implemented as I have seen in other GitHub issues, but in those situations, users get an error message saying it is not implemented yet, which is not the case this time.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.