8000 Jorwoods/default to server version by jorwoods · Pull Request #989 · tableau/server-client-python · GitHub
[go: up one dir, main page]

Skip to content

Jorwoods/default to server version #989

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

jorwoods
Copy link
Contributor

Default to using the API version of the specified Tableau Server.

@t8y8
Copy link
Collaborator
t8y8 commented Feb 15, 2022

@jacalata mentioned in another thread somewhere that this would trigger angry SSL cert errors before they have a chance to set the verify flag. That might be common enough to want to handle it somehow (pass http options in at Server init?) -- we could also just document that case and they can set this to False and manually call the version function after setting http options.

@jorwoods
Copy link
Contributor Author

Could we just wrap that call in the init with a try/except, and log the error?

@jacalata
Copy link
Contributor

I think the nicest fix will be to let the user pass in the verify=False option to the constructor. Probably cleaner to add that separately to this change, so I'll go ahead and check this in.

@jacalata jacalata merged commit b8d616a into tableau:development Feb 18, 2022
@jorwoods jorwoods deleted the jorwoods/default_to_server_version branch March 25, 2022 12:30
jacalata pushed a commit that referenced this pull request Mar 30, 2022
* Default to using server api version

* Skip using server version during tests

* Black formatting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0