Legacy Storage: Error Code 407
See original GitHub issueYour 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)
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
- ID: 65f9c92f-459a-d316-9a17-096a44e02f5a
- Version Independent ID: eeaba0c8-8aba-e7ff-7555-a0a4fd00c4fc
- Content: CloudStorageAccount Class (Microsoft.Azure.Storage) - Azure for .NET Developers
- Content Source: xml/Microsoft.Azure.Storage/CloudStorageAccount.xml
- Service: storage
- GitHub Login: @rloutlaw
- Microsoft Alias: routlaw
Issue Analytics
- State:
- Created a year ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
How To Fix HTTP Error 407 "Proxy Authentication Required"
The “407 Proxy Authentication Required” error occurs when the server is unable to complete a request. This guide will show you how to...
Read more >407 Proxy Authentication Required - HTTP - MDN Web Docs
The HTTP 407 Proxy Authentication Required client error status response code indicates that the request has not been applied because it ...
Read more >Samsung Galaxy Internal Error (407) official workaround...
Go to Settings > Apps > System Apps > OMADM > Storage > Clear Data. 407 error message disappears in the notification bar....
Read more >Patch Download Failure - Error 407
Error code 407 occurs when the web server is not reachable or access to the server has been denied. This might happen due...
Read more >How do I fix HTTP Error 407? [Step By Step]
HTTP Error 407 is a status code that indicates that the client is unable to authenticate itself with the proxy server.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It is really ridiculous! If you don’t know something, then please say NO! but don’t go around to escape from the issue. Current version of Azure.Storage.Blob is 12.13.1 and I’m very well using it.
Simply I’m asking to handle the proxy setting! How can I pass the proxy details (ip with credentials) in following code?
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)
**No one able to answer to this simple question?
Is that MS forgot to develop this?**
Check the issue properly before closing the issue
The Storage SDK version you’re using is deprecated, please kindly upgrade to the latest version which is supported in this namespace
The deprecated version of the SDK you are using lives in this repository.
The most similar issue and version of the SDK I can find to yours in regards to plugging in your own
HttpClientHandler
to set theProxy
is this github issue. https://github.com/Azure/azure-storage-net/issues/580 Looks like you have to pass your ownDelegatingHandler
to the client to get that done. https://github.com/Azure/azure-storage-net/blob/master/Lib/Common/Blob/CloudBlobClient.Common.cs#L98 It will then grab the some form of the http client from here.Apologies we can’t help more due to the version being deprecated.
Closing github issue since the issue is regards to a deprecated SDK package.