Error publishing package. NuGet server returned 403:

olivier.duhart's Avatar

olivier.duhart

20 Nov, 2019 07:33 PM

Hello I am unable to use the appveyor deployment to nuget.org.
I tried to push a nuget automatically after a build or even manually , it keeps throwing the following error :

Error publishing package. NuGet server returned 403: The specified API key is invalid, has expired, or does not have permission to access the specified package.

My key is valid as I can publish a nuget from command line using it.
I use this key for 2 projects :
- https://ci.appveyor.com/project/OlivierDuhart/sly - https://ci.appveyor.com/project/OlivierDuhart/sharpfilesystem

What can i look at to debug this ?

thanks,

Olivier

  1. Support Staff 1 Posted by Feodor Fitsner on 20 Nov, 2019 10:43 PM

    Feodor Fitsner's Avatar

    Hi Olivier,

    Make sure the key encrypted for OlivierDuhart account. Encryption keys are account-specific, i.e. if appveyor.yml has secure values encrypted under one AppVeyor account was moved/forked under a different account it won't work and the values should be re-encrypted.

  2. 2 Posted by olivier.duhart on 21 Nov, 2019 07:23 AM

    olivier.duhart's Avatar

    Hi,

    I may be that I forgot to update my appveyor.yml.
    It works for both project now.

    thanks for helping me update my appvyeor files.

    Olivier

  3. olivier.duhart closed this discussion on 21 Nov, 2019 07:23 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

07 Jul, 2020 06:21 PM
07 Jul, 2020 03:15 PM
05 Jul, 2020 02:33 AM
03 Jul, 2020 07:29 PM
03 Jul, 2020 03:53 AM

 

02 Jul, 2020 09:09 PM
02 Jul, 2020 03:24 PM
01 Jul, 2020 01:12 PM
30 Jun, 2020 04:26 PM
25 Jun, 2020 05:54 PM
24 Jun, 2020 08:11 AM