conductor-oss/conductor · error · RuntimeException

Azure Foundry API call to {label} failed: HTTP {response.cod

Error message

Azure Foundry API call to {label} failed: HTTP {response.code()} — {responseBody}

What it means

Error "Azure Foundry API call to {label} failed: HTTP {response.code()} — {responseBody}" thrown in conductor-oss/conductor.

Source

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

        return execute(request, url);
    }

    private JsonNode get(String url, String bearerToken, String apiVersion) {
        String fullUrl = url.contains("?") ? url : url + "?api-version=" + apiVersion;
        Request request =
                new Request.Builder()
                        .url(fullUrl)
                        .get()
                        .header("Authorization", "Bearer " + bearerToken)
                        .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;
    }

View on GitHub (pinned to cf7c3e4a8a)

Solutions

  1. Inspect the HTTP status code and response body in the error for the Azure Foundry failure reason.
  2. For 401/403, verify the credentialRef token is valid; for 404, check endpoint and assistantId; for 429, back off and retry.

When it happens

Trigger: Thrown at agentspan/src/main/java/org/conductoross/conductor/ai/agentspan/runtime/service/AzureFoundryAgentClient.java:407 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/0705cf8214661da1. Report an issue: GitHub.