Fix messaging 404 handling (#17041)

`MessageImportExceptionHandlerService.handleSyncCursorErrorException()`
was calling `messageChannelSyncStatusService.markAsFailed()`
instead of

`messageChannelSyncStatusService.resetAndMarkAsMessagesListFetchPending()`

Also adds a new command `MessagingTriggerMessageListFetchCommand` for
faster local development speed
This commit is contained in:
neo773
2026-01-09 22:05:12 +05:30
committed by GitHub
parent dec2b44808
commit a0b2aa207f
4 changed files with 138 additions and 6 deletions
@@ -66,8 +66,8 @@ export class ConnectedAccountRefreshTokensService {
};
}
this.logger.log(
`Access token expired for connected account ${connectedAccount.id.slice(0, 7)} in workspace ${workspaceId.slice(0, 7)}, refreshing...`,
this.logger.debug(
`Access token expired for connected account ${connectedAccount.id} in workspace ${workspaceId}, refreshing...`,
);
const connectedAccountTokens = await this.refreshTokens(
@@ -159,13 +159,13 @@ export class ConnectedAccountRefreshTokensService {
} catch (error) {
if (isGmailNetworkError(error)) {
throw new ConnectedAccountRefreshAccessTokenException(
`Error refreshing tokens for connected account ${connectedAccount.id.slice(0, 7)} in workspace ${workspaceId.slice(0, 7)}: ${error.code}`,
`Error refreshing tokens for connected account ${connectedAccount.id} in workspace ${workspaceId}: ${error.code}`,
ConnectedAccountRefreshAccessTokenExceptionCode.TEMPORARY_NETWORK_ERROR,
);
}
this.logger.log(
`Error while refreshing tokens on connected account ${connectedAccount.id.slice(0, 7)} in workspace ${workspaceId.slice(0, 7)}`,
`Error while refreshing tokens on connected account ${connectedAccount.id} in workspace ${workspaceId}`,
error,
);
throw error;