clockworklabs / clockworklabs/SpacetimeDB

TS SDK logs false "Received SubscriptionError for unknown querySetId" errors

Open
#4,755 0 comments 1 reaction 1 assignee View on GitHub

@gefjon is already working on this.

Since Apr 7, 2026.

Dominant language
Rust
Stars
25.2k
Forks
1.1k
Avg merge
2d 7h
Merged PRs (30d)
46

Description

Since the Reduce overhead in the typescript sdk change (#4744), some (maybe all??) TS/React SDK users see console errors like:

Received SubscriptionError for unknown querySetId 19

These appear during normal use and did not occur previously. Reverting #4744 makes them go away. No actual functionality appears broken, the errors are harmless and just annoying.

Root cause: #4744 replaced promise chained #processMessage with a synchronous drain loop. The old promise chain had a bug where any uncaught exception (e.g. from a user row callback) would break the chain and silently drop all subsequent WebSocket messages. The new drain loop correctly recovers, which surfaces benign SubscriptionError messages that were previously swallowed into the void.

Affected versions: any release containing #4744

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.