Skip to content

[ISSUE] .has_next() does not return true properly on ZscalerClient.zcc.devices.list_devices(), despite there being more pages #563

Description

@CKroes97

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions