{"record":{"id":"bcfda10d2441adee","repo":"langgenius/dify","slug":"webhook-debug-failed","errorCode":null,"errorMessage":"Webhook debug failed","messagePattern":"Webhook debug failed","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"web/app/components/workflow/nodes/_base/hooks/use-one-step-run.ts","lineNumber":506,"sourceCode":"    while (webhookSingleRunActiveRef.current && token === webhookSingleRunTokenRef.current) {\n      const controller = new AbortController()\n      webhookSingleRunAbortRef.current = controller\n\n      try {\n        const response: any = await post(urlPath, {\n          body: JSON.stringify({}),\n          signal: controller.signal,\n        })\n\n        if (!webhookSingleRunActiveRef.current || token !== webhookSingleRunTokenRef.current)\n          return null\n\n        if (!response) {\n          const message =\n            response?.message || t(($) => $['common.webhookDebugFailed'], { ns: 'workflow' })\n          toast.error(message)\n          cancelWebhookSingleRun()\n          throw new Error(message)\n        }\n\n        if (response?.status === 'waiting') {\n          const delay = Number(response.retry_in) || 2000\n          webhookSingleRunAbortRef.current = null\n          if (!webhookSingleRunActiveRef.current || token !== webhookSingleRunTokenRef.current)\n            return null\n\n          await new Promise<void>((resolve) => {\n            const timeoutId = window.setTimeout(resolve, delay)\n            webhookSingleRunTimeoutRef.current = timeoutId\n            webhookSingleRunDelayResolveRef.current = resolve\n            controller.signal.addEventListener(\n              'abort',\n              () => {\n                window.clearTimeout(timeoutId)\n                resolve()\n              },","sourceCodeStart":488,"sourceCodeEnd":524,"githubUrl":"https://github.com/langgenius/dify/blob/ef8544b173fd6cd7a8e71df2cab576e52bebbfbc/web/app/components/workflow/nodes/_base/hooks/use-one-step-run.ts#L488-L524","documentation":"Error \"Webhook debug failed\" thrown in langgenius/dify.","triggerScenarios":"Thrown at web/app/components/workflow/nodes/_base/hooks/use-one-step-run.ts:506 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"}