tursodatabase/turso-cli

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

Ouverte

#917 ouverte le 30 sept. 2024

 (1 commentaire) (0 réaction) (0 personne assignée)Go (50 forks)github user discovery
good first issue

Métriques du dépôt

Stars
 (302 étoiles)
Métriques de merge PR
 (Merge moyen 4h 32m) (2 PRs mergées en 30 j)

Description

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

Guide contributeur