NuGet Response status code does not indicate success: 401 (Unauthorized).

当尝试从Nexus-CN的NuGet组获取包时遇到了请求错误,错误提示包括FindPackagesByIdAsyncCore失败,401Unauthorized状态码表示未授权。问题根源是用户密码输入错误。解决方案是清除Windows凭据管理器中的VSCredential,然后重新输入正确的用户名和密码进行恢复。
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nexus-cn/repository/nuget-group/FindPackagesById()?id='Moq'&semVerLevel=2.0.0'.
An error occurred while sending the request.
  The request was aborted: The request was canceled.
  The ServicePointManager does not support proxies with the https scheme.
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nexus-cn/repository/nuget-group/FindPackagesById()?id='NLog.Web.AspNetCore'&semVerLevel=2.0.0'.
Response status code does not indicate success: 401 (Unauthorized). 

原因:登录用户的密码输错了,清理后重新输入就好了。

  在控制面板->凭据管理器->Windows Credentials->找到VS Credential 删除,再次Restore NuGet 后会再次提示输入机器登录名和密码,输入正确就解决了。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值