From d282bef94ccd834ce126bc526dde22c3733accd0 Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Mon, 30 Nov 2026 15:43:39 +0100 Subject: [PATCH] fix: saving an event webhook hides the reason it was rejected (#35265) Admin Settings > Events rejects some webhooks, for example a URL on a local or container host while ENABLE_LOCAL_WEB_FETCH is off, and the toast only ever said "Failed to save webhook". The server already explains the problem ("The URL you provided is invalid. Please double-check and try again."), and that message now shows instead. Turning a webhook on or off reports its errors the same way. Fixes #35264 --- src/lib/apis/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/apis/index.ts b/src/lib/apis/index.ts index c1ae63cae1..054c2ad5a0 100644 --- a/src/lib/apis/index.ts +++ b/src/lib/apis/index.ts @@ -1268,7 +1268,7 @@ export const createEventWebhook = async ( }) .catch((err) => { console.error(err); - error = err; + error = err?.detail ?? err; return null; }); @@ -1300,7 +1300,7 @@ export const updateEventWebhook = async ( }) .catch((err) => { console.error(err); - error = err; + error = err?.detail ?? err; return null; });