{"record":{"id":"bff0391c1fd8ecce","repo":"conductor-oss/conductor","slug":"failed-to-generate-keys","errorCode":null,"errorMessage":"Failed to generate keys","messagePattern":"Failed to generate keys","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"ui-next/src/shared/createAndDisplayApplication/state/services.ts","lineNumber":135,"sourceCode":"  } catch (error: any) {\n    const errorMessage = await getErrorMessage(error);\n    throw new Error(errorMessage ?? \"Failed to create application\");\n  }\n};\n\nexport const generateKeys = async (\n  context: CreateAndDisplayApplicationMachineContext,\n) => {\n  const { authHeaders, applicationId } = context;\n  const path = `/applications/${applicationId}/accessKeys`;\n  try {\n    return await fetchWithContext(\n      path,\n      {},\n      { method: \"POST\", headers: { ...authHeaders } },\n    );\n  } catch {\n    throw new Error(\"Failed to generate keys\");\n  }\n};\n","sourceCodeStart":117,"sourceCodeEnd":138,"githubUrl":"https://github.com/conductor-oss/conductor/blob/cf7c3e4a8adfb158be778ab1ec525323c363cd3a/ui-next/src/shared/createAndDisplayApplication/state/services.ts#L117-L138","documentation":"Error \"Failed to generate keys\" thrown in conductor-oss/conductor.","triggerScenarios":"Thrown at ui-next/src/shared/createAndDisplayApplication/state/services.ts:135 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Confirm the applicationId exists and the POST to /applications/{id}/accessKeys is authorized.","Check server logs; key generation fails server-side when the application is missing or the caller lacks access.","Retry the request after verifying network and authentication."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"cf7c3e4a8adfb158be778ab1ec525323c363cd3a","analyzedAt":"2026-08-14T03:33:19.897Z","schemaVersion":2},"datasetVersion":"2026-08-14T05:17:29.042Z"}