QuantConnect / lean-cli

CLI for running the LEAN engine locally and in the cloud
https://www.lean.io/cli
Apache License 2.0
188 stars 101 forks source link

Resource temporarily unavailable (api.nuget.org:443) #122

Open victron opened 1 year ago

victron commented 1 year ago

I trying to run lean live <my project> using 'Interactive Brokers' data feed. But getting an error like this

error: Unable to load the service index for source https://api.nuget.org/v3/index.json.
error:   Resource temporarily unavailable (api.nuget.org:443)
error:   Resource temporarily unavailable

Usage: NuGet.CommandLine.XPlat.dll package add [options]
......

In internet there is some advice to configure proxy for NuGet, then it means something in docker image. Please advice what is a problem

my environment:

Martin-Molinero commented 1 year ago

Hey @victron! Sound like nuget.org has some down time. Is this still happening?

victron commented 1 year ago

no, it's not nuget.org problem. curl response is ok. I tested on hardware pc with debian and it's ok. So, may be some relation to ubuntu or wsl itself. Can you point me to some doc to understand what inside your docker image? btw, may be it's not a good idea to download something from 3-d party, in my understanding everything should be in image as minimum for security reasons.

Martin-Molinero commented 1 year ago

btw, may be it's not a good idea to download something from 3-d party, in my understanding everything should be in image as minimum for security reasons.

It's pulling lean packages and dependencies, same is done for any custom for libraries I believe

In internet there is some advice to configure proxy for NuGet

Does the host machine have a proxy setup? Sounds like that might be missing for the child docker container maybe.

Edit: Please share as much details as possible so it can be reproduced. An easy test is just starting any docker container and trying to access nuget.org from inside of it

jaredbroad commented 1 year ago

We have a reproducible case here. Rahul can you please if you have a proxy?

Adroit-Algos commented 1 year ago

The machine has access to direct internet. I tried Wget https://api.nuget.org/v3/index.json and it works fine. I think the issue is with the docker file.