Skip to content

fix(client): handle stream start rejection in subscribe - #4738

Open
shivanshgupta365 wants to merge 2 commits into
electric-sql:mainfrom
shivanshgupta365:fix/subscribe-unhandled-start-rejection
Open

fix(client): handle stream start rejection in subscribe#4738
shivanshgupta365 wants to merge 2 commits into
electric-sql:mainfrom
shivanshgupta365:fix/subscribe-unhandled-start-rejection

Conversation

@shivanshgupta365

@shivanshgupta365 shivanshgupta365 commented Jul 23, 2026

Copy link
Copy Markdown

Summary

  • handle the fire-and-forget start promise created by ShapeStream.subscribe
  • keep fatal errors delivered through the subscriber error callback without also producing a process-level unhandled rejection
  • add a regression test for the Node/Bun failure path
  • include the required patch changeset for @electric-sql/client

Fixes #4736

Validation

  • 35 ShapeStream unit tests passed
  • TypeScript client typecheck passed
  • TypeScript client build passed
  • TypeScript client stylecheck passed
  • required package changeset check passed
  • Prettier and lint-staged passed

@shivanshgupta365
shivanshgupta365 force-pushed the fix/subscribe-unhandled-start-rejection branch from 43350d7 to 29da51e Compare July 29, 2026 12:00
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.

subscribe(): this.#start() missing .catch() causes unhandled promise rejection crash in Node.js/Bun

1 participant