- Notifications
You must be signed in to change notification settings - Fork 448
Closed
Description
Describe the bug
When using TSC.Pager() to retrieve all subscriptions on the Tableau site, invalid page number is returned. When the error is ignored, server.subscriptions returns 400 subscription items when there are 409.
If it helps, this functionality was working as late as 08/29/2023.
Versions
Tableau Server version: 2022.1
Python version: Python 3.9.12
TSC Version: 3.15
Library version: 0.28
To Reproduce
importtableauserverclientastsctoken_name='some_token_name'token_value='some_token_value'tableau_auth=tsc.PersonalAccessTokenAuth(token_name=token_name, personal_access_token=token_value) server=tsc.Server('some_server') server.add_http_options({'verify': False}) withserver.auth.sign_in(tableau_auth): # Ensure the most recent Tableau REST API version is used.server.use_highest_version() # Gather all subscriptions.subscriptions= [subscriptionforsubscriptionintsc.Pager(server.subscriptions)]Results
What are the results or error messages received?
ServerResponseError: 400006: Bad Request Invalid page number '5' andreineculau and PanditRohit