libsql / libsql/hrana-client-ts
Response Error Handling Error
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 28
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Description
Noting that I observed a typing error at the suspected point below. The error occurred when I created on an index on a new column that does not yet exist on an existing table. As opposed to a more direct error, I observed a problem with the error handling.
TypeError: resp.body?.cancel is not a function
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
Start in src/http/stream.ts around line 487 and reproduce the reported case: creating an index on a new column that does not exist on an existing table. Inspect the response error path involving resp.body?.cancel; done means the underlying database error is handled without producing the TypeError shown in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- sqlite, typescript
- Domain
- api, databases
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100