-
Notifications
You must be signed in to change notification settings - Fork 3.2k
adding new error codes to the temporary catch #12366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
🚀 Preview Environment Ready! Your preview environment is available at: http://bore.pub:49238 This environment will automatically shut down when the PR is closed or after 5 hours. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
Enhanced error handling for Gmail and Microsoft messaging services by adding explicit handling of server-side error status codes (503, 502, 504, 509) as temporary errors.
- Added dedicated case for 503 status code in
/packages/twenty-server/src/modules/messaging/message-import-manager/drivers/gmail/utils/parse-gmail-messages-import-error.util.ts
- Expanded Microsoft error handling in
/packages/twenty-server/src/modules/messaging/message-import-manager/drivers/microsoft/utils/parse-microsoft-messages-import.util.ts
to include 503 and 509 status codes - Added handling for 'Authentication backend unavailable' errors with formatted messages for Gmail services
- Implemented consistent TEMPORARY_ERROR classification for server-side issues across both Gmail and Microsoft implementations
3 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile
For microsoft, examples of errors from the logs:
Fixes #12252