moeru-ai/airi · error
Speech engine answered ${response.status} ${response.statusT
Error message
Speech engine answered ${response.status} ${response.statusText} for /${engineRequest.endpoint}${suffix} What it means
The engine responded with a non-success HTTP status for the requested endpoint; the message carries the status, statusText, and endpoint path so the failure is attributable to a specific engine route (e.g. /audio_query or /synthesis). It fires after fetch when the response is not OK, surfacing upstream rejection (bad voice id, engine error, missing speaker) to the provider layer.
Source
Thrown at packages/provider-inference/src/providers/local/voicevox/engine.ts:207
throw new Error('The Base URL is not an absolute http:// or https:// address.')
}
const doFetch = options?.fetch ?? globalThis.fetch
const response = await doFetch(url, {
method: POST_ENDPOINTS.has(engineRequest.endpoint) ? 'POST' : 'GET',
// No engine in the family redirects. A redirect therefore means the Base URL
// points at something else, and following it would hide that.
redirect: 'error',
signal: options?.signal,
...(engineRequest.body === undefined
? {}
: { body: JSON.stringify(engineRequest.body), headers: { 'Content-Type': 'application/json' } }),
})
if (!response.ok) {
const detail = (await response.text()).trim()
const suffix = detail ? `: ${detail.slice(0, 200)}` : ''
throw new Error(`Speech engine answered ${response.status} ${response.statusText} for /${engineRequest.endpoint}${suffix}`)
}
return response
}
View on GitHub (pinned to f679616c34)
Solutions
- Check the engine logs for the endpoint and status reported in the message
- Verify the voice/speaker id exists on the engine (400 usually means unknown speaker or style)
- Ensure query parameters like text are within engine limits; 429/5xx warrant retry after backoff
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at packages/provider-inference/src/providers/local/voicevox/engine.ts:207 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of moeru-ai/airi@f679616c34 (2026-09-08).
Data as JSON: /api/errors/234d0f15613c157c.
Report an issue: GitHub.