langgenius/dify · error · Error

Webhook debug failed

Error message

Webhook debug failed

What it means

Error "Webhook debug failed" thrown in langgenius/dify.

Source

Thrown at web/app/components/workflow/nodes/_base/hooks/use-one-step-run.ts:506

    while (webhookSingleRunActiveRef.current && token === webhookSingleRunTokenRef.current) {
      const controller = new AbortController()
      webhookSingleRunAbortRef.current = controller

      try {
        const response: any = await post(urlPath, {
          body: JSON.stringify({}),
          signal: controller.signal,
        })

        if (!webhookSingleRunActiveRef.current || token !== webhookSingleRunTokenRef.current)
          return null

        if (!response) {
          const message =
            response?.message || t(($) => $['common.webhookDebugFailed'], { ns: 'workflow' })
          toast.error(message)
          cancelWebhookSingleRun()
          throw new Error(message)
        }

        if (response?.status === 'waiting') {
          const delay = Number(response.retry_in) || 2000
          webhookSingleRunAbortRef.current = null
          if (!webhookSingleRunActiveRef.current || token !== webhookSingleRunTokenRef.current)
            return null

          await new Promise<void>((resolve) => {
            const timeoutId = window.setTimeout(resolve, delay)
            webhookSingleRunTimeoutRef.current = timeoutId
            webhookSingleRunDelayResolveRef.current = resolve
            controller.signal.addEventListener(
              'abort',
              () => {
                window.clearTimeout(timeoutId)
                resolve()
              },

View on GitHub (pinned to ef8544b173)

When it happens

Trigger: Thrown at web/app/components/workflow/nodes/_base/hooks/use-one-step-run.ts:506 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/bcfda10d2441adee. Report an issue: GitHub.