Skip to content Skip to sidebar Skip to footer

Authenticate & Embed Tableau Rest Api Using Python 2.7

I am trying to use the sample code provided by Tableau to authenticate and generate trusted token using Tableau Rest API. I am using python v2.7 Below is the code (same as sample p

Solution 1:

Your .format() call is creating a bad url. Testing this in the Python REPL, I get the following:

$ server_name = "http://dashboard.crgroup.com" $ "http://{server}/api/2.4/auth/signin".format(server=server_name) (output): 'http://http://dashboard.crgroup.com/api/2.4/auth/signin'

You need to either remove "http://" from server_name or from the beginning of the string where you call .format(). The error <urlopen error [Errno 11001] getaddrinfo failed> clued me into the fact that it was probably a URL issue instead of a Tableau issue.

Solution 2:

Its resolved.

I was using Tableau v10.0 with api v2.4. I changed the api to version 2.3 and it worked.

Thanks for your help.

Post a Comment for "Authenticate & Embed Tableau Rest Api Using Python 2.7"