clash-verge-rev/clash-verge-rev · error · Error

settings.modals.backup.messages.usernameRequired

Error message

settings.modals.backup.messages.usernameRequired

What it means

Error "settings.modals.backup.messages.usernameRequired" thrown in clash-verge-rev/clash-verge-rev.

Source

Thrown at src/components/setting/mods/backup-config-viewer.tsx:101

    const checkForm = () => {
      const username = usernameRef.current?.value
      const password = passwordRef.current?.value
      const url = urlRef.current?.value

      if (!url) {
        urlRef.current?.focus()
        showNotice.error('settings.modals.backup.messages.webdavUrlRequired')
        throw new Error(t('settings.modals.backup.messages.webdavUrlRequired'))
      } else if (!isValidUrl(url)) {
        urlRef.current?.focus()
        showNotice.error('settings.modals.backup.messages.invalidWebdavUrl')
        throw new Error(t('settings.modals.backup.messages.invalidWebdavUrl'))
      }
      if (!username) {
        usernameRef.current?.focus()
        showNotice.error('settings.modals.backup.messages.usernameRequired')
        throw new Error(t('settings.modals.backup.messages.usernameRequired'))
      }
      if (!password) {
        passwordRef.current?.focus()
        showNotice.error('settings.modals.backup.messages.passwordRequired')
        throw new Error(t('settings.modals.backup.messages.passwordRequired'))
      }
    }

    const save = useLockFn(async (data: IWebDavConfig) => {
      checkForm()
      const signature = buildWebdavSignature({
        webdav_url: data.url,
        webdav_username: data.username,
        webdav_password: data.password,
      })
      const trimmedUrl = data.url.trim()
      const trimmedUsername = data.username.trim()

View on GitHub (pinned to 5cad0f2799)

When it happens

Trigger: Thrown at src/components/setting/mods/backup-config-viewer.tsx:101 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of clash-verge-rev/clash-verge-rev@5cad0f2799 (2026-08-12). Data as JSON: /api/errors/9279d35df7eeac46. Report an issue: GitHub.