paperclipai/paperclip · error · ToolGatewayHttpError

action_request_not_found

action_request_not_found

Error message

Tool action request not found

What it means

Ask-first test-call status polling: the actionRequestId provided by the Test tab does not exist or belongs to a different company than the connection being polled. The 404 keeps the endpoint scoped so it cannot be used to read arbitrary action requests.

Source

Thrown at server/src/services/tool-gateway.ts:5343

      await runTestToolInvocation({
        session,
        tool,
        parameters,
        invocationId: invocation.id,
        companyId: invocation.companyId,
        agentId,
        userId,
        argumentsSummary,
        reasonCode: "approval_granted",
        matchedPolicyIds: invocation.matchedPolicyIds ?? [],
      });
      await reflectToolActionInteractionLifecycle({ actionRequestId, status: "executed" });
    } catch (err) {
      const message = err instanceof Error ? err.message : String(err);
      await db
        .update(toolInvocations)
        .set({
          status: "failed",
          errorCode: "tool_execution_failed",
          errorMessage: message,
          completedAt: new Date(),
          updatedAt: new Date(),
        })
        .where(eq(toolInvocations.id, invocation.id));
      await reflectToolActionInteractionLifecycle({
        actionRequestId,
        status: "failed",
        errorCode: "tool_execution_failed",
        errorMessage: message,
      });
    }
  }

  async function waitForActionRequestExecution(actionRequestId: string) {
    let deadline = Date.now() + ACTION_REQUEST_EXECUTION_WAIT_MS;
    while (true) {

View on GitHub (pinned to 01ad858492)

Solutions

  1. Verify the tool action request ID; it may have expired or been cleaned up. Refresh the review queue.
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at server/src/services/tool-gateway.ts:5175 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of paperclipai/paperclip@01ad858492 (2026-08-18). Data as JSON: /api/errors/976110f18ba53059. Report an issue: GitHub.