"Failed to Connect to the Mail Server info for account" error when Mailbox Importer attempts to poll a Gmail inbox

"Failed to Connect to the Mail Server info for account" error when Mailbox Importer attempts to poll a Gmail inbox

Description

 
When Mailbox Importer attempts to poll a Gmail inbox it appears that no emails were found and the following error is listed in the Diagnostic Console:
 

Failed to Connect to the Mail Server info for account 'TMS - OnBase Off Phone'. Attempting to reconnect in '3' Minutes. Reason: 'One or more errors occurred.' 

 
Addtionally, network logging shows Google is responding with an invalid request and the assertion sent by Mailbox Importer will be blank:
 

"error": "invalid_request"
"error_description": "Missingrequired parameter: assertion"

 

image.png

 

Resolution

 
This issue occurs when the private key syntax listed in the configuration module for the Google Service Account Private Key is incorrect.
 
To resolve this issue, update the Private Key field with the Google Service Account Private Key information as described in the Adding a Gmail Account section of the Mailbox Importer documentation.
 
The private key is obtained from the JSON file that Google provides when generating a private key. If this file is not saved and the key is lost, it will need to be regenerated. For information on creating a new private key, see the Create access credentials article on the Google for Developers website.

Note: Remove the \n characters from the beginning and ending of the private key before entering it into the Private Key field.
 

image.png