{"record":{"id":"ca426b7353afa73f","repo":"paperclipai/paperclip","slug":"paperclip-identity-response-did-not-include-compan","errorCode":null,"errorMessage":"Paperclip identity response did not include companyId and agent id","messagePattern":"Paperclip identity response did not include companyId and agent id","errorType":"http","errorClass":"ApiError","httpStatus":500,"severity":"error","filePath":"packages/adapters/hermes/skills/paperclip-task-bridge/paperclip-task.mjs","lineNumber":169,"sourceCode":"  if (text) {\n    try {\n      body = JSON.parse(text);\n    } catch {\n      body = { error: text.slice(0, 1000) };\n    }\n  }\n  if (!response.ok) throw new ApiError(response.status, body);\n  return body;\n}\n\nasync function resolveIdentity(config) {\n  if (config.companyId && config.agentId) {\n    return { companyId: config.companyId, agentId: config.agentId, agent: null };\n  }\n  const agent = await apiFetch(config, \"/agents/me\");\n  const companyId = config.companyId || agent.companyId;\n  const agentId = config.agentId || agent.id;\n  if (!companyId || !agentId) throw new ApiError(500, { error: \"Paperclip identity response did not include companyId and agent id\" });\n  return { companyId, agentId, agent };\n}\n\nfunction issueSummary(issue) {\n  if (!issue || typeof issue !== \"object\") return issue;\n  return {\n    id: issue.id ?? null,\n    identifier: issue.identifier ?? null,\n    title: issue.title ?? null,\n    status: issue.status ?? null,\n    priority: issue.priority ?? null,\n    assigneeAgentId: issue.assigneeAgentId ?? null,\n    assigneeUserId: issue.assigneeUserId ?? null,\n    projectId: issue.projectId ?? null,\n    goalId: issue.goalId ?? null,\n    parentId: issue.parentId ?? null,\n    updatedAt: issue.updatedAt ?? null,\n  };","sourceCodeStart":151,"sourceCodeEnd":187,"githubUrl":"https://github.com/paperclipai/paperclip/blob/120ae5428fa29bee300bcf806491cd4d965fbb7c/packages/adapters/hermes/skills/paperclip-task-bridge/paperclip-task.mjs#L151-L187","documentation":"Error \"Paperclip identity response did not include companyId and agent id\" thrown in paperclipai/paperclip.","triggerScenarios":"Thrown at packages/adapters/hermes/skills/paperclip-task-bridge/paperclip-task.mjs:169 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the API key belongs to a valid agent; the identity response must include companyId and agent id. Recreate the key if needed."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"120ae5428fa29bee300bcf806491cd4d965fbb7c","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}