10000 Error when running server.datasources.populate_connections · Issue #226 · tableau/server-client-python · GitHub
[go: up one dir, main page]

Skip to content

Error when running server.datasources.populate_connections #226

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
grbritz opened this issue Sep 20, 2017 · 0 comments
Closed

Error when running server.datasources.populate_connections #226

grbritz opened this issue Sep 20, 2017 · 0 comments

Comments

@grbritz
Copy link
Contributor
grbritz commented Sep 20, 2017

There is a fatal error when trying to populate the connections of a DataSourceItem as per the directions in the samples.

When running server.datasources.populate_connections, the following error occurs:

Traceback (most recent call last):
  File "port-content.py", line 31, in <module>
    main()
  File "port-content.py", line 25, in main
    get_datasources()
  File "port-content.py", line 15, in get_datasources
    server.datasources.populate_connections(ds)
  File "/Library/Python/2.7/site-packages/tableauserverclient/server/endpoint/endpoint.py", line 108, in wrapper
    return func(self, *args, **kwargs)
  File "/Library/Python/2.7/site-packages/tableauserverclient/server/endpoint/datasources_endpoint.py", line 60, in populate_connections
    datasource_item._set_connections(ConnectionItem.from_response(server_response.content))
TypeError: from_response() takes exactly 3 arguments (2 given)

It looks like this error is due to forgetting to add a namespace to a function call in datasources_endpoint.py as part of CL ff60613

This looks like a simple fix. PR to follow shortly.

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