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

Unable to upload package via .NET CLI (403 Error) #13403

Open
Center-Deal opened this issue Apr 21, 2024 · 1 comment
Open

Unable to upload package via .NET CLI (403 Error) #13403

Center-Deal opened this issue Apr 21, 2024 · 1 comment
Labels
Functionality:SDK The NuGet client packages published to nuget.org Product:dotnet.exe Triage:NeedsMoreInfo Type:Bug WaitingForCustomer Applied when a NuGet triage person needs more info from the OP

Comments

@Center-Deal
Copy link

NuGet Product Used

dotnet.exe, Other/NA

Product Version

latest

Worked before?

No

Impact

I'm unable to use this version

Repro Steps & Context

Follow the steps here to upload a package.

On the section labeled "Publish with the .NET CLI or NuGet CLI", copy the code snippet:
'''dotnet nuget push Contoso.08.28.22.001.Test.1.0.0.nupkg --api-key qz2jga8pl3dvn2akksyquwcs9ygggg4exypy3bhxy6w6x6 --source https://api.nuget.org/v3/index.json'''. This is the .NET CLI snippet. Replace the values as indicated (ID, API key, etc).

Console outputs: "error: Response status code does not indicate success: 403 (The specified API key is invalid, has expired, or does not have permission to access the specified package.)."/

For context, yes I verified the API key is correct, and yes I ensured that my package ID was globally unique. I triple checked, repackaged, and retried several times at different times of day, just in case.

Upload via the CLI did not work.

I tried uploading through the web interface. Worked on first try, as expected.

Verbose Logs

No response

@jgonz120
Copy link

Hello, I was unable to reproduce this issue following these steps. I know you've checked a bunch of things already, but can you verify that the API Key has the GLOB pattern set to * or to something that would have access to your package?

@jgonz120 jgonz120 added Functionality:SDK The NuGet client packages published to nuget.org Product:dotnet.exe WaitingForCustomer Applied when a NuGet triage person needs more info from the OP Triage:NeedsMoreInfo and removed Triage:Untriaged labels Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Functionality:SDK The NuGet client packages published to nuget.org Product:dotnet.exe Triage:NeedsMoreInfo Type:Bug WaitingForCustomer Applied when a NuGet triage person needs more info from the OP
Projects
None yet
Development

No branches or pull requests

2 participants