Description
.has_next() does not return true properly on ZscalerClient.zcc.devices.list_devices(), despite there being more pages
Reproduction
A minimal code sample demonstrating the bug.
devices, response, error = ZscalerClient.zcc.devices.list_devices(
query_params={
"page": 1,
"page_size": 5000,
}
)
while response and response.has_next() and len(matching_devices) <= 1:
devices, response, error = response.next()
Expected behavior
has_next() properly evaluates to true while their are more pages and pagination proceeds properly.
Is it a regression?
First time we are implementing this function
Debug Logs
Can be sent in ticket, but we can see that only the first page is resolved.
Other Information
- OS: Linux with Python 3.13, exact distro is opaque to us.
- SDK version: 1.9.41
Description
.has_next() does not return true properly on ZscalerClient.zcc.devices.list_devices(), despite there being more pages
Reproduction
A minimal code sample demonstrating the bug.
Expected behavior
has_next() properly evaluates to
truewhile their are more pages and pagination proceeds properly.Is it a regression?
First time we are implementing this function
Debug Logs
Can be sent in ticket, but we can see that only the first page is resolved.
Other Information