lean-cli icon indicating copy to clipboard operation
lean-cli copied to clipboard

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

Open victron opened this issue 3 years ago • 5 comments
trafficstars

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:

  • running inside WSL on Ubuntu 22.04.1 LTS
  • lean, version 1.0.97
  • Python 3.10.4

victron avatar Aug 05 '22 16:08 victron

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

Martin-Molinero avatar Aug 08 '22 13:08 Martin-Molinero

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.

victron avatar Aug 11 '22 15:08 victron

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

Martin-Molinero avatar Aug 11 '22 15:08 Martin-Molinero

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

jaredbroad avatar Aug 19 '22 21:08 jaredbroad

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.

Adroit-Algos avatar Aug 31 '22 06:08 Adroit-Algos