langgenius/dify · error · ValidationError
Unsupported request body type
Error message
Unsupported request body type
What it means
Error "Unsupported request body type" thrown in langgenius/dify.
Source
Thrown at sdks/nodejs-client/src/http/client.ts:312
: data
return {
body: body as BodyInit,
headers: {},
replayable: true,
}
}
if (isJsonBody(data)) {
return {
body: JSON.stringify(data),
headers: {
'Content-Type': 'application/json',
},
replayable: true,
}
}
throw new ValidationError('Unsupported request body type')
}
const createTimeoutContext = (timeoutMs: number): TimeoutContext => {
const controller = new AbortController()
const reason = new Error('Request timed out')
const timer = setTimeout(() => {
controller.abort(reason)
}, timeoutMs)
return {
signal: controller.signal,
reason,
cleanup: () => {
clearTimeout(timer)
},
}
}
const parseResponseBody = async <TResponseType extends HttpResponseType>(View on GitHub (pinned to ef8544b173)
When it happens
Trigger: Thrown at sdks/nodejs-client/src/http/client.ts:312 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of langgenius/dify@ef8544b173 (2026-08-12).
Data as JSON: /api/errors/d9aa90ce3d8695ba.
Report an issue: GitHub.