Skip to main content

Hi folks,

 

I'm trying to connect to the Tableau API using the getting started documentation availabe here: https://tableau.github.io/server-client-python/docs/, but I'm getting the error below:

NotSignedInError: (b'<?xml version=\'1.0\' encoding=\'UTF-8\'?><tsResponse xmlns="http://tableau.com/api" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://tableau.com/api https://help.tableau.com/samples/en-us/rest_api/ts-api_3_19.xsd"><error code="401001"><summary>Signin Error</summary><detail>Error signing in to Tableau Server</detail></error></tsResponse>', 'http://tableau.rentcars.com/api/3.19/auth/signin')

My code is:

tableau_auth = TSC.TableauAuth(usr_parameters.usr_admin, usr_parameters.pwd_admin, usr_parameters.site)

server = TSC.Server(usr_parameters.url, use_server_version=True)

 

with server.auth.sign_in(tableau_auth):

all_datasources, pagination_item = server.datasources.get()

print("\nThere are {} datasources on site: ".format(pagination_item.total_available))

print([datasource.name for datasource in all_datasources])

The package "tableauserverclient" version is:

Name: tableauserverclient

Version: 0.31

Summary: A Python module for working with the Tableau Server REST API.

Home-page:

Author:

Author-email: Tableau <github@tableau.com>

License: The MIT License (MIT)

I'm using the admin credentiais, the same used in the website, so I think the issue is not with user and password..

 

I didn't find any useful information to solve this issue.

 

Any guess?

 

Tks

 

Rubens

1 resposta
0/9000