{"record":{"id":"652af506d7b73b15","repo":"conductor-oss/conductor","slug":"agent-card-response-did-not-contain-agentcard","errorCode":null,"errorMessage":"Agent Card response did not contain agentCard","messagePattern":"Agent Card response did not contain agentCard","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"ui-next/src/utils/agentMetadata.ts","lineNumber":204,"sourceCode":"        : \"\";\n    const definition = (await fetchJson(\n      `/agent/definitions/${encodeURIComponent(identity)}${version}`,\n    )) as AgentWorkflowDefinition;\n    return buildConductorAgentSnapshot(input, definition);\n  }\n\n  const inputRecord = input as unknown as Record<string, unknown>;\n  const cardRequest = {\n    agentType: \"a2a\",\n    agentUrl: identity,\n    ...(isRecord(inputRecord.headers) ? { headers: inputRecord.headers } : {}),\n  };\n  const response = (await fetchJson(\"/a2a/agent-card\", {\n    method: \"POST\",\n    body: JSON.stringify(cardRequest),\n  })) as { agentCard?: A2AAgentCard };\n  if (!response?.agentCard) {\n    throw new Error(\"Agent Card response did not contain agentCard\");\n  }\n  return buildA2AAgentSnapshot(input, response.agentCard);\n}\n\nconst childTaskLists = (task: TaskDef): TaskDef[][] => {\n  const lists: TaskDef[][] = [];\n  if (task.decisionCases) lists.push(...Object.values(task.decisionCases));\n  if (task.defaultCase) lists.push(task.defaultCase);\n  if (task.forkTasks) lists.push(...task.forkTasks);\n  if (task.loopOver) lists.push(task.loopOver);\n  return lists;\n};\n\n/**\n * Refresh stale static AGENT snapshots immediately before registration. Resolution is best effort:\n * a failed remote discovery leaves an explicit unresolved snapshot and never blocks workflow save.\n */\nexport async function resolveAgentSnapshotsInWorkflow(","sourceCodeStart":186,"sourceCodeEnd":222,"githubUrl":"https://github.com/conductor-oss/conductor/blob/cf7c3e4a8adfb158be778ab1ec525323c363cd3a/ui-next/src/utils/agentMetadata.ts#L186-L222","documentation":"Error \"Agent Card response did not contain agentCard\" thrown in conductor-oss/conductor.","triggerScenarios":"Thrown at ui-next/src/utils/agentMetadata.ts:204 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check that the /a2a/agent-card endpoint is returning a JSON body with an agentCard field for the requested agentUrl.","Verify the target A2A agent publishes a valid agent card at its well-known URL.","Confirm agentType is 'a2a' and agentUrl is reachable; an empty or malformed response yields this error."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"cf7c3e4a8adfb158be778ab1ec525323c363cd3a","analyzedAt":"2026-08-14T03:33:19.897Z","schemaVersion":2},"datasetVersion":"2026-08-14T05:17:29.042Z"}