conductor-oss/conductor · error · RuntimeException
Failed to serialize request body
Error message
Failed to serialize request body
What it means
Error "Failed to serialize request body" thrown in conductor-oss/conductor.
Source
Thrown at agentspan/src/main/java/org/conductoross/conductor/ai/agentspan/runtime/service/AzureFoundryAgentClient.java:380
private String resolveAssistantId(ConductorAgentStartRequest request) {
String id = rawConfig(request, "assistantId");
if (StringUtils.isBlank(id)) {
id = rawConfig(request, "agentId");
}
if (StringUtils.isBlank(id)) {
throw new IllegalArgumentException(
"rawConfig.assistantId is required for Azure Foundry agent requests");
}
return id;
}
private JsonNode post(String url, ObjectNode body, String bearerToken, String apiVersion) {
byte[] bytes;
try {
bytes = MAPPER.writeValueAsBytes(body);
} catch (IOException e) {
throw new RuntimeException("Failed to serialize request body", e);
}
String fullUrl = url.contains("?") ? url : url + "?api-version=" + apiVersion;
Request request =
new Request.Builder()
.url(fullUrl)
.post(RequestBody.create(bytes, JSON))
.header("Authorization", "Bearer " + bearerToken)
.build();
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)View on GitHub (pinned to cf7c3e4a8a)
Solutions
- Check the request payload for non-serializable values (e.g. raw streams or circular objects) before sending to Azure Foundry.
When it happens
Trigger: Thrown at agentspan/src/main/java/org/conductoross/conductor/ai/agentspan/runtime/service/AzureFoundryAgentClient.java:380 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/232043ac1f8c3459.
Report an issue: GitHub.