Hey folks,
I’ve got a script pulling WEM adherence data using the Genesys Cloud Python SDK. It works for small batches, but when I increase the date range, the access token expires mid-run and the job crashes. I’m using the standard OAuth2Client, but it doesn’t seem to auto-refresh. Here’s the error:
ClientError: 401 Unauthorized
Should I be manually checking the token expiry and calling get_token() again, or is there a built-in way to handle this in the SDK?