Ensure the user associated with the token has the correct permissions to request "userstats." If permissions were recently changed, you may need to re-authenticate. 3. Network and Firewall Restrictions
Most job scheduling systems enforce session timeouts. If the client application holds a stale authentication token (e.g., after overnight inactivity) and attempts to call capi/jobrequestuserstats , the server rejects it with a generic failure code. capijobrequestuserstats - server response failed 2
"timestamp": "2025-03-17T10:23:45Z", "level": "ERROR", "component": "capijobrequestuserstats", "error_code": 2, "message": "server response failed 2", "details": "http_status": 504, "response_body": "<html>Gateway Timeout</html>", "user_id": "user_7890", "endpoint": "/v1/jobs/stats/user" Ensure the user associated with the token has