twenty
twenty copied to clipboard
Unknown microsoft driver error: Sync state is no longer valid
trafficstars
Sentry Issue: TWENTY-SERVER-5SF
Unknown: Request failed with status code 500
File "../../../../../../src/modules/messaging/message-import-manager/services/messaging-import-exception-handler.service.ts", line 185, in {MessageImportExceptionHandlerService#2}.handleUnknownException
const messageImportException = new MessageImportException(
File "../../../../../../src/modules/messaging/message-import-manager/services/messaging-import-exception-handler.service.ts", line 83, in {MessageImportExceptionHandlerService#2}.handleDriverException
await this.handleUnknownException(
File "../../../../../../src/modules/messaging/message-import-manager/jobs/messaging-message-list-fetch.job.ts", line 166, in {MessagingMessageListFetchJob#2}.handle
await this.messageImportErrorHandlerService.handleDriverException(
File "../../../../../src/engine/core-modules/message-queue/message-queue.explorer.ts", line 208, in {MessageQueueExplorer#2}.invokeProcessMethods
await instance[processMethodName].call(instance, job.data);
File "../../../../../src/engine/core-modules/message-queue/message-queue.explorer.ts", line 186, in {MessageQueueExplorer#2}.handleProcessor
await this.invokeProcessMethods(
...
(5 additional frame(s) were not displayed)
We have this additional log:
Microsoft driver error: The sync state identified using the request token 'sFqkBL5_TN5gxxxxxxx' is no longer valid.
Solution
Since the sync state (our cusror) is no longer valide, we should fallback to a full sync.