Why is this setting causing 401 Unauthorized errors when JMeter threads exceed 500?
security:
oauth:
token_refresh_interval: 300s
concurrent_requests_per_token: 1000
The client credentials flow works fine at low volume. Genesys Cloud returns 401 immediately when load spikes, despite the token being valid. Using SDK v2.0.1 in JMeter.
To fix this easily, this is…
Greetings. The 401 error typically stems from exceeding the concurrent session limits assigned to the route group, not a token validity issue. Verify the capacity thresholds in the queue configuration. The default tier restricts concurrent sessions, causing immediate rejection during spikes. Adjust the limit or distribute load across multiple tokens.