tursodatabase/turso-cli

If a DB is archived, prompt the user to wakeup if they try to use the shell

Open

#917 geöffnet am 30. Sept. 2024

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)Go (50 Forks)github user discovery
good first issue

Repository-Metriken

Stars
 (302 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

Current behaviour:

➜  ~ turso db list
NAME                 URL                                             ARCHIVED
charmed-rat-king     libsql://charmed-rat-king-avinassh.turso.io     Yes
renewed-cherry       libsql://renewed-cherry-avinassh.turso.io       Yes

➜  ~ turso db shell charmed-rat-king
Error: failed to connect to database. err: failed to WebSocket dial: expected handshake response status code 101 but got 502

I propose:

➜  ~ turso db shell charmed-rat-king
*Your DB might be archived. Please  run `turso group unarchive <group name>` to unarchive it*
Error: failed to connect to database. err: failed to WebSocket dial: expected handshake response status code 101 but got 502

Contributor Guide