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.

Azure Artifacts Custom Package Error

See original GitHub issue

Description

I am trying to add custom Azure Artifacts Nuget package without success. I have edited/added the <packageSources> and <packageSourceCredentials> in the config file. but I am getting “Unable to retrieve package list…” Error in the Unity console when I hit the refresh button. Any suggestion would be appreciated.

… <packageSources> … <add key=“ABC” value=“https://pkgs.dev.azure.com/....json” /> … </packageSources> … <packageSourceCredentials> <ABC> <add key=“Username” value=“ABC@ABC.com” /> <add key=“Password” value=“1234567” /> </ABC> </packageSourceCredentials> …

System.Net.WebException: The remote server returned an error: (404) Not Found. at System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult asyncResult) [0x00058] in <ef151b6abb5d474cb2c1cb8906a8b5a4>:0 at System.Net.HttpWebRequest.GetResponse () [0x0000e] in <ef151b6abb5d474cb2c1cb8906a8b5a4>:0 at NugetForUnity.NugetHelper.RequestUrl (System.String url, System.String userName, System.String password, System.Nullable`1[T] timeOut) [0x000b9] in <b7bde984cef1447da61a3fd28d4789b0>:0 at NugetForUnity.NugetPackageSource.GetPackagesFromUrl (System.String url, System.String username, System.String password) [0x0006c] in <b7bde984cef1447da61a3fd28d4789b0>:0 at NugetForUnity.NugetPackageSource.Search (System.String searchTerm, System.Boolean includeAllVersions, System.Boolean includePrerelease, System.Int32 numberToGet, System.Int32 numberToSkip) [0x000ce] in <b7bde984cef1447da61a3fd28d4789b0>:0 UnityEngine.Debug:LogErrorFormat(String, Object[]) NugetForUnity.NugetPackageSource:Search(String, Boolean, Boolean, Int32, Int32) NugetForUnity.NugetHelper:Search(String, Boolean, Boolean, Int32, Int32) NugetForUnity.NugetWindow:UpdateOnlinePackages()

  • NuGet Package: [Custom Azure Artifacts Nuget Package]
  • NuGetForUnity Version: [2.0.1]
  • Unity Version: [2019.4]
  • Operating System: [Windows10]

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11

github_iconTop GitHub Comments

2reactions
zkkzkk32312commented, Jan 13, 2021

@jwittner Gotcha, I was just thinking that since I saw the popup that probably means my config credential wasn’t working properly anyways. The popup that showed up only asked for which Microsoft account I wish to use, and then it was able to find the saved password based on cached credentials on this machine. Thanks for the help.

1reaction
kit-ar-ukcommented, Oct 26, 2021

Can you confirm if your account would match the regex statements here?

That explains what is happening, our organization name has an hyphen and the regex is expecting only letters and numbers, so it will always fail to get the authentication feed.

image

These are the current naming rules for organizations in Azure DevOps, so the regex statement is missing the hyphen.

Read more comments on GitHub >

github_iconTop Results From Across the Web

An unexpected error occurred while trying to push the ...
After playing around with permission for pipelines build service, the root cause was found to be with proxy being blocking the universal package...
Read more >
Installing packages from Azure DevOps Artifacts -> Error: 401
Generally this might be caused by the caches in the client machine. So, please try to create a new PAT with the correct...
Read more >
Restore NuGet packages in Azure Pipelines
A: The NuGet restore task can fail for several reasons. The most common scenario is when you add a new project that requires...
Read more >
Upstream sources overview - Azure Artifacts
Custom upstream sources are only supported for npm packages. Override packages from upstream sources. When you enable upstream sources, you must ...
Read more >
Publish & download Universal Packages - Azure Pipelines
The Universal Packages task in Azure Pipelines is set to use $(Build.ArtifactStagingDirectory) as the default publish directory.
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