Comments (8)
This error is caused by the threading code repeating the signout call. I'm pretty sure that all of the four issues logged on 0.29 are caused the same way. I'm working on a fix.
from server-client-python.
@TWeatherston @BobDu @gordonstrodel @BerndRos FYI the fix for this has been released now as part of v0.30 https://github.com/tableau/server-client-python/releases/tag/v0.30
from server-client-python.
I think this is due to the server.auth.sign_out() which is automatically called at the end of the with-statement.
When you include the logout in your older style this error should come up aswell.
from server-client-python.
@bcantoni - Confirmed. We are seeing the same error message initiating refreshes on Tableau Cloud on the latest copy of tableauserverclient from within our instance of Databricks (running python). Explicitly installing 0.28 seems to fix the problem. (Thank you @mfalkenham).
NotSignedInError: (b'Unauthorized AccessInvalid authentication credentials were provided.', 'https://us-east-1.online.tableau.com/api/3.21/auth/signout')
Is there a decision from Tableau on if this will be fixed? Or should we just update our code to remove the "with" as noted above?
from server-client-python.
@BerndRos ahh thanks for pointing that out - I confirmed in my workaround calling sign_out
does cause the same exception.
from server-client-python.
Another fast and dirty solution
import tableauserverclient as TSC
tableau_auth = TSC.PersonalAccessTokenAuth(
"xxxxx",
"xxxxxxxxxx",
"",
)
server = TSC.Server("https://devplat.tableautest.com", use_server_version=True)
server.auth.sign_out = lambda: None # Set sign_out() as a empty func
with server.auth.sign_in(tableau_auth):
all_wb, pagination_item = server.workbooks.get()
print("\nThere are {} workbooks: ".format(pagination_item.total_available))
for wb in all_wb:
print(wb.id, wb.name, wb.tags)
from server-client-python.
Don't want to add any pressure but do you have a rough idea when the fix for this might be released? We're trying to plan our server upgrade and the release will help us figure out a good plan for it 😄
from server-client-python.
@bcantoni , just saw this now. I'd like to give a bit of post-mortem info about #1300 and #1299 and this issue.
#1299 was an issue with only some versions of tableau-server, and I'd thought that the server was timing out while waiting to transfer another chunk in large hyper-files. My solution was to reduce the waiting times in order to catch the responses faster. At the beginning of the async request I'd shortened the wait from 1 s to 0.05 s. And in the loops of waiting from 10 s to 0.1 s.
This solved the issue of failed uploads with larger hyperfiles on older versions of tableau server, where we discovered the issue was Tableau-Server 2022.1.13. We were not able to reproduce the issue on 2022.1.16, so it seemed to depend on the Server version.
In hindsight, it looks like the async completion flag that was being used hadn't been working reliably. To find the exact cause of the issue, I'd suggest looking at the client's compatibility with multiple versions of tableau-server, as I suspect the new problem was introduced with an update of tableau-server and not with the client. Perhaps the timings for transactions were made tighter with the new version, reintroducing this issue, which makes sense for me that by further reducing the sleep time at the start of the transaction had solved the issue for you.
The client did have an overall issue with the async completion, so the new fix of removing async completely seems like a more robust solution.
from server-client-python.
Related Issues (20)
- [TPYE 1] [DOWNLOAD WORKBOOK AS PPTX] HOT 1
- Update node in actions
- Urllib3 vulnerability HOT 1
- Replace custom time handling with datetime/timedelta
- 0.29 Release: NotSignedInError - Intermittent issue pulling PDFs HOT 4
- When downloading the flow, a KeyError: 'content-disposition' occurs. HOT 13
- Refreshing Datasources results in 409093 EXTRACT_OPERATION_ALREADY_QUEUED HOT 5
- cgi is deprecated, and will be removed in 3.13 HOT 1
- Schedule Type enum doesn't seem to include 'System'
- Error Code 401002 Unauthorized Access at end of authentication loop or upon sign-out HOT 1
- Internal Server Error when publishing a data source size is > 64 MB HOT 1
- [Type 1] [Set workbook description on publish] HOT 2
- server.tasks.get() call does not properly handle interval of 24 for daily refresh tasks in Tableau Cloud HOT 1
- Schedules cannot handle valid monthly schedules HOT 1
- TYPE 3 - ADD GRANTEE NAME TO GRANTEE OBJECT
- Getting internal server error 503
- AttributeError: 'NoneType' object has no attribute 'id' HOT 3
- Retrieving subscriptions failed for frequency = Daily, hour (interval) = 24 HOT 2
- Invalid interval value for a monthly frequency: Customized Monthly. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from server-client-python.