Skip to main content

I'm struggling to use Tableau Server Client to connect to my Tableau Server (using https). When using the basic TSC code to connect to my server the following error gets thrown immediately. I have found a few similar questions on the web but have not found an answer that works with https.

 

Error:

requests.exceptions.SSLError: HTTPSConnectionPool(host='x.y.com', port=443): Max retries exceeded with url: /api/2.4/serverInfo (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)')))

 

Code:

tableau_auth = TSC.TableauAuth(USERNAME, PASSWORD, site_id='MySite')

server = TSC.Server(TABLEAU_SERVER, use_server_version=True)

3 respuestas
  1. 8 oct 2021, 09:07

    Thanks for your answer. I've tried both options already but was still getting the same error message. Turns out the solution for me was to make sure to run the add_http_options() function before the use_server_version(). The reason being that the use_server_version was failing due to cert as the http options was not set yet.

0/9000