tabcmd icon indicating copy to clipboard operation
tabcmd copied to clipboard

trying to publish to tableau cloud. get error "publish() got an unexpected keyword argument 'connection_credentials'"

Open maolivas opened this issue 1 year ago • 1 comments

Here is the command I was using to test: tabcmd publish workbook.twbx --no-certcheck --tabbed -r "project" -o -s https://10ay.online.tableau.com -t "url" --token-name "TokenName" --token-value "xxxxxxxxxxxxxxxxxxxxxx"

then got this error: Tabcmd 2.0.15
===== Server: https://10ay.online.tableau.com ===== Token Name: TokenName Tableau Server Site: url Connecting to the server...
versions: 3.24, 2.4
Signed into https://10ay.online.tableau.com as user with id XXXXXXXXXXXXXXXXXXXXXXX Querying single user (ID: XXXXXXXXXXXXXX) Fetched user details from server Succeeded
Querying all projects on site Publishing 'e:\Tableau\twbx\workbook.twbx' to the server. This could take several minutes... publish() got an unexpected keyword argument 'connection_credentials' Traceback (most recent call last): File "tabcmd\commands\datasources_and_workbooks\publish_command.py", line 75, in run_command File "tableauserverclient\server\endpoint\endpoint.py", line 274, in wrapper File "tableauserverclient\server\endpoint\endpoint.py", line 316, in wrapper File "tableauserverclient\server\endpoint\endpoint.py", line 316, in wrapper TypeError: publish() got an unexpected keyword argument 'connection_credentials' Exiting...

When I went back to version 2.11 it worked. Creating new session
===== Server: https://10ay.online.tableau.com ===== Username: [email protected] Tableau Server Site: url Connecting to the server...
Signed into https://10ay.online.tableau.com as user with id XXXXXXX Succeeded
Querying all projects on site Publishing as Overwrite
Publishing ''e:\Tableau\twbx\Workbook.twbx'' to the server. This could take several minutes... Publishing Workbook.twbx to server Published Workbook (ID: XXXXXXX) File successfully published to the server at the following location: https://10ay.online.tableau.com/#/site/url/workbooks/XXXXXX

maolivas avatar Jan 07 '25 04:01 maolivas

I'll release a fix for this very soon.

jacalata avatar Jan 07 '25 07:01 jacalata