Skip to content

Bug: workflow execution mutations/actions throw raw Error — execution management rejections are opaque Server Errors #2013

Description

@yannickmonney

Area

services/platform/convex/workflow_executions/mutations.ts, workflow_executions/actions.ts, workflows/executions/resume_debug_step.ts, workflows/triggers/slug_mutations.ts.

Steps to reproduce

  1. Cancel an execution that is already in a terminal state.
  2. Re-run an execution while unauthenticated.
  3. Resume a debug step on a non-paused execution.
  4. Create a schedule for a workflow that is not installed.
  5. All rejections surface as opaque "Server Error".

Expected

User-facing errors (not-found, wrong-state, unauthenticated, workflow-not-installed) should be ConvexError({ code: ... }).

Actual

workflow_executions/mutations.ts:

  • line 36 — Execution not found
  • line 40 — Cannot cancel execution with status "..."

workflow_executions/actions.ts:

  • line 32/100/190 — Unauthenticated
  • line 108/198 — Execution not found

workflows/executions/resume_debug_step.ts:

  • line 31 — Execution not found
  • line 35-38 — Cannot resume a debug step on execution with status "..."
  • line 42 — Execution is not paused in debug mode
  • line 46 — Execution is missing its component workflow ID

workflows/triggers/slug_mutations.ts:

  • line 37 — Workflow is not installed
  • line 52/83/113/134/160/193/218/274/346/370/389 — Unauthenticated
  • line 55 — Invalid workflow slug
  • line 86/116/137/196 — Schedule/webhook/subscription not found

Evidence

  • services/platform/convex/workflow_executions/mutations.ts:34-42
  • services/platform/convex/workflow_executions/actions.ts:30-34, :98-101, :188-191
  • services/platform/convex/workflows/executions/resume_debug_step.ts:30-47
  • services/platform/convex/workflows/triggers/slug_mutations.ts:37-55, :83-86, :113-116, :160-163, :193-196

Notes

These are user-initiated operations from the workflow builder/debug UI. The client has no way to differentiate the error cause without ConvexError.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions