Confusing error message when incorrectly using a clear text password #9425
Labels
Area:Authentication
Area:ErrorHandling
warnings and errors/log messages & related error codes.
Area:Protocol
Client/Server protocol /code around it
Area:Settings
NuGet.Config and related issues
help wanted
Considered good issues for community contributions.
Priority:3
Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog.
The
nuget.config
file uses thePassword
key for encrypted passwords and theClearTextPassword
key for clear text passwords. Installing a package when a clear text password has been added to thePassword
key results in a confusing error message:Instead, I'd recommend an error message like:
Details about Problem
NuGet product used: nuget.exe and dotnet.exe
NuGet version (x.x.x.xxx): 4.9.3.5777
dotnet.exe --version: 5.0.100-preview.2.20157.4
OS version (i.e. win10 v1607 (14393.321)): Windows 10
Detailed repro steps so we can see the same problem
Add the following nuget.config file to your project:
Notice I am incorrectly using a clear text password
bar
with thePassword
key. I should be using theClearTextPassword
key instead. See: https://docs.microsoft.com/en-us/nuget/reference/nuget-config-file#packagesourcecredentialsNow, try to install a package using nuget.exe:
Or dotnet.exe:
...
Other suggested things
Verbose Logs
Verbose Logs
The text was updated successfully, but these errors were encountered: