Unhelpful errors like "Error: driver: bad connection" in CLI
avinassh opened this issue · 0 comments
avinassh commented
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)