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.

nuget/v2/GetUpdates() web requests fail so the updates window doesn't work

See original GitHub issue

I’m seeing some errors in web request with GetUpdates(). This occurs when I attempt to install a package from a VSTS feed that has a dependency on another package. It seems to be preventing these dependencies from being automatically installed.

I’ll need to do some further investigation to see if this is an incompatibility specific to the VSTS feed or something related to way NuGetForUnity if making its requests.

For now I’m just posting this error message so others are aware of it.

Here is an example of the sort of errors I’m receiving: Unable to retrieve package list from https://myteam.pkgs.visualstudio.com/_packaging/myteam/nuget/v2/GetUpdates()?packageIds='Performance'&versions='1.0.2835'&includePrerelease=false&includeAllVersions=false&targetFrameworks=''&versionConstraints='' System.Net.WebException: The remote server returned an error: (404) Not Found. at System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult asyncResult) [0x00064] in <f044fe2c9e7e4b8e91984b41f0cf0b04>:0 at System.Net.HttpWebRequest.GetResponse () [0x0000e] in <f044fe2c9e7e4b8e91984b41f0cf0b04>:0 at NugetForUnity.NugetHelper.RequestUrl (System.String url, System.String password, System.Nullable`1[T] timeOut) [0x0007f] in D:\s\NuGetForUnity\Assets\NuGet\Editor\NugetHelper.cs:1144 at NugetForUnity.NugetPackageSource.GetPackagesFromUrl (System.String url, System.String password) [0x0005f] in D:\s\NuGetForUnity\Assets\NuGet\Editor\NugetPackageSource.cs:333 UnityEngine.Debug:LogErrorFormat(String, Object[]) NugetForUnity.NugetPackageSource:GetPackagesFromUrl(String, String) (at D:/s/NuGetForUnity/Assets/NuGet/Editor/NugetPackageSource.cs:345) NugetForUnity.NugetPackageSource:GetUpdates(IEnumerable`1, Boolean, Boolean, String, String) (at D:/s/NuGetForUnity/Assets/NuGet/Editor/NugetPackageSource.cs:432) NugetForUnity.NugetHelper:GetUpdates(List`1, Boolean, Boolean, String, String) (at D:/s/NuGetForUnity/Assets/NuGet/Editor/NugetHelper.cs:813) NugetForUnity.NugetWindow:UpdateUpdatePackages() (at D:/s/NuGetForUnity/Assets/NuGet/Editor/NugetWindow.cs:338) NugetForUnity.NugetWindow:DrawPackage(NugetPackage) (at D:/s/NuGetForUnity/Assets/NuGet/Editor/NugetWindow.cs:820) NugetForUnity.NugetWindow:DrawOnline() (at D:/s/NuGetForUnity/Assets/NuGet/Editor/NugetWindow.cs:513) NugetForUnity.NugetWindow:OnGUI() (at D:/s/NuGetForUnity/Assets/NuGet/Editor/NugetWindow.cs:378) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:12

github_iconTop GitHub Comments

3reactions
ForrestTreptecommented, Feb 12, 2018

@jwittner Agreed. We should fix this. I can’t get to it right away, but may be able to take a look later in the week.

1reaction
jwittnercommented, Oct 24, 2017

@ForrestTrepte I like a lot of what you have there - I was heading toward the same FindPackagesById method change. Given that VSTS supports everything that the Visual Studio and shell NuGet clients use I’m thinking we should move to a single implementation that’s more along those lines instead of setting up the new implementation as a fallback. The fallback here is likely to be more stable for other servers too I think, since those tools are probably the most thoroughly tested against them.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot add or update NuGet packages, receiving ...
An error occurred while retrieving package metadata for 'jQuery.3.4.1' from source 'NuGet.org'. Failed to fetch results from V2 feed at 'https ...
Read more >
Visual Studio Hang during nuget package update
I go into manage the nuget packages for the solution. I see there are updates. So I check "Select All Updates" and I...
Read more >
Visual Studio 2022 won't connect to NuGet
Visual Studio 2022 gives an error when trying to browse NuGet. I get these errors on 2 different Windows Servers (2016) I've tried....
Read more >
RestorePackages NuGet.targets
Now I get the error below when I try to open the NuGet packages gallery using the NuGet button in WebMatrix 3: An...
Read more >
OneDriveMapper | Liebensraum
OneDriveMapper is a free (non-commerial use), open source script I wrote to be used as a logon or on demand script to map...
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