libsql-js
libsql-js copied to clipboard
When calling 'statement.all' I'm getting a timeout error (Hrana)
When connecting remotely to a database I'm getting the following error:
Hrana(Api("{\"error\":\"Timed out while opening database connection\"}"))
But only when calling statement.all like this:
const statement = connection.prepare(query.text);
if (arrayMode) {
statement.raw();
}
rows = statement.all(params) // timeout error here
This was working before, so not sure what I've changed (if anything). Hoping someone can shed some light on this -- do I just need to adjust a timeout value? I don't see that as a supported option when connecting to the database