Closed rayanedlebi-jb closed 7 months ago
I have the exact same issue after the latest changes made in version 0.29. I follow similar use case. I see the same error as was shown here. If I pin my tableau server client version to 0.28 then I have no problems.
`
datasource_id = datasource_dict.get(data_source_selection)
with server.auth.sign_in(tableau_auth):
datasource = server.datasources.get_by_id(datasource_id)
refreshed_datasource_job = server.datasources.refresh(datasource)
print(f'Extract refresh task for datasource {datasource_id} has been started.')`
I think there's a general bug in 0.29 that can impact multiple different types of endpoints. I've written that up in #1342
One workaround as both have noted above is to revert back to 0.28.
Another option that should work with 0.29 is to change your code from using the with
statement to the older linear style.
For example, from:
with server.auth.sign_in(tableau_auth):
datasource = server.datasources.get_by_id(datasource_id)
refreshed_datasource_job = server.datasources.refresh(datasource)
print(f'Extract refresh task for datasource {datasource_id} has been started.')`
to:
server.auth.sign_in(tableau_auth)
datasource = server.datasources.get_by_id(datasource_id)
refreshed_datasource_job = server.datasources.refresh(datasource)
print(f'Extract refresh task for datasource {datasource_id} has been started.')`
@rayanedlebi-jb @Feromond we have a new v0.30 release which we believe should fix this: https://github.com/tableau/server-client-python/releases/tag/v0.30
Thank you @bcantoni - I'll test and let you know if any issues. I appreciate your prompt response to this!
Describe the bug Since the release of 0.29, pulling a PDF from a Tableau dashboard intermittently fails. Specific error is
NotSignedInError
(more details below). The issue having to do with concurrent runs using the same PAT has been ruled out, as part of my debugging involved generating a new token (which didn't resolve the issue).Current workaround is to utilize 0.28 version instead of 0.29.
Versions
To Reproduce Issue is intermittent, but always happens with retrieving the
pdf
attribute of a ViewItem() object. Example code is below:Results Specific error:
I'll add comments to this Issue if anything further to report on this. Please let me know if any questions, thanks.