{"record":{"id":"3edacee03295d928","repo":"paperclipai/paperclip","slug":"http-invoke-failed-with-status-res-status","errorCode":null,"errorMessage":"HTTP invoke failed with status ${res.status}","messagePattern":"HTTP invoke failed with status (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"server/src/adapters/http/execute.ts","lineNumber":30,"sourceCode":"  const payloadTemplate = parseObject(config.payloadTemplate);\n  const body = { ...payloadTemplate, agentId: agent.id, runId, context };\n\n  const controller = new AbortController();\n  const timer = timeoutMs > 0 ? setTimeout(() => controller.abort(), timeoutMs) : null;\n\n  try {\n    const res = await fetch(url, {\n      method,\n      headers: {\n        \"content-type\": \"application/json\",\n        ...headers,\n      },\n      body: JSON.stringify(body),\n      ...(timer ? { signal: controller.signal } : {}),\n    });\n\n    if (!res.ok) {\n      throw new Error(`HTTP invoke failed with status ${res.status}`);\n    }\n\n    return {\n      exitCode: 0,\n      signal: null,\n      timedOut: false,\n      summary: `HTTP ${method} ${url}`,\n    };\n  } catch (err) {\n    if (timer && err instanceof Error && err.name === \"AbortError\") {\n      return {\n        exitCode: null,\n        signal: null,\n        timedOut: true,\n        errorMessage: `HTTP ${method} ${url} timed out after ${timeoutMs}ms`,\n        errorCode: \"timeout\",\n      };\n    }","sourceCodeStart":12,"sourceCodeEnd":48,"githubUrl":"https://github.com/paperclipai/paperclip/blob/120ae5428fa29bee300bcf806491cd4d965fbb7c/server/src/adapters/http/execute.ts#L12-L48","documentation":"Remote-call failure in the HTTP adapter's execute: fetch() to the configured url completed but the response status was non-2xx. The message carries the HTTP status so callers can distinguish an unhealthy endpoint from network/timeout errors.","triggerScenarios":"Thrown at server/src/adapters/http/execute.ts:30 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the target service and request payload; the endpoint returned a non-success HTTP status.","Inspect the response body/logs of the invoked service for the underlying failure."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"120ae5428fa29bee300bcf806491cd4d965fbb7c","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}