-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ConnectionError: You are already signed in with a valid auth token. #60
Comments
Hi @zack-nguyen, can you double check that you have the most recent version of the library installed? Another possibility is that you are attempting to switch sites without having the appropriate permissions. If that's the case, updating to the newer version also clarifies that this may be the cause of the If you don't want to risk updating any packages in your environment (quite reasonable), you can also verify by comparing you version to the latest which is Here is some sample code I just executed, where I am successfully switching sites:
And the output:
|
Hey @divinorum-webb,
Have this |
Hi @zack-nguyen or @divinorum-webb, was this ever resolved? I'm running into the same issue after upgrading Tableau Server from 2021.2.7 to 2021.4.7. |
Hey @sheriefmdb I can reproduce the error described, but only when attempting to switch to the site I'm already authenticated in. In that situation, it makes sense to me that the Can you confirm that you get the error when attempting to switch to another site that isn't the one you are already signed into? For example, in my config details I authenticate into a site called Here are some sample sites in my test server: Now when I attempt to However, when I attempt to We can also see here that my connection's |
Thank you for the response @divinorum-webb. What's strange is that the script was running flawlessly before the upgrade. I'm using a Personal Access Token as a Server Admin for the script. The script essentially synchs our Okta groups with our Tableau groups for user provisioning. We have 2 sites, the script works fine for the default site, but gets the following error after successfully processing the first group on the non-default site: File " D:\Scripts\tableau_automation\tableau_okta_sync.py", line 114, in This is the piece of code the script uses to switch sites: conn.switch_site(content_url='Site2') Do you think conn.switch_site possibly works differently than it did before? The script was running fine from on 2021.2.7 but is having the issue after we upgraded to 2021.4.7 Thanks again for your help! |
Hey @sheriefmdb I don't recall any specific changes that would be causing this issue, but it's clearly an issue so I'm going to look into it further. I'll follow up in this thread when I think I have a solution. Until then, perhaps wrap your existing logic with a |
Awesome, thanks so much @divinorum-webb . Really appreciate your help here. I will try the temp fix and hopefully we can come up with a proper fix! |
@sheriefmdb can you run |
hello @divinorum-webb , I am having issues when I try to sign_out(). Whenever I first sign in then run some other functions, I want then at the end to sign out, however, I am getting the following error: "ConnectionError: You are already signed in with a valid auth token or have insufficient permissions." Wondering if something has changed. Would really appreciate your help/guidance. |
Hi @divinorum-webb , I ran pip install -U tableau-api-lib again and reran the code but am getting same error. What's strange is that the script will run successfully for all the groups on my default site (about 50 or so), then run successfully for the first tableau group on my second site, then fail. So it seems like it does work for for the second site, but fails after processing one group. I haven't tried the temp fix yet, but will keep posted. |
Hello @divinorum-webb, I am also running into issues when trying to sign_out(). I am getting the following error: ConnectionError: You are already signed in with a valid auth token or have insufficient permissions. |
@divinorum-webb thank you for updating the packages to fix the sign_out error, much appreciated. |
Hi @divinorum-webb , just wanted to check in and see if there is any available fix for the error we get when we try to switch sites. As always, really appreciate your help and support. |
@sheriefmdb not sure how to proceed because I cannot reproduce this error. Can you share as much of the relevant code as possible from the |
Hey @divinorum-webb, thanks for all your help here. I forgot to close the loop here, I ended up adjusting our script and it works as expected now. Thanks again and have a good one. |
Hi @divinorum-webb,
After upgrade tableau server to the latest version 2021.4.2,
switch_site_responses
seems no longer running (I tested with tableau server version 2021.1.10 it worked)I still able to run
sites_df = get_sites_dataframe(connection)
but can't doswitch_site_responses
Thank you
The text was updated successfully, but these errors were encountered: