← 输入框|github.com|刷新
Skip to content

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

Closed

Description

@dmstubbs

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions