{"record":{"id":"50abb1943e07bf3c","repo":"conductor-oss/conductor","slug":"azure-foundry-api-call-to-label-failed","errorCode":null,"errorMessage":"Azure Foundry API call to {label} failed","messagePattern":"Azure Foundry API call to (.+?) failed","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"agentspan/src/main/java/org/conductoross/conductor/ai/agentspan/runtime/service/AzureFoundryAgentClient.java","lineNumber":417,"sourceCode":"                        .build();\n        return execute(request, url);\n    }\n\n    private JsonNode execute(Request request, String label) {\n        try (Response response = httpClient.newCall(request).execute()) {\n            String responseBody = response.body() != null ? response.body().string() : \"{}\";\n            if (!response.isSuccessful()) {\n                throw new RuntimeException(\n                        \"Azure Foundry API call to \"\n                                + label\n                                + \" failed: HTTP \"\n                                + response.code()\n                                + \" — \"\n                                + responseBody);\n            }\n            return MAPPER.readTree(responseBody);\n        } catch (IOException e) {\n            throw new RuntimeException(\"Azure Foundry API call to \" + label + \" failed\", e);\n        }\n    }\n\n    private String resolveApiVersion(ConductorAgentStartRequest request) {\n        String v = rawConfig(request, \"apiVersion\");\n        return StringUtils.isBlank(v) ? DEFAULT_API_VERSION : v;\n    }\n\n    // Returns the text value from the first content part with \"type\": \"text\".\n    // Assistants with code interpreter may return an image_file part before the text part,\n    // so content[0] is not always text.\n    private static String extractText(JsonNode contentArray) {\n        for (JsonNode part : contentArray) {\n            if (\"text\".equals(part.path(\"type\").asText())) {\n                return part.path(\"text\").path(\"value\").asText(\"\");\n            }\n        }\n        return \"\";","sourceCodeStart":399,"sourceCodeEnd":435,"githubUrl":"https://github.com/conductor-oss/conductor/blob/cf7c3e4a8adfb158be778ab1ec525323c363cd3a/agentspan/src/main/java/org/conductoross/conductor/ai/agentspan/runtime/service/AzureFoundryAgentClient.java#L399-L435","documentation":"Error \"Azure Foundry API call to {label} failed\" thrown in conductor-oss/conductor.","triggerScenarios":"Thrown at agentspan/src/main/java/org/conductoross/conductor/ai/agentspan/runtime/service/AzureFoundryAgentClient.java:417 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check network connectivity to the Azure Foundry endpoint and retry.","Examine the wrapped cause for the transport-level failure."],"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"}