File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed
packages/gitbook/src/components/DocumentView/Integration Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " gitbook " : patch
3+ ---
4+
5+ Fix crash when integration is triggering invalid requests.
Original file line number Diff line number Diff line change @@ -21,10 +21,13 @@ export async function fetchSafeIntegrationUI(
2121 request,
2222 } ) ,
2323
24- // The API can respond with a 400 error if the integration is not installed
25- // and 404 if the integration is not found.
26- // The API can also respond with a 502 error if the integration is not generating a proper response.
27- [ 404 , 400 , 502 ]
24+ // The API can respond with certain errors that are expected to happen.
25+ [
26+ 404 , // Integration has been uninstalled
27+ 400 , // Integration is rejecting its own request
28+ 422 , // Integration is triggering an invalid request, failing at the validation step
29+ 502 , // Integration is failing in an unexpected way
30+ ]
2831 ) ;
2932
3033 return output ;
You can’t perform that action at this time.
0 commit comments