Salesforce Extension not able to refresh access token

We are using the Apigee Salesforce extension to integrate with our Salesforce instance.

The extension is able to acquire an access token the first time on bootstrap but on all subsequent attempt to refresh the access token it fails with  { error: 'invalid_grant', error_description: 'expired authorization code' }

The only recourse  is to un-deploy and redeploy the salesforce extension to acquire an access token.

At this point it's making us consider swapping out the extension with our own implementation of Salesforce Access Token sharedflow.

 

Here is the logs which show errors as well as successful token acquisition on re-deploy:

stdout 2021-06-21 21:57:37.135

stdout 2021-06-21 21:57:37.135 > node node_modules/salesforce/index.js

stdout 2021-06-21 21:57:37.135 > salesforce@1.0.1 start /

stdout 2021-06-21 21:57:37.135

stdout 2021-06-21 21:57:34.424 Extension web server started, listening on HTTP port 9000

stdout 2021-06-21 21:57:34.424 Started the server

stdout 2021-06-21 21:57:34.405 Jsforce connection initialized

stdout 2021-06-21 21:57:34.405 Successfully retrieved access token on bootstrap

stdout 2021-06-21 21:57:30.458

stdout 2021-06-21 21:57:30.458 > node node_modules/salesforce/index.js

stdout 2021-06-21 21:57:30.458 > salesforce@1.0.1 start /

stdout 2021-06-21 21:57:30.458

stdout 2021-06-21 21:45:00.105 error_description: 'expired authorization code' }

stdout 2021-06-21 21:45:00.105 Failed to refresh the access token { error: 'invalid_grant',

stdout 2021-06-21 21:45:00.105 error_description: 'expired authorization code' }

stdout 2021-06-21 21:45:00.105 Error while getting access token { error: 'invalid_grant',

stdout 2021-06-21 21:30:00.161 error_description: 'expired authorization code' }

stdout 2021-06-21 21:30:00.161 Failed to refresh the access token { error: 'invalid_grant',

stdout 2021-06-21 21:30:00.161 error_description: 'expired authorization code' }

stdout 2021-06-21 21:30:00.161 Error while getting access token { error: 'invalid_grant',

stdout 2021-06-21 21:15:00.103 error_description: 'expired authorization code' }

stdout 2021-06-21 21:15:00.103 Failed to refresh the access token { error: 'invalid_grant',

stdout 2021-06-21 21:15:00.102 error_description: 'expired authorization code' }

stdout 2021-06-21 21:15:00.102 Error while getting access token { error: 'invalid_grant',

stdout 2021-06-21 21:00:00.145 error_description: 'expired authorization code' }

 

0 0 441
0 REPLIES 0