Running a bulk update script with the Genesys Cloud Python SDK. The initial OAuth token fetch works fine, but the batch hits 401 Unauthorized halfway through. The SDK should auto-refresh, yet it’s not catching the expiry.
Here’s the error log:
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://mycompany.mypurecloud.com/api/v2/users
Is the session object not persisting the refresh token correctly in this version?