zenpy
zenpy copied to clipboard
Zenpy Search pagination is not working properly
Pagination slice not working properly zenpy version :- 2.0.56
code:-
page=1
pagesize=50
start, stop= calculate(page,pagezise)
result=zenpy_client.search(**query)
# result have len of 5
result=result[start:stop]
# start=0, stop=50
gives error
File "//venv/lib/python3.12/site-packages/zenpy/lib/generator.py", line 73, in get_next_page
raise StopIteration()
StopIteration
expected should return array or 5 objects
I've also been experiencing the same issue. the page and per_page params are treated as part of the query string and not part of the url query params