-
Notifications
You must be signed in to change notification settings - Fork 3.9k
fixing a microsoft graph api error #12154
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
Conversation
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
This PR fixes Microsoft Graph API error handling by adding null checks for email addresses in the message import service.
- Added
.filter(Boolean)
totoRecipients
,ccRecipients
, andbccRecipients
inpackages/twenty-server/src/modules/messaging/message-import-manager/drivers/microsoft/services/microsoft-get-messages.service.ts
to prevent undefined values - Added fallback empty string for
from.emailAddress.address
to handle cases where sender information is missing - Added participant email validation check with
handle.includes('@')
to ensure only valid email addresses are processed
1 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile
...essaging/message-import-manager/drivers/microsoft/services/microsoft-get-messages.service.ts
Outdated
Show resolved
Hide resolved
🚀 Preview Environment Ready! Your preview environment is available at: http://bore.pub:8440 This environment will automatically shut down when the PR is closed or after 5 hours. |
The issue is "Microsoft Graph API unknown error: TypeError: Cannot read properties of undefined (reading 'emailAddress')"
Sentry : https://twenty-v7.sentry.io/issues/6605750776/events/7feb4f5949a64ab78bb429cffb7f0fea/?project=4507072499810304
Fixes twentyhq/core-team-issues#981