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.

deprecated api version?

See original GitHub issue

Description

I’m encountering and error when installing a package. Other packages work. The package i am trying to install causes a nuget server response that it’s using a deprecated api.

— ERRORMESSAGE #1 — Unable to retrieve package list from http://www.nuget.org/api/v2/FindPackagesById()?id=‘SharpDX.DXGI’&$orderby=Version asc System.Net.WebException: The remote server returned an error: (400) Bad Request. at System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult asyncResult) [0x00058] in <ae22a4e8f83c41d69684ae7f557133d9>:0 at System.Net.HttpWebRequest.GetResponse () [0x0000e] in <ae22a4e8f83c41d69684ae7f557133d9>:0 at NugetForUnity.NugetHelper.RequestUrl (System.String url, System.String userName, System.String password, System.Nullable1[T] timeOut) [0x000b9] in <ebb7710be32040ba9a0cb144ce2a8967>:0 at NugetForUnity.NugetPackageSource.GetPackagesFromUrl (System.String url, System.String username, System.String password) [0x0006c] in <ebb7710be32040ba9a0cb144ce2a8967>:0 at NugetForUnity.NugetPackageSource.FindPackagesById (NugetForUnity.NugetPackageIdentifier package) [0x000ee] in <ebb7710be32040ba9a0cb144ce2a8967>:0 UnityEngine.Debug:LogErrorFormat(String, Object[]) NugetForUnity.NugetPackageSource:FindPackagesById(NugetPackageIdentifier) NugetForUnity.NugetPackageSource:GetSpecificPackage(NugetPackageIdentifier) NugetForUnity.NugetHelper:GetOnlinePackage(NugetPackageIdentifier) NugetForUnity.NugetHelper:GetSpecificPackage(NugetPackageIdentifier) NugetForUnity.NugetHelper:InstallIdentifier(NugetPackageIdentifier, Boolean) NugetForUnity.NugetHelper:Install(NugetPackage, Boolean) NugetForUnity.NugetHelper:InstallIdentifier(NugetPackageIdentifier, Boolean) NugetForUnity.NugetWindow:DrawPackage(NugetPackage, GUIStyle, GUIStyle) NugetForUnity.NugetWindow:DrawPackages(List1) NugetForUnity.NugetWindow:DrawOnline() NugetForUnity.NugetWindow:OnGUI() UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) — END ERRORMESSAGE 1 —

— ERRORMESSAGE 2 — Could not find SharpDX.DXGI [4.2.0, ) or greater. UnityEngine.Debug:LogErrorFormat(String, Object[]) NugetForUnity.NugetHelper:InstallIdentifier(NugetPackageIdentifier, Boolean) NugetForUnity.NugetHelper:Install(NugetPackage, Boolean) NugetForUnity.NugetHelper:InstallIdentifier(NugetPackageIdentifier, Boolean) NugetForUnity.NugetWindow:DrawPackage(NugetPackage, GUIStyle, GUIStyle) NugetForUnity.NugetWindow:DrawPackages(List`1) NugetForUnity.NugetWindow:DrawOnline() NugetForUnity.NugetWindow:OnGUI() UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) — END ERRORMESSAGE 2 —

— ERRORMESSAGE 3 — Unable to install package SharpDX.Direct3D11 4.2.0 System.Exception: Failed to install dependency: SharpDX.DXGI [4.2.0, ). at NugetForUnity.NugetHelper.Install (NugetForUnity.NugetPackage package, System.Boolean refreshAssets) [0x001a1] in <ebb7710be32040ba9a0cb144ce2a8967>:0 UnityEngine.Debug:LogErrorFormat(String, Object[]) NugetForUnity.NugetHelper:Install(NugetPackage, Boolean) NugetForUnity.NugetHelper:InstallIdentifier(NugetPackageIdentifier, Boolean) NugetForUnity.NugetWindow:DrawPackage(NugetPackage, GUIStyle, GUIStyle) NugetForUnity.NugetWindow:DrawPackages(List`1) NugetForUnity.NugetWindow:DrawOnline() NugetForUnity.NugetWindow:OnGUI() UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) — END ERRORMESSAGE 3 —

  • NuGet Package: [What is the name and version of the NuGet package you are installing?] SharpDX.Direct3D11
  • NuGetForUnity Version: [What version of NuGetForUnity are you running?] 3.0.1 from UnityPackage
  • Unity Version: [What version of Unity are you using?] 2019.3.2f1
  • Operating System: [What OS are you on?] Windows 10

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
ludos1978commented, Apr 8, 2021

I tested #384 and #385 on osx. I was able to install the package that failed previously. Also #385 feels a lot faster, but i didnt test it extensively. Thanks a lot for your work

1reaction
DWishRcommented, Apr 15, 2021

You can use the build.ps1 script in the root folder if you’re ok with that. I had already made a build off my pull request, so I just added it as a comment here.

…looks like you beat me to it, @shadiakiki1986 [:

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deprecated API Migration Guide
This page contains information you need to know when migrating from deprecated API versions to newer and more stable API versions.
Read more >
What is API Deprecation & Its Guidelines
API deprecation is the process of gracefully discontinuing an API. The process starts by first informing the customers that the API is no...
Read more >
Kubernetes 1.22 deprecated APIs
Most of the deprecated APIs in Kubernetes version 1.22 are former Beta APIs that have since graduated from Beta ( v1beta1 ) to...
Read more >
Kubernetes 1.25 deprecated APIs
Most of the deprecated APIs in Kubernetes version 1.25 are former Beta APIs that have since graduated from Beta (for example, v1beta1 )...
Read more >
Kubernetes Deprecation Policy
Release API Versions Preferred/Storage Version Notes X v1alpha1 v1alpha1 X+1 v1alpha2 v1alpha2 v1alpha1 is removed, "action required" re... X+2 v1beta1 v1beta1 v1alpha2 is removed, "action required"...
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