Symptoms
After fresh setup of MS Graph Mail API import profile, the next error occurs:
Flow failed. Failure info/error: ChilkatLog: RefreshAccessToken: DllDate: Nov 30 2021 ChilkatVersion: 9.5.0.89 UnlockPrefix: ABBYYC.CB4022022 Architecture: Little Endian; 64-bit Language: Visual C++ 2022 / x64 VerboseLogging: 0 tokenEndpoint: https://login.microsoftonline.com/common/oauth2/v2.0/token restConnect: domain_or_ip: login.microsoftonline.com socket2Connect: connect2: connectImplicitSsl: clientHandshake: clientHandshake2: ProcessHelloRetryRequest: readHandshakeMessages: WindowsError: An existing connection was forcibly closed by the remote host. WindowsErrorCode: 0x2746 maxToReceive: 5 Failed to receive data on the TCP socket Failed to read beginning of SSL/TLS record. b: 0 dbSize: 0 nReadNBytes: 0 idleTimeoutMs: 30000 --readHandshakeMessages --ProcessHelloRetryRequest --clientHandshake2 --clientHandshake Client handshake failed. (3) --connectImplicitSsl connectFailReason: 129 ConnectFailReason: 129 --connect2 --socket2Connect --restConnect Failed to connect to token endpoint. --RefreshAccessToken --ChilkatLog .
Cause
The issue may be caused by the update to versions 12.0.4.945-12.0.4.991 from earlier versions instead of installing FlexiCapture 12 from scratch.
The main root cause of the error is that the refresh token was not created during the MS Graph Mail API import profile setup.
In this case, in the appsettings.json file (default path: C:\\Inetpub\wwwroot\FlexiCapture 12 Token Management), the ConnectionString parameter for both Database and DbDistrtibutedLocks blocks are empty, or TrustServerCertificate=yes key is missed.
Resolution
- Stop the import in the project and wait until all batches are finished processing.
- Navigate to Administration & Monitoring console > Settings > Application Server.
- Click on Connect to existing DataBase. Enter the all information and click OK.
- Navigate to C:\\Inetpub\wwwroot\FlexiCapture 12 Token Management and open the appsetings.json file.
- Check the TrustServerCertificate=yes key was added for both Database and DbDistrtibutedLocks blocks. If not, please add them to the ConnectionString parameter:
- Navigate to IIS > Sites > FlexiCapture 12 Token Management and restart the site (Restart button with green arrows on the right side of the window)
- Navigate to Project Setup Station, delete existing MS Graph Mail API import profiles, and re-create new ones from scratch.
Comments
0 comments
Please sign in to leave a comment.