Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
Error message when pushing to proget with incorrect API key
-
Hello,
When pushing to proget to a nuget feed with an incorrect API key, proget responds with the following error message:
choco push hello.6.0.399.nupkg -s https://proget.dev.xx.yy/testfeed -k <key>
Attempting to push hello.6.0.399.nupkg to https://proget.xx.yy/testfeed
Cannot access a disposed object.
Object name: 'System.Net.Sockets.NetworkStream'.Giving the correct api key, works as expected. It would be help if the error was a 401). I am using [1] for choco client.
-Thanks.
-
Hello;
I think that error is coming from
choco
client.ProGet will respond with a
403: Invalid API Key
error response when an invalid API is sent, then terminate the request. A401
will cause the NuGet client to prompt for credentials.
-
Thanks for the update.