radian-software / riju

⚡ Extremely fast online playground for every programming language.
https://riju.codes
MIT License
1.64k stars 191 forks source link

Cannot run Elm #165

Open thdoan opened 2 years ago

thdoan commented 2 years ago

Steps to reproduce:

  1. Go to https://riju.codes/elm
  2. Click on Run

Error:

Compilation failed -- PROBLEM LOADING PACKAGE LIST ------------------------------------------------

I need the list of published packages to verify your dependencies, so I tried to fetch:

https://package.elm-lang.org/all-packages

But my HTTP library is giving me the following error message:

ConnectionFailure Network.Socket.getAddrInfo (called with preferred socket type/protocol: AddrInfo {addrFlags = [AI_ADDRCONFIG], addrFamily = AF_UNSPEC, addrSocketType = Stream, addrProtocol = 0, addrAddress = , addrCanonName = }, host name: Just 'package.elm-lang.org', service name: Just '443'): does not exist (Try again)

raxod502 commented 2 years ago

To fix this, we either need to adjust Elm so that it does not need network connectivity to run 'hello, world', or we need to find a way to allow outbound network connections without enabling abuse that violates AWS terms of service.