{"record":{"id":"a91a38367b27232e","repo":"conductor-oss/conductor","slug":"failed-to-create-application","errorCode":null,"errorMessage":"Failed to create application","messagePattern":"Failed to create application","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"ui-next/src/shared/createAndDisplayApplication/state/services.ts","lineNumber":27,"sourceCode":"  context: CreateAndDisplayApplicationMachineContext,\n) => {\n  const { authHeaders, applicationName } = context;\n  try {\n    return await fetchWithContext(\n      \"/applications\",\n      {},\n      {\n        method: \"POST\",\n        headers: {\n          \"Content-Type\": \"application/json\",\n          ...authHeaders,\n        },\n        body: JSON.stringify({ name: applicationName }),\n      },\n    );\n  } catch (error: any) {\n    const errorMessage = await getErrorMessage(error);\n    throw new Error(errorMessage ?? \"Failed to create application\");\n  }\n};\n\nexport const fetchForAppDetails = async (\n  context: CreateAndDisplayApplicationMachineContext,\n): Promise<User> => {\n  const { authHeaders, applicationId } = context;\n  const path = `/users/app:${applicationId}`;\n\n  const appDetails = await fetchWithContext(\n    path,\n    {},\n    {\n      method: \"GET\",\n      headers: {\n        \"Content-Type\": \"application/json\",\n        ...authHeaders,\n      },","sourceCodeStart":9,"sourceCodeEnd":45,"githubUrl":"https://github.com/conductor-oss/conductor/blob/cf7c3e4a8adfb158be778ab1ec525323c363cd3a/ui-next/src/shared/createAndDisplayApplication/state/services.ts#L9-L45","documentation":"Error \"Failed to create application\" thrown in conductor-oss/conductor.","triggerScenarios":"Thrown at ui-next/src/shared/createAndDisplayApplication/state/services.ts:27 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the application name is unique and valid; the server rejects duplicate application names.","Check auth headers and that the current user has permission to create applications.","Read the server response body via getErrorMessage for the specific failure reason."],"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"}