Budibase/budibase · error · HTTPError

Error generating LiteLLM key: ${text || response.statusText}

Error message

Error generating LiteLLM key: ${text || response.statusText}

What it means

Error "Error generating LiteLLM key: ${text || response.statusText}" thrown in Budibase/budibase.

Source

Thrown at packages/server/src/sdk/workspace/ai/configs/litellm.ts:196

): Promise<{ id: string; secret: string }> {
  const body = JSON.stringify({
    key_alias: name,
    team_id: teamId,
  })

  const requestOptions = {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
      Authorization: liteLLMAuthorizationHeader,
    },
    body,
  }

  const response = await fetch(`${liteLLMUrl}/key/generate`, requestOptions)
  if (!response.ok) {
    const text = await response.text()
    throw new HTTPError(
      `Error generating LiteLLM key: ${text || response.statusText}`,
      response.status
    )
  }

  const json = await response.json()
  return { id: json.token_id, secret: json.key }
}

export async function addModel({
  configId,
  provider,
  model,
  credentialFields,
  reasoningEffort,
}: {
  configId?: string
  provider: string

View on GitHub (pinned to a81a902e9a)

When it happens

Trigger: Thrown at packages/server/src/sdk/workspace/ai/configs/litellm.ts:196 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/57ed489cf0d58006. Report an issue: GitHub.