Trying to parse a CSV and push users into Genesys Cloud using the Python SDK. The loop works fine for the first 99 records, but on the 100th iteration, the put_user call just hangs indefinitely. No exception, no timeout, just silence. I’ve tried adding a sleep between calls, but that doesn’t help once it hits that specific index. Here’s the chunk that’s failing:
client = gen_cloud_platform_client.create_client(client_id=client_id, client_secret=client_secret)
users_api = client.users_api
for row in df.itertuples():
try:
body = models.PostUserRequest(
email=row.Email,
name=row.Name,
username=row.Username
)
response = users_api.post_users(body=body)
print(f"Created {row.Username}")
except Exception as e:
print(f"Failed {row.Username}: {e}")
The response object for the previous 99 calls is valid. Is this a known SDK bug or am I missing a pagination or batch endpoint requirement for bulk operations?