Error getting access token. Error: invalid_grant
Error Message:
“Error while creating new document. Error getting access token. Error: invalid_grant. Error description: Bad Request
Troubleshooting steps:
- Install the latest package from AppExchange.
- Go to DocGen Configuration tab to reauthorize app with your google drive following steps in this article.
- If you have done above step and still see this error, the app has already been authorized and you do not need to do this again. If you get the error when generating document after doing authorization, then it may be an issue with Force authorization feature under one user and needing to remove other authorizations. You can revoke each users authorization and then authorize under just the user who is forcing authorization.