Skip to content
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

Private Org with Private Nuget Registry error NU1301: Failed to retrieve information #8914

Open
1 task done
jeffzickgraf opened this issue Jan 26, 2024 · 2 comments
Open
1 task done
Labels
L: dotnet:nuget NuGet packages via nuget or dotnet T: bug 🐞 Something isn't working

Comments

@jeffzickgraf
Copy link

jeffzickgraf commented Jan 26, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Package ecosystem

nuget

Package manager version

No response

Language version

.NET C#

Manifest location and content before the Dependabot update

No response

dependabot.yml content

version: 2
registries:
PrivateOrgGitHub:
type: nuget-feed
url: https://nuget.pkg.github.com/A-PRIVATE-ORG
username: notused-PwdIsToken@A-PRIVATE-ORG.com
password: ${{ secrets.PACKAGE_ACCESS_TOKEN }}
nuget.org:
type: nuget-feed
url: https://api.nuget.org
updates:

  • package-ecosystem: "nuget"
    directory: "/"
    schedule:
    interval: "daily"
    allow:
    • dependency-name: "sts*"
      registries:
    • PrivateOrgGitHub
    • nuget.org

Updated dependency

Expected package STS to go from 3.0.16 to 3.0.18

What you expected to see, versus what you actually saw

After this issue was closed: #8837 (comment) which was impacting trying to get private registry nuget feeds working. We now see another error with dependabot updates.

Seeing errors indicated trying to retrieve information about the private package like this:

updater | /tmp/package-dependency-resolution_XdezTk/Project.csproj : error NU1301: Failed to retrieve information about 'STS' from remote source 'https://nuget.pkg.github.com/A-PRIVATE-ORG/FindPackagesById()?id='STS'&semVerLevel=2.0.0'.

Attaching log:

updaterLog.txt

Native package manager behavior

No response

Images of the diff or a link to the PR, issue, or logs

No response

Smallest manifest that reproduces the issue

No response

@jeffzickgraf jeffzickgraf added the T: bug 🐞 Something isn't working label Jan 26, 2024
@abdulapopoola abdulapopoola added the L: dotnet:nuget NuGet packages via nuget or dotnet label Jan 26, 2024
@vitorelli
Copy link

I faced a similar issue and I workaround by using packagesourcecredentials with environment variable in nuget.config file.

https://learn.microsoft.com/en-us/nuget/reference/nuget-config-file#packagesourcecredentials

@brettfo
Copy link
Contributor

brettfo commented May 8, 2024

Accessing private NuGet feeds has had some big improvements recently, is this still happening?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L: dotnet:nuget NuGet packages via nuget or dotnet T: bug 🐞 Something isn't working
Projects
None yet
4 participants