duckdb/duckdb-wasm

Error handling of incorrect URL in select statement.

mtb0x1 opened this issue · 0 comments

What happens?

I think there are few issues regarding the handling of different HTTP errors that might occur.

To Reproduce

  1. This should yield something like 404 not found error.
SELECT count(*) FROM 'https://shell.duckdb.org/data/something.parquet';
Invalid Error: [object WebAssembly.Exception]
  1. This yield a correct "404 not found" message.
SELECT count(*) FROM 'https://shell.duckdb.org/data/tpch/0_01/parquet/customer.parquett';
Catalog Error: Table with name https://shell.duckdb.org/data/tpch/0_01/parquet/customer.parquett does not exist!
Did you mean "duckdb_databases"?
LINE 1:  SELECT count(*) FROM 'https://shell.duckdb.org/data/tpch/0_0...

Browser/Environment:

Firefox 126

Device:

Desktop

DuckDB-Wasm Version:

@duckdb/duckdb-wasm@1.28.1-dev215.0

DuckDB-Wasm Deployment:

https://shell.duckdb.org

Full Name:

mtb0x1

Affiliation:

None