Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playground broken in 0.8.1 #2518

Closed
max-sixty opened this issue Apr 30, 2023 · 0 comments · Fixed by #2521
Closed

Playground broken in 0.8.1 #2518

max-sixty opened this issue Apr 30, 2023 · 0 comments · Fixed by #2521
Labels
web related to the website or the playground

Comments

@max-sixty
Copy link
Member

What's up?

As reported by @richb-hanover in #2512

I've spent a couple of hours on this but to no avail. The main problem is that it works locally! Run task run-web or task run-playground — works fine. I get a couple of warnings:

Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq [simpleWorker.js:20:16](http://localhost:1313/playground/playground/static/node_modules/monaco-editor/esm/vs/base/common/worker/simpleWorker.js)
You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker

Then on the live playground the console gives:

FAIL WITH: Error: Range request for https://prql-lang.org/playground/playground//data/chinook/playlist_track.csv failed with error: Error: Range request for https://prql-lang.org/playground/playground//data/chinook/playlist_track.csv did returned non-success status: 0 """ [duckdb-browser-eh.worker.js:11:13975](https://cdn.jsdelivr.net/npm/@duckdb/[email protected]/dist/duckdb-browser-eh.worker.js)
Uncaught (in promise) Error: Invalid Error: Error: Range request for https://prql-lang.org/playground/playground//data/chinook/playlist_track.csv failed with error: Error: Range request for https://prql-lang.org/playground/playground//data/chinook/playlist_track.csv did returned non-success status: 0 """
    runQuery https://cdn.jsdelivr.net/npm/@duckdb/[email protected]/dist/duckdb-browser-eh.worker.js:11
    onMessage https://cdn.jsdelivr.net/npm/@duckdb/[email protected]/dist/duckdb-browser-eh.worker.js:10
    onmessage https://cdn.jsdelivr.net/npm/@duckdb/[email protected]/dist/duckdb-browser-eh.worker.js:24

...but the file at https://prql-lang.org/playground/playground//data/chinook/playlist_track.csv does exist.

FWIW this increases my confidence that we made the wrong call in #1507 — without this we would have spotted this much closer to the offending commit. The backport fails regularly enough that it's easier to just release a new version. I again update my beliefs that almost anything that increases maintenance burden is not worthwhile.

@max-sixty max-sixty added the web related to the website or the playground label Apr 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
web related to the website or the playground
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant