{"record":{"id":"223b0e7000efc8de","repo":"Budibase/budibase","slug":"slack-app-configuration-token-rotation-response-wa","errorCode":null,"errorMessage":"Slack app configuration token rotation response was incomplete","messagePattern":"Slack app configuration token rotation response was incomplete","errorType":"http","errorClass":"HTTPError","httpStatus":400,"severity":"error","filePath":"packages/server/src/sdk/workspace/ai/deployments/slack.ts","lineNumber":274,"sourceCode":"    },\n    body: new URLSearchParams({\n      refresh_token: refreshToken,\n    }),\n  })\n  const payload = (await response.json()) as SlackConfigTokenRotateResponse\n  if (!response.ok) {\n    throw new HTTPError(\n      \"Failed to rotate Slack app configuration token\",\n      response.status\n    )\n  }\n\n  const rotated = assertSlackOk(\n    payload,\n    \"Failed to rotate Slack app configuration token\"\n  )\n  if (!rotated.token || !rotated.refresh_token || !rotated.exp) {\n    throw new HTTPError(\n      \"Slack app configuration token rotation response was incomplete\",\n      400\n    )\n  }\n\n  return {\n    configToken: rotated.token,\n    refreshToken: rotated.refresh_token,\n    expiresAt: new Date(rotated.exp * 1000).toISOString(),\n  }\n}\n","sourceCodeStart":256,"sourceCodeEnd":286,"githubUrl":"https://github.com/Budibase/budibase/blob/a81a902e9a8fe55b467d106765f6638f12e35c49/packages/server/src/sdk/workspace/ai/deployments/slack.ts#L256-L286","documentation":"Error \"Slack app configuration token rotation response was incomplete\" thrown in Budibase/budibase.","triggerScenarios":"Thrown at packages/server/src/sdk/workspace/ai/deployments/slack.ts:274 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"}