Skip to content

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

Description

@CodingDoug
$ 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions