tableau / TabPy

Execute Python code on the fly and display results in Tableau visualizations:
https://tableau.github.io/TabPy/
MIT License
1.56k stars 598 forks source link

TabPy limitation data #317

Closed luc-kalaora closed 4 years ago

luc-kalaora commented 5 years ago

Environment information:

i have a calculate Table defined by script_str function SCRIPT_STR(" newList=[] for x in _arg1: newList.append('try') return newList", ATTR([vector]))

Sometimes when i increase the number of vectors with a parameter in my view

i got this error message in the tabpy server log (http1connection.py:http1connection:253): Malformed HTTP message from ::1: Content-Length too long

It seems to be a tornado limitation (100 MByte limitation) as is it written here :

https://github.com/jupyter/notebook/issues/650#issuecomment-150833924

Is there a workaround?

WillAyd commented 5 years ago

How many items do you have in _arg1? Is there an actual need for a response over 100 MB?

luc-kalaora commented 5 years ago

Ok the limit is 100 mb. Yes i have a 150 mb file. Can we increase the limit? Thanks

0golovatyi commented 5 years ago

@Respondi there no limits enforced for responses in TabPy, seem like you need to find a way how to configure Tornado to support 150Mb in response.

nmannheimer commented 5 years ago

@Respondi this is being fixed in the latest round of updates that will make this a configurable parameter.

christo-mabbs11 commented 5 years ago

@nmannheimer I'm currently experiencing this issue, thanks for working on a fix.

Do you know when this update will be available and if there is a workaround in the meantime?

0golovatyi commented 5 years ago

@christo-mabbs11 We published pre-release version 0.8.9 (https://github.com/tableau/TabPy/releases/tag/0.8.9) with the configurable buffer size, could you try it? To set buffer size you'll need to specify TABPY_MAX_REQUEST_SIZE_MB parameter in your config file as explained at https://github.com/tableau/TabPy/blob/master/docs/server-config.md#configuration-file-content.

christo-mabbs11 commented 5 years ago

@0golovatyi Great thanks for your help, I have updated the TabPy server settings with the appropriate details 👍