microsoft / vscode-remote-release

Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.
https://aka.ms/vscode-remote
Other
3.66k stars 286 forks source link

curl fails for some public websites but not others #6976

Closed mkarikom closed 2 years ago

mkarikom commented 2 years ago

Steps to Reproduce:

  1. build container using devcontainer.json and Dockerfile (attached in Archive.zip)
  2. run successful download from wikipedia.org:
    vscode ➜ /workspaces/scACVI_devcon/rawdata_wu2021 (main ✗) $ curl https://upload.wikimedia.org/wikipedia/commons/thumb/4/4c/DNA_Structure%2BKey%2BLabelled.pn_NoBB.png/680px-DNA_Structure%2BKey%2BLabelled.pn_NoBB.png --output check.png
    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
    100  392k  100  392k    0     0  3598k      0 --:--:-- --:--:-- --:--:-- 3598k
  3. run unsuccessful download from broadinstitute.org
    vscode ➜ /workspaces/scACVI_devcon/rawdata_wu2021 (main ✗) $ curl "http://singlecell.broadinstitute.org/single_cell/api/v1/bulk_download/generate_curl_config?accessions=SCP1039&auth_code=QYGxPBlI&directory=all&context=study"  -o cfg.txt; curl -K cfg.txt && rm cfg.txt
    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
    0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
    curl: (52) Empty reply from server
    Warning: error trying read config from the 'cfg.txt' file
    curl: no URL specified!
    curl: try 'curl --help' or 'curl --manual' for more information

    Does this issue occur when you try this locally?: Yes Does this issue occur when you try this locally and all extensions are disabled?: Yes wed_morning.txt Archive.zip

chrmarti commented 2 years ago

This is unrelated to VS Code or Remote-Containers. I suggest you open a question on StackOverflow or similar. Thanks.