{"record":{"id":"34e7a3d1fba9babb","repo":"Budibase/budibase","slug":"config-to-edit-not-found","errorCode":null,"errorMessage":"Config to edit not found","messagePattern":"Config to edit not found","errorType":"http","errorClass":"HTTPError","httpStatus":404,"severity":"error","filePath":"packages/server/src/sdk/workspace/ai/configs/index.ts","lineNumber":284,"sourceCode":"    | \"_rev\"\n    | \"name\"\n    | \"provider\"\n    | \"credentialsFields\"\n    | \"model\"\n    | \"configType\"\n    | \"reasoningEffort\"\n    | \"webSearchConfig\"\n    | \"isDefault\"\n  >\n): Promise<CustomAIProviderConfig> {\n  const id = config._id\n  if (!id) {\n    throw new HTTPError(\"id cannot be empty\", 400)\n  }\n\n  const existing = await find(id)\n  if (!existing) {\n    throw new HTTPError(\"Config to edit not found\", 404)\n  }\n\n  if (config.credentialsFields) {\n    const mergedCredentials = {\n      ...(existing.credentialsFields || {}),\n      ...config.credentialsFields,\n    }\n\n    Object.entries(mergedCredentials).forEach(([key, value]) => {\n      if (value === PASSWORD_REPLACEMENT) {\n        mergedCredentials[key] = existing.credentialsFields?.[key] || \"\"\n      }\n    })\n\n    config.credentialsFields = mergedCredentials\n  }\n\n  if (config.webSearchConfig?.apiKey === PASSWORD_REPLACEMENT) {","sourceCodeStart":266,"sourceCodeEnd":302,"githubUrl":"https://github.com/Budibase/budibase/blob/a81a902e9a8fe55b467d106765f6638f12e35c49/packages/server/src/sdk/workspace/ai/configs/index.ts#L266-L302","documentation":"Error \"Config to edit not found\" thrown in Budibase/budibase.","triggerScenarios":"Thrown at packages/server/src/sdk/workspace/ai/configs/index.ts:284 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a81a902e9a8fe55b467d106765f6638f12e35c49","analyzedAt":"2026-08-29T01:03:10.972Z","schemaVersion":2},"datasetVersion":"2026-08-29T02:17:18.158Z"}