tursodatabase / tursodatabase/libsql-js
When calling 'statement.all' I'm getting a timeout error (Hrana)
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 335
- Forks
- 48
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 3
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Begin with the JavaScript path shown in the report, from connection.prepare(query.text) through statement.all(params), and reproduce it against a remote database. The query, parameters, runtime, and connection details are not provided, so gather those while checking whether the timeout is configurable. Done means a reproducible explanation of the timeout and whether a supported timeout setting applies.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100