diegosouzapw/OmniRoute · error · Error

Devin get status failed

Error message

Devin get status failed: ${response.status} ${error}

What it means

DevinAgent.getStatus GET /sessions/{externalId} returned a non-OK status, so the session's status/output cannot be fetched. Causes: unknown session id, deleted session, expired credentials, or Devin API outage.

Solutions

  1. Treat 404 as terminal (session gone) and stop polling
  2. Refresh credentials on auth errors
  3. Retry transient failures with backoff
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at src/lib/cloudAgent/agents/devin.ts:68 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of diegosouzapw/OmniRoute@a179ffed5b (2026-08-25). Data as JSON: /api/errors/80e299aaa45a0e7c. Report an issue: GitHub.

Appendix: source

Thrown at src/lib/cloudAgent/agents/devin.ts:68

      prompt: params.prompt,
      source: params.source,
      options: params.options,
      activities: [],
      createdAt: new Date().toISOString(),
      updatedAt: new Date().toISOString(),
    };
  }

  async getStatus(externalId: string, credentials: AgentCredentials): Promise<GetStatusResult> {
    const response = await fetch(`${this.baseUrl}/sessions/${externalId}`, {
      headers: {
        Authorization: `Bearer ${credentials.apiKey}`,
      },
    });

    if (!response.ok) {
      const error = await response.text();
      throw new Error(`Devin get status failed: ${response.status} ${error}`);
    }

    const data = await response.json();
    const status = this.mapStatus(data.status || "created");

    const activities: CloudAgentActivity[] = (data.messages || []).map(
      (msg: Record<string, unknown>) => ({
        id: this.generateActivityId(),
        type: "message" as const,
        content: (msg.content as string) || "",
        timestamp: (msg.created_at as string) || new Date().toISOString(),
      })
    );

    let result;
    if (status === CLOUD_AGENT_STATUS.COMPLETED && data.output) {
      result = {
        prUrl: data.pr_url,

View on GitHub (pinned to a179ffed5b)