Skip to content

Can't specify "Default" site #161

@tagyoureit

Description

@tagyoureit

Using the following code

    # parser arguments per sample code
    parser.add_argument('--site', '-si', required=False, default='Default', help='site to use')

    # Step 1: Sign in to server.
    tableau_auth = TSC.TableauAuth(args.username, password)
    tableau_auth.site = args.site
    server = TSC.Server(args.server)

and specifying "Default" as a site (which is the default value in many samples (e.g. python initialize_server.py -s http://localhost -u admin -si Default -wf . -df .) throws a login error.

Traceback (most recent call last):
  File "API_demo.py", line 502, in <module>
    main()
  File "API_demo.py", line 104, in main
    with server_upload.auth.sign_in(tableau_auth):
  File "/Library/Python/2.7/site-packages/tableauserverclient/server/endpoint/auth_endpoint.py", line 29, in sign_in
    Endpoint._check_status(server_response)
  File "/Library/Python/2.7/site-packages/tableauserverclient/server/endpoint/endpoint.py", line 54, in _check_status
    raise ServerResponseError.from_response(server_response.content)
tableauserverclient.server.endpoint.exceptions.ServerResponseError: 

	401001: Signin Error
		Error signing in to Tableau Server

Passing the empty string '' DOES work to login to the Default site. (e.g. python initialize_server.py -s http://localhost -u admin -si '' -wf . -df .)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions