Skip to content

Realtime bug: Failed to execute 'enqueue' on ReadableStreamDefaultController #1751

Closed

Description

@ericallam

To try and reproduce:

  1. Use useRealtimeRunsWithTag()
  2. Wait a little longer (about 5 - 15mins -- not sure about exact timing yet)
  3. Refresh the page, and the error shows
Uncaught TypeError: Failed to execute 'enqueue' on 'ReadableStreamDefaultController': Cannot enqueue a chunk into a closed readable stream
    at stream.ts:154:36
    at ShapeStream.<anonymous> (client.ts:519:17)
    at Generator.next (<anonymous>)
    at 08b5e__pnpm_877455._.js:1450:65
    at new Promise (<anonymous>)
    at __async (08b5e__pnpm_877455._.js:1434:12)
    at client.ts:517:76
    at Array.map (<anonymous>)
    at ShapeStream.<anonymous> (client.ts:517:46)
    at Generator.next (<anonymous>)
    at 08b5e__pnpm_877455._.js:1450:65
    at new Promise (<anonymous>)
    at __async (08b5e__pnpm_877455._.js:1434:12)
    at ShapeStream.publish_fn (client.ts:515:57)
    at ShapeStream.<anonymous> (client.ts:446:17)
    at Generator.next (<anonymous>)
    at fulfilled (08b5e__pnpm_877455._.js:1437:32)

Activity

  1. Rudra-Sankha-Sinhamahapatra commented on Mar 8, 2025

    @Rudra-Sankha-Sinhamahapatra
    Contributor

    Can you explain in which route its happening & can give context about that issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions