libsql-js icon indicating copy to clipboard operation
libsql-js copied to clipboard

When calling 'statement.all' I'm getting a timeout error (Hrana)

Open rathboma opened this issue 8 months ago • 0 comments

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

rathboma avatar Feb 25 '25 18:02 rathboma