When using HTTP Client connector for use with Google API via OAuth2, the access token does not refresh after a period of time. The process only works for an hour and then fails with error "401 Invalid Credentials" or error "Unable to set HTTP OAuth2 Authorization on connection. Failed updating OAuth Token".
- Make sure to use the following Access Token URL and Authorization Token URL.
- Remove 'approval_prompt = force' from Authorization Parameter. approval_prompt was replaced by prompt in the V2 authorization endpoint so you shouldn't need this.
- Add 'prompt = consent' to Authorization Parameter.
- Regenerate token.
- Save and redeploy the process.
Please note that if you are using V1 endpoint, approval_prompt is required in order to get a refresh token. It is however not needed if you are using V2 endpoint.