Unable to load the service index for source https://api.nuget.org/v3/index.json in VS2017?

前端 未结 8 1928
没有蜡笔的小新
没有蜡笔的小新 2020-12-03 03:27

I am getting This error:

[nuget.org] Unable to load the service index for source https://api.nuget.org/v3/index.json. An error occurred while send

相关标签:
8条回答
  • 2020-12-03 04:00

    I got this error using VSTS as source provider (git). Was logged in to a MSDN account in VS2017 based on the correct email address, i.e. same as the one used for my VSTS login. Upon restoring packages from the VSTS nuget-feed, I would repeatedly be prompted to log in to my MSDN-account, but still get 401 from the source/feed.

    Turned out, I apparently had 2 different MSDN-accounts on the same email address - 1 "Personal" account and 1 "Work or school" account.

    Solution: simply log in with the correct one (which here turned out to be the Work one)

    0 讨论(0)
  • 2020-12-03 04:02

    The same error is showing for VS2019. For my case Restart the Visual Studio and it's working fine. In my case, it's the network-related issue, you have a proper Internet connection.

    0 讨论(0)
提交回复
热议问题