conductor-oss/conductor · error · RuntimeException

Azure Foundry API call to {label} failed

Error message

Azure Foundry API call to {label} failed

What it means

Error "Azure Foundry API call to {label} failed" thrown in conductor-oss/conductor.

Source

Thrown at agentspan/src/main/java/org/conductoross/conductor/ai/agentspan/runtime/service/AzureFoundryAgentClient.java:417

                        .build();
        return execute(request, url);
    }

    private JsonNode execute(Request request, String label) {
        try (Response response = httpClient.newCall(request).execute()) {
            String responseBody = response.body() != null ? response.body().string() : "{}";
            if (!response.isSuccessful()) {
                throw new RuntimeException(
                        "Azure Foundry API call to "
                                + label
                                + " failed: HTTP "
                                + response.code()
                                + " — "
                                + responseBody);
            }
            return MAPPER.readTree(responseBody);
        } catch (IOException e) {
            throw new RuntimeException("Azure Foundry API call to " + label + " failed", e);
        }
    }

    private String resolveApiVersion(ConductorAgentStartRequest request) {
        String v = rawConfig(request, "apiVersion");
        return StringUtils.isBlank(v) ? DEFAULT_API_VERSION : v;
    }

    // Returns the text value from the first content part with "type": "text".
    // Assistants with code interpreter may return an image_file part before the text part,
    // so content[0] is not always text.
    private static String extractText(JsonNode contentArray) {
        for (JsonNode part : contentArray) {
            if ("text".equals(part.path("type").asText())) {
                return part.path("text").path("value").asText("");
            }
        }
        return "";

View on GitHub (pinned to cf7c3e4a8a)

Solutions

  1. Check network connectivity to the Azure Foundry endpoint and retry.
  2. Examine the wrapped cause for the transport-level failure.

When it happens

Trigger: Thrown at agentspan/src/main/java/org/conductoross/conductor/ai/agentspan/runtime/service/AzureFoundryAgentClient.java:417 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of conductor-oss/conductor@cf7c3e4a8a (2026-08-14). Data as JSON: /api/errors/50abb1943e07bf3c. Report an issue: GitHub.