adding new error codes to the temporary catch (#12366)
For microsoft, examples of errors from the logs: <img width="1251" alt="Screenshot 2025-05-28 at 18 02 48" src="https://github.com/user-attachments/assets/7de506b2-3e68-4ee5-907a-62fe6a0e2ba5" /> Fixes https://github.com/twentyhq/twenty/issues/12252
This commit is contained in:
+5
-1
@@ -40,7 +40,11 @@ export const parseMicrosoftMessagesImportError = (error: {
|
||||
}
|
||||
}
|
||||
|
||||
if (error.statusCode === 429 || error.statusCode === 503) {
|
||||
if (
|
||||
error.statusCode === 429 ||
|
||||
error.statusCode === 503 ||
|
||||
error.statusCode === 509
|
||||
) {
|
||||
return new MessageImportDriverException(
|
||||
`Microsoft Graph API ${error.code} ${error.statusCode} error: ${error.message}`,
|
||||
MessageImportDriverExceptionCode.TEMPORARY_ERROR,
|
||||
|
||||
Reference in New Issue
Block a user