Google Sync Fails: Invalid/Empty Emails Causing Domain Filter Error
Hi there, after a successful installation, I am getting the following error on the worker when syncing my work Gmail account. The error sometimes occurs at the beginning of the sync process or later on. It feels a bit random. Any support or feedback is appreciated.
Error: Email is required
2025-02-28T13:59:04.114144081Z at getDomainNameByEmail (/app/packages/twenty-server/dist/src/utils/get-domain-name-by-email.js:13:15)
2025-02-28T13:59:04.114146028Z at /app/packages/twenty-server/dist/src/modules/messaging/message-import-manager/utils/filter-emails.util.js:46:133
2025-02-28T13:59:04.114147861Z at Array.every (<anonymous>)
2025-02-28T13:59:04.114149810Z at /app/packages/twenty-server/dist/src/modules/messaging/message-import-manager/utils/filter-emails.util.js:46:65
2025-02-28T13:59:04.114151658Z at Array.filter (<anonymous>)
2025-02-28T13:59:04.114153454Z at filterOutInternals (/app/packages/twenty-server/dist/src/modules/messaging/message-import-manager/utils/filter-emails.util.js:41:21)
2025-02-28T13:59:04.114158865Z at filterEmails (/app/packages/twenty-server/dist/src/modules/messaging/message-import-manager/utils/filter-emails.util.js:20:16)
2025-02-28T13:59:04.114160803Z at MessagingMessagesImportService.processMessageBatchImport (/app/packages/twenty-server/dist/src/modules/messaging/message-import-manager/services/messaging-messages-import.service.js:99:71)
2025-02-28T13:59:04.114163436Z at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2025-02-28T13:59:04.114165663Z at async MessagingMessagesImportJob.handle (/app/packages/twenty-server/dist/src/modules/messaging/message-import-manager/jobs/messaging-messages-import.job.js:63:9)
4 Replies
@Guillaume could you help?
Hi, Yep I will investigate this week. Thanks for reporting
Thank you
Should be fixed with this PR: https://github.com/twentyhq/twenty/pull/10625. I would recommend to wait for it to be tested, merged and deployed but if you are in a hurry, you can give it a try 🙂
GitHub
Build software better, together
GitHub is where people build software. More than 150 million people use GitHub to discover, fork, and contribute to over 420 million projects.
