Has anyone encountered a persistent 401 Unauthorized error when invoking a ServiceNow Data Action from a Genesys Cloud Architect flow, specifically during off-peak hours in the Europe/London timezone?
We have a critical integration where incoming digital channel interactions (Web Widget) trigger a Data Action to create a ServiceNow incident. The integration has been stable for six months, but since last Tuesday, we are seeing intermittent failures. The Genesys Cloud logs show the outbound request to the ServiceNow REST API returning a 401 status code with the message: “Invalid OAuth token or token expired.”
Here are the specifics:
- Integration: Genesys Cloud Data Action → ServiceNow REST API Endpoint (
/api/now/table/incident) - Authentication: OAuth 2.0 Client Credentials Grant
- Frequency: Errors occur roughly every 2 hours, coinciding with what appears to be the default OAuth token expiration window.
- Payload: Standard JSON body with
short_description,caller_id, andcontact_type.
I have verified the client credentials in the ServiceNow OAuth API endpoint configuration, and manual token refresh via Postman works without issue. However, within the Architect flow, the Data Action seems to be caching the token beyond its validity period. I expected Genesys Cloud to handle the token refresh automatically behind the scenes, as per the documentation on Data Action security.
Is there a known issue with the token caching mechanism in the latest Genesys Cloud release (v2024.08)? Are we required to implement a custom retry logic with a token refresh step, or is this a bug in the Data Action service? Any insights on how to force a token refresh or extend the cache duration would be greatly appreciated.