{"record":{"id":"46416eedf430022e","repo":"langgenius/dify","slug":"app-detail-does-not-include-a-web-app-url","errorCode":null,"errorMessage":"App detail does not include a Web App URL.","messagePattern":"App detail does not include a Web App URL\\.","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"e2e/support/api/web-apps.ts","lineNumber":5,"sourceCode":"import type { AppDetailWithSite } from '@dify/contracts/api/console/apps/types.gen'\n\nexport function getAppSiteURL({ mode, site }: AppDetailWithSite): string {\n  if (!site?.app_base_url || !site.access_token)\n    throw new Error('App detail does not include a Web App URL.')\n\n  const webAppMode = (() => {\n    if (mode === 'completion' || mode === 'workflow') return mode\n    if (mode === 'advanced-chat' || mode === 'agent-chat' || mode === 'chat') return 'chat'\n    throw new Error(`Unsupported Web App mode: ${mode}`)\n  })()\n\n  return `${site.app_base_url}/${webAppMode}/${site.access_token}`\n}\n","sourceCodeStart":1,"sourceCodeEnd":15,"githubUrl":"https://github.com/langgenius/dify/blob/ef8544b173fd6cd7a8e71df2cab576e52bebbfbc/e2e/support/api/web-apps.ts#L1-L15","documentation":"Error \"App detail does not include a Web App URL.\" thrown in langgenius/dify.","triggerScenarios":"Thrown at e2e/support/api/web-apps.ts:5 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":"ef8544b173fd6cd7a8e71df2cab576e52bebbfbc","analyzedAt":"2026-08-12T05:15:17.394Z","schemaVersion":2},"datasetVersion":"2026-08-12T13:17:24.610Z"}