question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Legacy Storage: Error Code 407

See original GitHub issue

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)

Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
srinivaspillalamarricommented, Sep 29, 2022

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

1reaction
amnguyecommented, Sep 28, 2022

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 the Proxy is this github issue. https://github.com/Azure/azure-storage-net/issues/580 Looks like you have to pass your own DelegatingHandler 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found