Azure / Azure/azure-storage-ruby
create_block_blob returns ResourceNotFound
- Dominant language
- Ruby
- Stars
- 88
- Forks
- 177
- PR merge metrics
- No merged PRs in 30d
Description
I experience a problem when trying to create a block blob with `create_block_blob` with a client using a SAS token to authenticate:
```
client = Azure::Storage::Blob::BlobService.create(
storage_account_name: 'my_account_name',
storage_sas_token: 'sas_token'
)
client.create_block_blob('some_container_name', 'test123.csv', 'some_content')
# Azure::Core::Http::HTTPError: ResourceNotFound (404): The specified resource does not exist.
```
The credentials are valid and I am able to create a block blob using the Azure Storage Explorer.
I don't get the `ResourceNotFound` error - I am just trying to create the blob so of course is does not exist yet - according to the README there is also not something I have to do before (like initializing the blob).
Or am I doing something wrong with authentication by SAS token?
Contributor guide
Research direction
Start with BlobService.create and the create_block_blob entry point, then compare their SAS-token handling with the README example. Reproduce the ResourceNotFound response using the shown container and blob inputs, and determine what needs to change so creating a new block blob succeeds with SAS authentication.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100