Skip to content

Conversation

@pranaygp
Copy link
Collaborator

Seeing this issue sporadically when trying to getReadable with a startIndex in local world only

[ResponseAborted: ]
 ⨯ unhandledRejection: [ResponseAborted: ]
 ⨯ unhandledRejection:  [ResponseAborted: ]
[Error: failed to pipe response] {
  [cause]: TypeError: Invalid state: chunk ArrayBuffer is zero-length or detached
      at Object.pull (../src/serialization.ts:109:22) {
    code: 'ERR_INVALID_STATE'
  }
}
TypeError: Invalid state: chunk ArrayBuffer is zero-length or detached
    at Object.pull (../src/serialization.ts:109:22) {
  code: 'ERR_INVALID_STATE'
}
 ⨯ unhandledRejection: TypeError: Invalid state: chunk ArrayBuffer is zero-length or detached
    at Object.pull (../src/serialization.ts:109:22) {
  code: 'ERR_INVALID_STATE'
}
 ⨯ unhandledRejection:  TypeError: Invalid state: chunk ArrayBuffer is zero-length or detached
    at Object.pull (../src/serialization.ts:109:22) {
  code: 'ERR_INVALID_STATE'
}
 GET /api/chat/wrun_01KAHQY0R34C8TY6AD4AJWXAB8/stream?startIndex=154 500 in 315ms
[Error: failed to pipe response] {
  [cause]: TypeError: Invalid state: chunk ArrayBuffer is zero-length or detached
      at Object.pull (../src/serialization.ts:109:22) {
    code: 'ERR_INVALID_STATE'
  }
}
TypeError: Invalid state: chunk ArrayBuffer is zero-length or detached
    at Object.pull (../src/serialization.ts:109:22) {
  code: 'ERR_INVALID_STATE'
}
 ⨯ unhandledRejection: TypeError: Invalid state: chunk ArrayBuffer is zero-length or detached
    at Object.pull (../src/serialization.ts:109:22) {
  code: 'ERR_INVALID_STATE'
}
 ⨯ unhandledRejection:  TypeError: Invalid state: chunk ArrayBuffer is zero-length or detached
    at Object.pull (../src/serialization.ts:109:22) {
  code: 'ERR_INVALID_STATE'
}
 GET /api/chat/wrun_01KAHQY0R34C8TY6AD4AJWXAB8/stream?startIndex=0 500 in 439ms
 GET /api/chat/wrun_01KAHQY0R34C8TY6AD4AJWXAB8/stream?startIndex=0 200 in 342ms
[ResponseAborted: ]
 ⨯ unhandledRejection: [ResponseAborted: ]
 ⨯ unhandledRejection:  [ResponseAborted: ]
[Error: failed to pipe response] {
  [cause]: TypeError: Invalid state: chunk ArrayBuffer is zero-length or detached
      at Object.pull (../src/serialization.ts:109:22) {
    code: 'ERR_INVALID_STATE'
  }
}
TypeError: Invalid state: chunk ArrayBuffer is zero-length or detached
    at Object.pull (../src/serialization.ts:109:22) {
  code: 'ERR_INVALID_STATE'
}
 ⨯ unhandledRejection: TypeError: Invalid state: chunk ArrayBuffer is zero-length or detached
    at Object.pull (../src/serialization.ts:109:22) {
  code: 'ERR_INVALID_STATE'
}
 ⨯ unhandledRejection:  TypeError: Invalid state: chunk ArrayBuffer is zero-length or detached
    at Object.pull (../src/serialization.ts:109:22) {
  code: 'ERR_INVALID_STATE'
}
 GET /api/chat/wrun_01KAHQY0R34C8TY6AD4AJWXAB8/stream?startIndex=154 500 in 317ms
 GET /api/sandboxes/sbx_4gdk1rJBB2LcduwqxVEbMwiQipxN 200 in 1061ms
[Error: failed to pipe response] {
  [cause]: TypeError: Invalid state: chunk ArrayBuffer is zero-length or detached
      at Object.pull (../src/serialization.ts:109:22) {
    code: 'ERR_IN..

this branch is to fix and test

@changeset-bot
Copy link

changeset-bot bot commented Nov 20, 2025

🦋 Changeset detected

Latest commit: f590ed3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 13 packages
Name Type
@workflow/world-local Patch
@workflow/cli Patch
@workflow/core Patch
@workflow/world-postgres Patch
workflow Patch
@workflow/world-testing Patch
@workflow/builders Patch
@workflow/next Patch
@workflow/nitro Patch
@workflow/web-shared Patch
@workflow/ai Patch
@workflow/sveltekit Patch
@workflow/nuxt Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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.

2 participants