libsql / libsql/hrana-client-ts

Response Error Handling Error

Open
#26 0 comments 0 reactions 0 assignees View on GitHub

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.

https://github.com/libsql/hrana-client-ts/blob/4397c8111e7cfc351a41f6e7ec8815716af7ac31/src/http/stream.ts#L487

TypeError: resp.body?.cancel is not a function

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.