-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dotnet restore Unable to load the service index for source https://api.nuget.org/v3/index.json #5358
Comments
@Xarkam is this reproing consistently for you? Both dotnet restore and msbuild /t:restore run the same code. It is interesting that you see different results between them when making network calls. |
@emgarten for the project in logs, yes every time. But, I have not time for testing with another project before 5 days. |
@emgarten hello, I have test with this repository: https://github.com/aspnet/MusicStore and the problem is same
By nuget cli, everything happens correctly |
@Xarkam would you be able to get a network trace of what is happening? Fiddler is a tool that can help with this. Are you using any proxies? |
Hello, I don't use any proxy. I have installed fiddler and I test in next few days. |
I have the
I guess the root cause is similar. But unlike Xarkam i am behind a corporate proxy, will try to test the connection via fiddler in a few days as well. |
Hello, |
@ununseptium @Xarkam Any updates on this? |
same issue on mac and sdk 1.04 |
Hi Guys,
|
Closing since most folks are unblocked. @AliMD if you are still facing this issue then please give us a fiddler trace for investigation. |
I do still see this error on two of our machine. Any help ? Severity Code Description Project File Line Suppression State |
I have the same issue reported by vikas6681. I am using Windows 10 (OS Build 15036.966) with VS.Net 2017 (15.6.6) |
Any update team ? This is kinda blocking me from last 4 days. |
Hey Kegor, Thanks for inputs but we are trying to hit this API from India. |
I am hitting the url from US. |
Removing https://api.nuget.org/v3/index.json from packages\microsoft.dotnet.buildtools\2.1.0-preview3-02711-02\lib\init-tools.cmd, build, adding https://api.nuget.org/v3/index.json back, build, somehow seems to have fixed it for me. |
I don't see this folder/file in my system as well as code |
Same here guys |
I can connect to Nuget from VS.Net 2015 but not VS.Net 2017 |
I am having the same issue. I suspect it's something to do with being behind a proxy.
and I am getting an error on the step that publishes with dotnet:
However if I run the very same instruction directly I don't get that error:
How's that possible? I've tried to add the following proxy settings in NuGet.Config
No luck. Same result. I'm really stuck with this and I cannot find good answers anywhere. Any advice would be much appreciated |
I really would like this fixed. Just to help anybody else that came across this issue, here's what I did: There's a file at the path Ideally, replace it with your actual DNS server. 8.8.8.8 is just a well known DNS server, so it should work. After adding that line, restart the Docker daemon. You can use the context menu from the system tray for that. I hope this helps somebody. |
I had the same problem (Docker on Linux) and fixed it by enabling host networking, i.e. Docker image: The container would actually work on my local Linux machine, but on Jenkins (also Linux) it would fail. Very strange. |
Mine is from inside of Github Actions. |
@AraHaan the "dotnet" account at myget (dotnet.myget.org) has been deleted. I suggest using versions of packages available on nuget.org. |
@zivkan I see, however I usually use the prerelease packages to .NET core assemblies in order to be able to pull in the latest and greatest fixes to them (like for example System.Text.Json from .NET 5 / 6) and using it on netcoreapp3.1. I do this to then be able to ease up porting to .NET 5 / 6 easier once all of the dependencies get greenlit on the support of .NET 5 / 6. |
I also get the error for https://dotnet.myget.org/F/roslyn/api/v3/index.json
|
@ajtruckle I later found out that the roslyn feeds on myget was deleted for the feeds in their azure. For those I would check by adding the feeds on the dotnet/runtime repository to yours one at a time until your build passes again to figure out which ones to obtain from and replace those with. |
It is all to complicated I am afraid for me. These systems should just download and install. I mean, why is AvalonStudio exe download only for OS X? So I can’t even do it that way. And the framework pauses at 34% in GitHub Desktop. Too much hassle. I think I will persevere with XCode and Xamarin forms. |
The feeds on The other comments about AvalonStudio or GitHub Desktop doesn't appear to be related to NuGet in any way (or is missing a lot of context), so I'm not sure how we're supposed to act on the comments. |
@zivkan All I did was download AvalonStudio from GitHub. |
Things I've tried without any luck, based on the solutions provided in this issue. Environment: Create new project WebApplication1 from asp core 6 template with docker support Results:
Attempted work arounds:
|
check if the nuget.org source is enabled, sometimes things might randomly disable it in the background. |
[api.nuget.org] Unable to load the service index for source https://api.nuget.org/v3/index.json. i have this problem i can not solve it . |
They are running maintenance on it perhaps. |
From @Xarkam on June 7, 2017 7:25
Steps to reproduce
Clone https://github.com/ExtCore/ExtCore-Sample-Modular-Ui-Adv
Expected behavior
Restore package
Actual behavior
Environment data
dotnet --info
output:If I use nuget cli for restore, I don't have any problem.
Copied from original issue: dotnet/cli#6783
The text was updated successfully, but these errors were encountered: