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

Missing auth token in URL against a Turso db yields confusing error "failed to execute SQL: SELECT 1; invalid character 'T' looking for beginning of value" #142

Open
CodingDoug opened this issue Aug 1, 2023 · 0 comments

Comments

@CodingDoug
Copy link
Contributor

CodingDoug commented Aug 1, 2023

$ go run cmd/libsql-shell/main.go libsql://my-db-my-gh.turso.io/
Error: failed to connect to database. err: failed to execute SQL: SELECT 1;
invalid character 'T' looking for beginning of value
exit status 1

But this works:

$ go run cmd/libsql-shell/main.go libsql://my-db-my-gh.turso.io/?authToken=`turso db tokens create my-db`

The problem occurs with both https and libsql URLs on a Turso database.

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