【发布时间】:2022-11-08 02:33:09
【问题描述】:
尝试将 nuget 推送到 Azure DevOps,遇到下面的身份验证错误。尝试删除所有通用凭据,重新安装凭据管理器...
dotnet nuget push --source "XXX" --api-key az "XXXX.nupkg"
Terminating plugin 'CredentialProvider.Microsoft' due to an unrecoverable fault: NuGet.Protocol.Plugins.ProtocolException: A plugin protocol exception occurred.
---> NuGet.Protocol.Plugins.ProtocolException: The SSL connection could not be established, see inner exception.
at NuGet.Protocol.Plugins.OutboundRequestContext`1.HandleFault(Message fault)
at NuGet.Protocol.Plugins.MessageDispatcher.OnMessageReceived(Object sender, MessageEventArgs e)
at NuGet.Protocol.Plugins.Connection.OnMessageReceived(Object sender, MessageEventArgs e)
at NuGet.Protocol.Plugins.Receiver.FireMessageReceivedEvent(Message message)
at NuGet.Protocol.Plugins.StandardOutputReceiver.OnLineRead(Object sender, LineReadEventArgs e)
--- End of inner exception stack trace ---
error: The request was canceled due to the configured HttpClient.Timeout of -0.001 seconds elapsing.
error: A task was canceled.
error: Pushing took too long. You can change the default timeout of 300 seconds by using the --timeout <seconds> option with the push command.
【问题讨论】:
标签: azure-devops nuget credentials credential-manager