Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Error when running server.datasources.populate_connections #226

Copy link
Copy link
@grbritz

Description

@grbritz
Issue body actions

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.

Reactions are currently unavailable

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.