-
Notifications
You must be signed in to change notification settings - Fork 374
dotnet-dump and dotnet-symbol returns 407 behind a proxy #5478
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
base: main
Are you sure you want to change the base?
Conversation
…ding symbols. Setting the default network credentials before HttpClient is set. Optionally HttpSymbolStore could create a custom HttpClientHandler, but based on the remarks https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpclienthandler.usedefaultcredentials?view=net-9.0 this is only desired for client applications, while not sure how this project is used otherwise.
6d8b50c
to
fe89400
Compare
fe89400
to
c9cb4c9
Compare
@@ -67,7 +67,15 @@ public HttpSymbolStore(ITracer tracer, SymbolStore backingStore, Uri symbolServe | |||
_authenticationFunc = authenticationFunc; | |||
|
|||
// Create client | |||
_client = new HttpClient | |||
#if NETSTANDARD2_0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this is enough, but I can only fully test it on Monday.
and
Proxy is left default, UseProxy is set to true, DefaultProxyCredentials set.
EDIT I find this change more risky. HttpClientHandler has different behavior on .net462, .net8, .net9.
@mikem8361 - any suggestions? |
@hoyosjs can you look at this? |
@mikem8361 or @hoyosjs could you please have a look? |
dotnet-dump and dotnet-symbol returns HTTP 407 status code behind a proxy when downloading symbols. Setting the default network credentials before
HttpClient
is created. OptionallyHttpSymbolStore
could create a customHttpClientHandler
too (different solution because of netstandard2.0), but based on the remarks this is only desired for client applications. I am not sure how this Microsoft.SymbolStore project is used otherwise. Hence, dotnet-dump and dotnet-symbol sets the default proxy credentials before creating aHttpSymbolStore
.