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

Unable to upload files >64 MB. #326

Closed

Description

@whatthestack

It would say the following error:
TypeError: publish_req_chunked() takes at most 3 arguments (4 given)
After jumping into the package, I found editing these lines resolved the issue:

server-client-python/tableauserverclient/server/request_factory.py - line 105 and 394, i added either connection_credentials or connections - depending on what was missing:

105 - Previous: def publish_req_chunked(self, datasource_item, connection_credentials=None):
105 - Fixed: def publish_req_chunked(self, datasource_item, connection_credentials=None, connections=None):

394 - Previous: def publish_req_chunked(self, workbook_item, connections=None):
394 - Fixed: def publish_req_chunked(self, workbook_item, connection_credentials=None, connections=None):

Is there a reason why it was left off? Looking at the following lines, it makes more sense to have them there.

After I made these changes, I was able to upload a 700+ MB file.

Activity

  1. t8y8 commented on Aug 13, 2018

    @t8y8
    Contributor

    This is fixed in the development branch; can you pull from there and verify your issue is resolved?

  2. bskim45 commented on Aug 17, 2018

    @bskim45
    Contributor

    I just made another PR to cover latter case.
    btw, is there any ETA for next release? @t8y8

  3. added a commit that references this issue on Aug 20, 2018
  4. pmehai commented on Jan 16, 2019

    @pmehai

    Are there any updates on this issue? I'm running into this error when trying to upload an 84MB extract.

  5. bskim45 commented on Jan 17, 2019

    @bskim45
    Contributor

    The fix is merged but not released yet. You should install the package directly from development branch.

  6. t8y8 commented on Jan 19, 2019

    @t8y8
    Contributor

    @RussTheAerialist I know an internal team has a PR out that they’d like released shortly, maybe we can try and get those merged and released next week. I’m on vacation but I’ll support code reviews that I’m tagged in!

  7. sharono011 commented on Mar 27, 2019

    @sharono011

    This is still broken. When will the fix be released?

  8. irwando commented on Jul 25, 2019

    @irwando

    Released. Please re-open if you still have issues.

  9. samyak53 commented on Jun 14, 2020

    @samyak53

    I am getting this error TypeError: publish_req_chunked() takes from 2 to 3 positional arguments but 4 were given when I try to publish datasource having size 300MB using this function server.datasources.publish(). @RussTheAerialist

  10. DuncanTormey commented on May 10, 2022

    @DuncanTormey

    I am getting this error TypeError: publish_req_chunked() takes from 2 to 3 positional arguments but 4 were given when I try to publish datasource having size 300MB using this function server.datasources.publish(). @RussTheAerialist

    @samyak53 I am getting this error too. Were you able to resolve?

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions