Skip to content

Error when running server.datasources.populate_connections #226

@grbritz

Description

@grbritz

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.

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