Error Code 407 while uploading file in azure blob storage

Srinivas Pillalamarri 1 Reputation point
2022-09-29T05:42:01.047+00:00

Your documentation not covering error code 407, Why?

I'm getting following error while executing "await blockBlob.UploadFromFileAsync(pFilePath);" in my network, because my network configured with proxy.

The proxy tunnel request to proxy '[http://ipaddress:port/' failed with status code '407'.

But no where I saw the solution for it. Your HTTP Error Status code page also not shows 407 code. Why?
HttpClientHandler available for other HttpClient activities but nothing is available for CloudBlobClient why?

Complete code as following:

string blobstorageconnection = pConfig.AzuerBlobStorageConnectionString;
CloudStorageAccount cloudStorageAccount = CloudStorageAccount.Parse(blobstorageconnection);
CloudBlobClient? blobClient = null;
CloudBlockBlob? blockBlob = null;
blobClient = cloudStorageAccount.CreateCloudBlobClient();
CloudBlobContainer container = blobClient.GetContainerReference(pConfig.AzureStorageContainerName);
blockBlob = container.GetBlockBlobReference(pFileName);
await blockBlob.UploadFromFileAsync(pFilePath + @"\" + pFileName)

Current version of Azure.Storage.Blob is 12.13.1 and I'm very well using it.

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,192 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.