-
Notifications
You must be signed in to change notification settings - Fork 252
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
Intermittent package restore failures depending on client version #4512
Comments
There haven't been a lot of changes in this area. But there has been some general clean up around the http calls in 4.0. @joelverhagen do you know of any changes that may have fixed this? I'm wondering if it could still exist in 4.0. |
I can't think of a particular change that would fix this. @maartenba, could you provide a Fiddler trace and a full
|
Which is where the exception is thrown :-( Fun fact: if Fiddler sits in between, I'm unable to reproduce this issue (suspecting @emgarten's comment on HTTP-call clean-up in 4.x is probably what fixed this). Giving up on trying to capure Fiddler (tried 14 times, no repro, dropped Fiddler, repo after 2 tries). For reference, a (succesful) Fiddler trace is available here, may be useful. Feel free to close if you're unable to repro. |
Could a Wireshark capture be made against an HTTP (not HTTPS) package source? That is a less invasive form of network monitoring. |
Have been unable to copy this to an HTTP repo and repro 😢 Wondering: have there been changes to SSL settings that could be the reason for v4 working? (e.g. in ServicePointManager) And from a final test for the day: |
@dend the issue you are hitting doesn't look intermittent to me. A dependency package appears to have an invalid nuspec which causes the v3 feed for nuget.org to be invalid for that package. The result is that zero versions of that package are found by the client. https://api.nuget.org/v3/registration3-gz-semver2/microsoft.visualstudio.services.gallery.webapi/index.json contains a version range To workaround this you will need to either install Microsoft.VisualStudio.Services.Gallery.WebApi directly, or copy the package you are trying to use to a local folder where it can avoid the invalid one. I've opened NuGet/NuGetGallery#4684 to track this for nuget.org From the client side it would help if these issues were logged at a verbose level to help track this down. Potentially @maartenba was hitting a similar problem where the message for a transitive dependency was being ignored, possibly due to an intermittent problem with the feed. |
NuGet.exe seems to have trouble installing a package from
dotnet.myget.org
. The issue occurs with NuGet 3.5. The 4.0 nightlies always install the package correctly.Is there any way to find out the root cause of this issue?
Affected: NuGet version:
3.5
Not affected: NuGet version:
4.x
Not affected:
Visual Studio 2015 Update 3 with latest NuGet 3.5
Detailed repro steps so we can see the same problem
NuGet.exe install System.Net.Http -Version 4.4.0-beta-24913-02 -Verbosity Detailed -Source https://dotnet.myget.org/F/dotnet-core/api/v3/index.json
nuget locals all -clear
) and run the above again. It sometimes fails, sometimes works.The error is always one dependency not being found, for example:
Verbose Logs
See out.txt
Succesful logs (with 4.0): out2.txt
The text was updated successfully, but these errors were encountered: