Skip to content

Azure Blob Storage: Connection String SAS #8859

Closed

Description

Trying to upload blob to Azure Blob Storage using SAS based connection string. Crashed with the exception below. When using Access Key based connection string all works fine.

The specified resource does not exist.
RequestId:4affd386-201e-00d6-02f2-9f6b28000000
Time:2019-11-20T22:32:27.5499019Z
Status: 404 (The specified resource does not exist.)

ErrorCode: ResourceNotFound

Headers:
Server: Windows-Azure-Blob/1.0,Microsoft-HTTPAPI/2.0
x-ms-request-id: 4affd386-201e-00d6-02f2-9f6b28000000
x-ms-client-request-id: a73be4bc-348c-480d-8474-45ef2c806a57
x-ms-version: 2019-02-02
x-ms-error-code: ResourceNotFound
Date: Wed, 20 Nov 2019 22:32:26 GMT
Content-Length: 223
Content-Type: application/xml

Connecting string is copied from Azure portal, looks smth like this:
"BlobEndpoint=https://xxx.blob.core.windows.net/;SharedAccessSignature=sv=2019-02-02&ss=b&srt=sco&sp=rwdlac&se=2029-11-21T04:57:39Z&st=2019-11-19T20:57:39Z&spr=https&sig="

Exception or Stack Trace
at Azure.Storage.Blobs.BlobRestClient.BlockBlob.UploadAsync_CreateResponse(Response response)
at Azure.Storage.Blobs.BlobRestClient.BlockBlob.d__0.MoveNext()

Code Snippet
client.GetBlobClient(blob.BlobName).UploadAsync(stream, allowOverwrite, cancellationToken);

  • Version of the Library used: 12.0.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Labels

ClientThis issue points to a problem in the data-plane of the library.StorageStorage Service (Queues, Blobs, Files)customer-reportedIssues that are reported by GitHub users external to the Azure organization.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions