prql: Dev Container: can't run playground or book (can run website)
What happened?
Using PRQL commit 9095495 in a Docker container on macOS on Intel (latest Docker: 4.30.0):
With the update to MSRV, I decided to rebuild. I removed all images, volumes, and containers related to PRQL. I then rebuilt the container. task web:run-website works exactly as expected. However both these commands give problems:
task web:run-playgroundandtask web:run-book
Both tasks seem to run in the terminal window as usual, however, going to the associated web page only displays a blank page. The browser looks as if it’s waiting indefinitely.
Using curl shows that no response comes from the web server (see below). What other diagnostic info could I provide?
Update: Using curl from a terminal window within VSCode works as expected for both the playground and book.
?130 ExceLint-addin % curl -v http://localhost:5173/playground/playground
* Trying [::1]:5173...
* connect to ::1 port 5173 failed: Connection refused
* Trying 127.0.0.1:5173...
* Connected to localhost (127.0.0.1) port 5173
> GET /playground/playground HTTP/1.1
> Host: localhost:5173
> User-Agent: curl/8.4.0
> Accept: */*
>
PRQL input
N/A
SQL output
N/A
Expected SQL output
N/A
MVCE confirmation
- Minimal example
- New issue
Anything else?
No response
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 24 (22 by maintainers)
No, I have no thoughts on this.
I did rebuild the Dev Container. To be clear, it compiles/runs fine. The problem is that the web interface doesn’t appear for either the playground or book. Here’s a video:
https://youtu.be/P2YMasD-LXk
Solution: I solved this by binding to address 0.0.0.0 in the DevContainer commands to run each of the components. (Previously, each of the commands used some variety of “localhost”, “127.0.0.1”, etc.) Forcing them to use 0.0.0.0 works great.
Thanks to https://stackoverflow.com/a/78534816/1827982 for a hint.
New PR coming later today
Will close since it’s not a PRQL issue but feel free to continue any discussions…