Fix crash when integration is triggering invalid requests (#3346)

This commit is contained in:
Samy Pessé
2025-06-17 19:23:52 +02:00
committed by GitHub
parent 67998b6f15
commit 88a35ed057
2 changed files with 12 additions and 4 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"gitbook": patch
---
Fix crash when integration is triggering invalid requests.
@@ -21,10 +21,13 @@ export async function fetchSafeIntegrationUI(
request,
}),
// The API can respond with a 400 error if the integration is not installed
// and 404 if the integration is not found.
// The API can also respond with a 502 error if the integration is not generating a proper response.
[404, 400, 502]
// The API can respond with certain errors that are expected to happen.
[
404, // Integration has been uninstalled
400, // Integration is rejecting its own request
422, // Integration is triggering an invalid request, failing at the validation step
502, // Integration is failing in an unexpected way
]
);
return output;