{"record":{"id":"75ec53c79d4df070","repo":"diegosouzapw/OmniRoute","slug":"devin-create-task-failed-response-status-err","errorCode":null,"errorMessage":"Devin create task failed: ${response.status} ${error}","messagePattern":"Devin create task failed: (.+?) (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/lib/cloudAgent/agents/devin.ts","lineNumber":40,"sourceCode":"      repo_url: params.source.repoUrl,\n    };\n\n    if (params.source.branch) {\n      body.branch = params.source.branch;\n    }\n\n    const response = await fetch(`${this.baseUrl}/sessions`, {\n      method: \"POST\",\n      headers: {\n        \"Content-Type\": \"application/json\",\n        Authorization: `Bearer ${credentials.apiKey}`,\n      },\n      body: JSON.stringify(body),\n    });\n\n    if (!response.ok) {\n      const error = await response.text();\n      throw new Error(`Devin create task failed: ${response.status} ${error}`);\n    }\n\n    const data = await response.json();\n\n    return {\n      id: taskId,\n      providerId: this.providerId,\n      externalId: data.id,\n      status: this.mapStatus(data.status || \"created\"),\n      prompt: params.prompt,\n      source: params.source,\n      options: params.options,\n      activities: [],\n      createdAt: new Date().toISOString(),\n      updatedAt: new Date().toISOString(),\n    };\n  }\n","sourceCodeStart":22,"sourceCodeEnd":58,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/lib/cloudAgent/agents/devin.ts#L22-L58","documentation":"Error \"Devin create task failed: ${response.status} ${error}\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at src/lib/cloudAgent/agents/devin.ts:40 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","schemaVersion":2},"datasetVersion":"2026-08-25T21:54:21.419Z"}