Files
twenty/packages
Sonarly Claude CodeandClaude Opus 4.6 9d1d14c1ef fix: handle 5xx server errors gracefully in PromiseRejectionEffect
When a GraphQL request receives a 5xx server error (e.g. 502 Bad Gateway),
the ApolloError has no graphQLErrors but only a networkError with a statusCode.
Previously, these transient infrastructure errors fell through to the generic
error handler, which showed a vague "An error occurred" message and reported
the error to Sentry unnecessarily.

Now, ApolloErrors with 5xx networkError status codes are:
- Shown to the user with a specific "server temporarily unavailable" message
- Deduplicated via a snack bar dedupeKey to avoid flooding the UI
- Not reported to Sentry, since they are transient infrastructure issues

Fixes https://sentry.io/issues/6763156229/

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 03:09:00 +00:00
..
2026-02-18 23:34:36 +01:00
2026-02-18 23:34:36 +01:00