nuget/v2/GetUpdates() web requests fail so the updates window doesn't work
See original GitHub issueI’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:
- Created 6 years ago
- Reactions:1
- Comments:12
@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.
@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.