Can't specify "Default" site
See original GitHub issueUsing 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 .
)
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Unable to Change Default Site in User Profile - IBM
Symptom. Steps: 1. Go to the user's Profile. 2. Enter "Default Information". 3. Click on the look-up next to the "Default Insert Site":...
Read more >can't change default home page or browser
Open Internet Explorer and in tools->Internet options, select Home Page and enter the URL of the website which you want to be your...
Read more >Fix: Unable To Change Default Web Browser Or Apps In ...
Fix: Unable To Change Default Web Browser Or Apps In Windows 10 · Step 2: Change the Control Panel View by to Small...
Read more >Top 9 Ways to Fix Unable to Change Default Programs in ...
1. Restart Computer · 2. Use Right Methods to Change Default Apps · 3. Reset to Default · 4. Uninstall App · 5....
Read more >Cannot Change Default Apps or Programs in Windows 10 [Fix]
When you open Default apps and select a default program for Web browser, Email or any other item, the Choose an app dialog...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The UI refers to the content_url as the ‘site_id’. Tabcmd also calls that the site id (the -t parameter).
We should unify all references to be the same so that it’s clear across the Tableau ecosystem but that’s beyond the scope of the api library, more of an internal work item.
/cc @LGraber and @benlower I mentioned this a while ago, I think it’s something someone should take up 😃
Reviewing older issues, I believe we have addressed this one by rewriting the sign in / sign out topic to be more clear: https://tableau.github.io/server-client-python/docs/sign-in-out