server-client-python icon indicating copy to clipboard operation
server-client-python copied to clipboard

Download hangs for very large datasources and workbooks

Open TimothyVermeirenBiztory opened this issue 2 years ago • 1 comments

Describe the bug When using the endpoints for downloading a data source or a workbook, the request might hang for very large items.

More specifically, it'll hang in the phase where it's sending the request to Tableau to prepare the download, and Tableau is "putting together" the download. When doing this in your browser interactively, this is the moment where you click "Download", and you see the status bar saying "Waiting for (tableau.wherever.com)", until the download starts. In TSC, this is hanging on line 86 in endpoint.py, where server_response seems like it never gets resolved.

I've tested this with a 20 GB data source with extract. Interactively, in a browser, the request comes through after about 12 minutes, and the download starts. With TSC, it never does. Note that no timeout is added to the requests parameters with add_http_options, i.e. it is TSC's default 0.

Versions Details of your environment, including:

  • Tableau Server version (or note if using Tableau Online): 2022.1.13 (20221.23.0315.2054) 64-bit Linux
  • Python version: 3.10.7
  • TSC library version: 0.25 (because 0.26 was yanked from PyPi?)

To Reproduce Really just: tableau_server_tsc.datasources.download(...)

Results No error, but continues indefinitely without a response.

TimothyVermeirenBiztory avatar Jul 10 '23 09:07 TimothyVermeirenBiztory

is there any update on this , we too facing same issue

rupalvshinde avatar Mar 05 '24 06:03 rupalvshinde