Struggling to figure out why our Premium App integration is failing specifically during the token refresh cycle when the Virtual Agent handles more than 50 concurrent sessions per minute. The initial OAuth flow works perfectly, but the subsequent token refresh requests to the Genesys Cloud platform API start returning 401 Unauthorized errors after approximately 10 minutes of sustained load.
We are building a custom analytics dashboard that consumes real-time conversation data from the Virtual Agent. The issue manifests only under load, suggesting a potential race condition or a strict rate limit on the token endpoint that is not clearly documented in the standard OAuth v2.0 specs for partner apps.
Environment details:
- Genesys Cloud Environment: Production (US-East)
- SDK Version: Node.js SDK v3.15.0
- OAuth Grant Type: Client Credentials
- API Endpoint:
/oauth/token - Error Response:
401 Unauthorizedwith body{"error": "invalid_grant", "error_description": "The refresh token has been revoked or expired."}
Has anyone encountered similar issues with token revocation during high-throughput scenarios? We have verified that the client secrets are correct and that the token expiry time is standard (3600 seconds). The logs show the refresh request is being sent well before the access token expires, yet the platform rejects it as if the grant itself is invalid. This is blocking our production deployment for a major retail client.