Budibase/budibase · error · HTTPError
id cannot be empty
Error message
id cannot be empty
What it means
Error "id cannot be empty" thrown in Budibase/budibase.
Source
Thrown at packages/server/src/sdk/workspace/ai/configs/index.ts:279
export async function update(
config: Pick<
CustomAIProviderConfig,
| "_id"
| "_rev"
| "name"
| "provider"
| "credentialsFields"
| "model"
| "configType"
| "reasoningEffort"
| "webSearchConfig"
| "isDefault"
>
): Promise<CustomAIProviderConfig> {
const id = config._id
if (!id) {
throw new HTTPError("id cannot be empty", 400)
}
const existing = await find(id)
if (!existing) {
throw new HTTPError("Config to edit not found", 404)
}
if (config.credentialsFields) {
const mergedCredentials = {
...(existing.credentialsFields || {}),
...config.credentialsFields,
}
Object.entries(mergedCredentials).forEach(([key, value]) => {
if (value === PASSWORD_REPLACEMENT) {
mergedCredentials[key] = existing.credentialsFields?.[key] || ""
}
})View on GitHub (pinned to a81a902e9a)
When it happens
Trigger: Thrown at packages/server/src/sdk/workspace/ai/configs/index.ts:279 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Budibase/budibase@a81a902e9a (2026-08-29).
Data as JSON: /api/errors/38a1fa1db3d7fe28.
Report an issue: GitHub.