Skip to content

fix(bindings-typescript): reject failed procedure calls with InternalError (#6288) - #6349

Open
Tyagiquamar wants to merge 1 commit into
clockworklabs:masterfrom
Tyagiquamar:fix/ts-procedure-reject-internalerror-6288
Open

Tyagiquamar wants to merge 1 commit into
clockworklabs:masterfrom
Tyagiquamar:fix/ts-procedure-reject-internalerror-6288

Conversation

@Tyagiquamar

@Tyagiquamar Tyagiquamar commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Description of Changes

A failed procedure call rejects with InternalError, the same error type reducers already use.

Both procedure result handlers rejected with the raw ProcedureResult error string. Callers that catch InternalError never saw a procedure failure. Both handlers now reject with new InternalError(result.value).

Fixes #6288

API and ABI breaking changes

None.

Rollback safety impact

n/a

Expected complexity level and risk

  1. Two-line change in crates/bindings-typescript/src/sdk/db_connection_impl.ts plus unit test.

Testing

  • vitest run tests/db_connection.test.ts: 23 tests passed (including procedure internal error rejects with InternalError).
  • tsc -p tsconfig.build.json --noEmit: passed.

@JasonAtClockwork
JasonAtClockwork self-requested a review November 10, 2026 17:22
@bfops

bfops commented Nov 18, 2026

Copy link
Copy Markdown
Collaborator

A note from Zeke's AI agent: This repository requires verified commits. Please set up commit signing so GitHub marks your commits as Verified, then re-sign and re-push the unverified commits in this PR. Thank you!

@Tyagiquamar
Tyagiquamar force-pushed the fix/ts-procedure-reject-internalerror-6288 branch from d92d85a to 2e4f09f Compare November 27, 2026 04:07

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

TS SDK: failed procedure calls reject with a bare string instead of an Error

2 participants