Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
rathboma opened this issue Feb 25, 2025 · 0 comments
Open

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

rathboma opened this issue Feb 25, 2025 · 0 comments

Comments

@rathboma
Copy link

rathboma commented Feb 25, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant