10000 Updating workbook fields (such as name) is failing with "Payload is either malformed or incomplete" error · Issue #740 · tableau/server-client-python · GitHub
[go: up one dir, main page]

Skip to content

Updating workbook fields (such as name) is failing with "Payload is either malformed or incomplete" error #740

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

Closed
bcantoni opened this issue Nov 19, 2020 · 2 comments

Comments

@bcantoni
Copy link
Contributor

TSC: latest (v0.14.0)
Tableau server versions tested:

  • exhibit the failure: 2019.1, 2019.3
  • works correctly: 2020.4

Sample script:

tableau_auth = TSC.TableauAuth(username, password, site_id=site_url)
tableau_server = TSC.Server(server_url, use_server_version=True)
tableau_server.add_http_options({'verify': False})

with tableau_server.auth.sign_in(tableau_auth):
	workbook_item = tableau_server.workbooks.get_by_id(workbook_luid)
	new_name = "{}_{}".format(workbook_item.name, "Test")
	workbook_item.name = new_name
	tableau_server.workbooks.update(workbook_item)

Result:

Traceback (most recent call last):
  File "c:\dev\- Tests\workbook_actions.py", line 30, in <module>
    main()
  File "c:\dev\- Tests\workbook_actions.py", line 27, in main
    tableau_server.workbooks.update(workbook_item)
  File "C:\Python39\lib\site-packages\tableauserverclient\server\endpoint\endpoint.py", line 127, in wrapper
    return func(self, *args, **kwargs)
  File "C:\Python39\lib\site-packages\tableauserverclient\server\endpoint\workbooks_endpoint.py", line 107, in update
    server_response = self.put_request(url, update_req)
  File "C:\Python39\lib\site-packages\tableauserverclient\server\endpoint\endpoint.py", line 93, in put_request
    return self._make_request(self.parent_srv.session.put, url,
  File "C:\Python39\lib\site-packages\tableauserverclient\server\endpoint\endpoint.py", line 55, in _make_request
    self._check_status(server_response)
  File "C:\Python39\lib\site-packages\tableauserverclient\server\endpoint\endpoint.py", line 70, in _check_status
    raise ServerResponseError.from_response(server_response.content, self.parent_srv.namespace)
tableauserverclient.server.endpoint.exceptions.ServerResponseError:

        400000: Bad Request
                Payload is either malformed or incomplete	
@bcantoni
Copy link
Contributor Author
bcantoni commented Dec 2, 2020

This is fixed in the current development branch; will close the issue once the next release happens.

@shinchris
Copy link
Contributor

Fix (#741) went in v0.14.1 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0