Skip to content
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

Missing parameter in /usr/local/lib/python2.7/dist-packages/tableauserverclient/server/request_factory.py #309

Closed
dmstubbs opened this issue Jun 29, 2018 · 1 comment
Labels

Comments

@dmstubbs
Copy link

Found an error in the above file in

def publish_req_chunked(self, datasource_item, connection_credentials=None):
xml_request = self._generate_xml(datasource_item, connection_credentials, connections)
parts = {'request_payload': ('', xml_request, 'text/xml')}
return _add_multipart(parts)

which is related to uploading larger tde files and I was getting failures when I tried to upload a tde to the server. Tracing the calling method it is missing "connections"

I modified the method to:

def publish_req_chunked(self, datasource_item, connection_credentials=None, connections=None):
xml_request = self._generate_xml(datasource_item, connection_credentials, connections)
parts = {'request_payload': ('', xml_request, 'text/xml')}
return _add_multipart(parts)

and I was able to use the library to upload my tde file to the server.

@t8y8 t8y8 added the bug label Jul 6, 2018
bskim45 added a commit to bskim45/server-client-python that referenced this issue Jul 18, 2018
bskim45 added a commit to bskim45/server-client-python that referenced this issue Jul 18, 2018
bskim45 added a commit to bskim45/server-client-python that referenced this issue Jul 18, 2018
@graysonarts graysonarts mentioned this issue Apr 8, 2019
@irwando
Copy link
Contributor

irwando commented Jul 25, 2019

Should be released. Closing.

@irwando irwando closed this as completed Jul 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants