tursodatabase / turso-cli

Command line interface to Turso.

Home Page:https://turso.tech

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unhelpful errors like "Error: driver: bad connection" in CLI

avinassh opened this issue · comments

Since we started using websockets in CLI, we are seeing unhelful error messages sometimes:

Error: driver: bad connection: failed to read JSON message: failed to get reader: failed to read frame header: EOF

This is easy to reproduce:

I was running
→  CREATE TABLE members (id INT PRIMARY KEY AUTOINCREMENT);

Instead of
→  CREATE TABLE members (id INTEGER PRIMARY KEY AUTOINCREMENT);

(internal discussion - https://turso.slack.com/archives/C06JJL58RFD/p1710423115577049)