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

Intermittent Error Loading Parquet Extension #1937

Open
archiewood opened this issue Jan 16, 2025 · 2 comments
Open

Intermittent Error Loading Parquet Extension #1937

archiewood opened this issue Jan 16, 2025 · 2 comments

Comments

@archiewood
Copy link

archiewood commented Jan 16, 2025

What happens?

When loading DuckDB inside Evidence, intermittently getting a 404 from the parquet extension URL:

This can typically be fixed by a hard reload.

It seems like the endpoint might be occasionally failing to serve the extension?

An error occurred while trying to automatically load the required extension 'parquet': Extension https://extensions.duckdb.org/v1.1.1/wasm_eh/parquet.duckdb_extension.wasm is not available.

Image

To Reproduce

Occurs during the load process, so cannot run SQL.

Browser/Environment:

Chrome XXX

Device:

MacOS

DuckDB-Wasm Version:

1.29.0

DuckDB-Wasm Deployment:

Evidence

Full Name:

Archie Sarre Wood

Affiliation:

Evidence

@archiewood archiewood changed the title Error Loading Parquet Extension: Error Loading Parquet Extension Jan 16, 2025
@archiewood archiewood changed the title Error Loading Parquet Extension Intermittent Error Loading Parquet Extension Jan 16, 2025
@zachstence
Copy link

zachstence commented Jan 16, 2025

This was caused by the URL https://extensions.duckdb.org/v1.1.1/wasm_eh/parquet.duckdb_extension.wasm returning a 404. A refresh of the browser fixed it (the request returned a 200).

We've seen this very intermittently, just once a week or so

@carlopi
Copy link
Collaborator

carlopi commented Jan 17, 2025

Thanks for raising.

Retry mechanism to handle this problems has been added to duckdb native, I had assumed browsers are good enough to handle this, but this the returned 404 do not help.

I need to check whether this can be solved at the level of the served file or just add redundancy with a retry mechanism in duckdb-wasm.

Idea could be doing something like:

  • https://extensions.duckdb.org/v1.1.1/wasm_eh/parquet.duckdb_extension.wasm
  • https://extensions.duckdb.org/v1.1.1/wasm_eh/parquet.duckdb_extension.wasm?1
  • https://extensions.duckdb.org/v1.1.1/wasm_eh/parquet.duckdb_extension.wasm?2
  • actual failure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants