Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create_block_blob returns ResourceNotFound #219

Open
BenG-x opened this issue Jun 22, 2022 · 0 comments
Open

create_block_blob returns ResourceNotFound #219

BenG-x opened this issue Jun 22, 2022 · 0 comments

Comments

@BenG-x
Copy link

BenG-x commented Jun 22, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant