langgenius/dify · error · Error
Unsupported Web App mode: ${mode}
Error message
Unsupported Web App mode: ${mode} What it means
Error "Unsupported Web App mode: ${mode}" thrown in langgenius/dify.
Source
Thrown at e2e/support/api/web-apps.ts:10
import type { AppDetailWithSite } from '@dify/contracts/api/console/apps/types.gen'
export function getAppSiteURL({ mode, site }: AppDetailWithSite): string {
if (!site?.app_base_url || !site.access_token)
throw new Error('App detail does not include a Web App URL.')
const webAppMode = (() => {
if (mode === 'completion' || mode === 'workflow') return mode
if (mode === 'advanced-chat' || mode === 'agent-chat' || mode === 'chat') return 'chat'
throw new Error(`Unsupported Web App mode: ${mode}`)
})()
return `${site.app_base_url}/${webAppMode}/${site.access_token}`
}
View on GitHub (pinned to ef8544b173)
When it happens
Trigger: Thrown at e2e/support/api/web-apps.ts:10 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of langgenius/dify@ef8544b173 (2026-08-12).
Data as JSON: /api/errors/06ef9bc913327c67.
Report an issue: GitHub.