Quantcast
Channel: WE MOVED to github.com/nuget. This site is not monitored!
Viewing all articles
Browse latest Browse all 7612

Commented Issue: Error on authentication error under non-interactive mode [3580]

$
0
0
I noticed a minor exception from the NuGet.exe on the case it failed to authenticate with a feed under non-interactive mode.
Previous builds of NuGet reported the error in more user-friendly fashion:

Checking packages on source: Feed: http://localhost:1025/nuget/User: aaa, Password
Please provide credentials for: http://localhost:1025/nuget/
UserName: Failed to check package sources information for URI Feed: http://localhost:1025/nuget/User: aaa, Password. Cannot prompt for input in non-interactive mode.
System.InvalidOperationException: Cannot prompt for input in non-interactive mode.
at NuGet.Common.Console.EnsureInteractive()
at NuGet.Common.Console.ReadLine()
at NuGet.ConsoleCredentialProvider.GetCredentials(Uri uri, IWebProxy proxy, CredentialType credentialType, Boolean retrying)
at NuGet.SettingsCredentialProvider.GetCredentials(Uri uri, IWebProxy proxy, CredentialType credentialType, Boolean retrying)
at NuGet.RequestHelper.GetResponse(Func`1 createRequest, Action`1 prepareRequest, IProxyCache proxyCache, ICredentialCache credentialCache, ICredentialProvider credentialProvider)
at NuGet.HttpClient.GetResponse()
at NuGet.RedirectedHttpClient.GetResponseUri(HttpClient client)
at NuGet.RedirectedHttpClient.EnsureClient()
at System.Lazy`1.CreateValue()
at System.Lazy`1.LazyInitValue()
at System.Lazy`1.get_Value()
at NuGet.MemoryCache.GetOrAdd[T](Object cacheKey, Func`1 factory, TimeSpan expiration, Boolean absoluteExpiration)
at NuGet.RedirectedHttpClient.get_CachedClient()
at NuGet.RedirectedHttpClient.get_Uri()
at NuGet.DataServicePackageRepository.get_Context()
at NuGet.DataServicePackageRepository.GetPackages()
Comments: Moving this out of the 2.7 release; we're not going to be able to fix this in our 2.7.1 update of nuget.exe.

Viewing all articles
Browse latest Browse all 7612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>