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

"The parameter is incorrect" error is confusing when accidentally specifying Password instead of ClearTextPassword #3245

Open
zarenner opened this issue Jul 29, 2016 · 7 comments
Labels
Area:ErrorHandling warnings and errors/log messages & related error codes. Category:Quality Week Issues that should be considered for quality week Priority:2 Issues for the current backlog. Product:NuGet.exe NuGet.exe Type:Bug
Milestone

Comments

@zarenner
Copy link

We had a user enter a password under the "Password" key rather than "ClearTextPassword" in their nuget.config. As far as I've found, all versions of nuget will emit the text "The parameter is incorrect." without any additional useful information.

e.g.
"WARNING: Unable to find version '1.0.0' of package 'testpackage'.
https://zlrenner.pkgs.visualstudio.com/_packaging/feed1/nuget/v3/index.json: Unable to load the service index for source https://zlrenner.pkgs.visualstudio.com/_packaging/feed1/nuget/v3/index.json.
The parameter is incorrect."

NuGet should emit a nicer message indicating that there is an issue with the (supposed to be) encrypted password.

@rrelyea rrelyea added Product:NuGet.exe NuGet.exe Type:Bug Area:ErrorHandling warnings and errors/log messages & related error codes. labels Aug 4, 2016
@rrelyea rrelyea added this to the 3.6 Beta2 milestone Aug 4, 2016
@PatoBeltran PatoBeltran added the Priority:3 Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog. label Nov 30, 2017
@PatoBeltran PatoBeltran modified the milestones: Future-1, Backlog Nov 30, 2017
@priyesh9875
Copy link

Any update on this? I am getting this error while using proxy in corporate network.

@KyleLJohnson
Copy link

Any update?

@voroninp
Copy link

voroninp commented Oct 1, 2018

@zarenner And after sources have no priority local source is almost always faster and add or restore fail despite package is hosted in standard NuGet feed.

@bahman616
Copy link

+1 this one. It took me a while to find this issue and figure out this error is because I needed to change "Password" key under packageSourceCredentials to "cleartextpassword"!

@Sebbstar
Copy link

took me hours. This error message isn't helpful. But i am still sure my password is correct maybe another parameter 😔🤔

@zivkan zivkan added the Category:Quality Week Issues that should be considered for quality week label Apr 6, 2021
@nkolev92 nkolev92 added Priority:2 Issues for the current backlog. and removed Priority:3 Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog. Pipeline:Icebox Triage:NeedsTriageDiscussion labels Sep 13, 2022
@learningjavascriptlanguage

yes. I faced the same error. Any update on this?

@nazmul1985
Copy link

+1 this one. It took me a while to find this issue and figure out this error is because I needed to change "Password" key under packageSourceCredentials to "cleartextpassword"!

Changing the key name in packageSourceCredentials worked for me as well. Thanks @bahman616

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area:ErrorHandling warnings and errors/log messages & related error codes. Category:Quality Week Issues that should be considered for quality week Priority:2 Issues for the current backlog. Product:NuGet.exe NuGet.exe Type:Bug
Projects
None yet
Development

No branches or pull requests