Visitar URL original
Realtime append route returns 200 OK when ensureRunThenAppend returns rejected or failed · Issue #5067 · triggerdotdev/trigger.dev · GitHub
Skip to content

Realtime append route returns 200 OK when ensureRunThenAppend returns rejected or failed #5067

Open

Description

@shafiktanbir

In apps/webapp/app/routes/realtime.v1.sessions.$session.$io.append.ts on main (commit 3cacfa4), the action handler checks if (!result.ok && result.kind === "unsupported_backend") after calling ensureRunThenAppend, but does not handle the result.kind === "rejected" or result.kind === "failed" branches. When a stream append is rejected with a 422 validation status or fails in the backend, execution falls through and responds with 200 { ok: true, seq: undefined }. Happy to put up a PR to return the rejected status and 500 error responses if that looks right.

Activity

  1. deven065 commented on Oct 29, 2026

    @deven065

    Does this issue is open for contribution?

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