tursodatabase / turso-cli

Command line interface to Turso.
https://turso.tech
MIT License
225 stars 37 forks source link

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

Open avinassh opened 1 month ago

avinassh commented 1 month ago

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
ashishgangaramani commented 2 weeks ago

Hello, I have addressed the issue discussed in pull request #920. If you have any feedback or need further changes, please let me know. Otherwise, if everything looks good, could you please proceed with merging it?

Thank you for your time and assistance!

Best regards, Ashish Babish Gangaramani