webcontainer-core icon indicating copy to clipboard operation
webcontainer-core copied to clipboard

Cannot install node dependency from codeload.github.com

Open callumgare opened this issue 1 year ago • 0 comments

Description of Bug

A "socket hang up" error is thrown when trying to load a JS project which has a node.js dependency at the domain codeload.github.com

Steps to Reproduce

  1. Go to https://stackblitz.com/github/ask-izzy/ask-izzy/
  2. Wait for automatically started command yarn install && npx next dev to error out.
  3. Observe in the output that there is a socket hang up when attempting to connect to an address at codeload.github.com image
  4. Curl that address to confirm that it can't be accessed: curl -v https://codeload.github.com/Jimbly/node-http-proxy/tar.gz/ba0c414cd03799e357c5d867c11dea06a9c34ec8 image
  5. Run that same curl command locally to observe that it is not an issue with the address itself: Screenshot 2024-02-29 at 12 03 32

Expected Behavior

The domain should be accessible.

callumgare avatar Feb 29 '24 01:02 callumgare