You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
FlowRuns endpoint does not return Pagination XML #1456
File "\.venv\Lib\site-packages\tableauserverclient\server\query.py", line 70, in __getitem__
page_range = range((page - 1) * size, page * size)
~~~~~^~~
TypeError: unsupported operand type(s) for -: 'NoneType' and 'int'
NOTE: Be careful not to post user names, passwords, auth tokens or any other private or sensitive information.
Dug into it more and server side, the "GET /api/api-version/sites/site-id/flows/runs" does not return a pagination element in the XML. I think being able to iterate over run history would be useful. Unclear if FlowRuns lacking pagination is intentional. If so, I can update TSC to reflect that.
#1460 tweaks the QuerySet class in such a way that it should continue to function even if the server doesn't return pagination information. Adding it in server side would still be ideal to improve clarity and return information about what is truly available server-side.
Activity
jacalata commentedon Sep 20, 2024
I've pointed this out to the team that owns the API, but if they fix it it won't be available immediately so updating tsc is worth doing anyway.
jorwoods commentedon Sep 28, 2024
#1460 tweaks the QuerySet class in such a way that it should continue to function even if the server doesn't return pagination information. Adding it in server side would still be ideal to improve clarity and return information about what is truly available server-side.
jacalata commentedon Jan 6, 2025
closed this bug with release
https://github.com/tableau/server-client-python/releases/tag/v0.35
We will update the core REST API docs to mention the limitation on the API results.