mirror of
https://github.com/open-webui/open-webui.git
synced 2026-12-01 01:12:43 -05:00
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
This commit is contained in:
1 parent
2c36482e1d
commit
d282bef94c
1 file changed
+2
-2
@@ -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;
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user