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

DuckDB-wasm doesnt support http auth headers #1967

Open
nite opened this issue Feb 26, 2025 · 1 comment
Open

DuckDB-wasm doesnt support http auth headers #1967

nite opened this issue Feb 26, 2025 · 1 comment

Comments

@nite
Copy link

nite commented Feb 26, 2025

What happens?

This doesn't appear to work in duckDB-wasm https://duckdbsnippets.com/snippets/184/query-an-authenticated-api-endpoint. It works on command line for us, but not in wasm - doesn't seem to be adding headers and we get Invalid Error: Opening file '...' failed with error: NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load.

To Reproduce

Upload a file to an authenticated location where a select from 'http://' works in duckdb using https://duckdbsnippets.com/snippets/184/query-an-authenticated-api-endpoint - it wont work in wasm with the above error, and you'll notice in the devtools network tab no auth headers are added.

Browser/Environment:

Chrome 131

Device:

Laptop (Windows)

DuckDB-Wasm Version:

1.29.0

DuckDB-Wasm Deployment:

SAAS app

Full Name:

Andrew Clancy

@nite
Copy link
Author

nite commented Feb 28, 2025

Worth adding that this was first mentioned here duckdb/duckdb#13351, created this issue off the back of that discussion.

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

1 participant