pmalafosse opened a new issue #16669:
URL: https://github.com/apache/airflow/issues/16669


   **Apache Airflow version**: 
   
   
   **Kubernetes version (if you are using kubernetes)** (use `kubectl version`):
   
   **Environment**:
   
   - **Cloud provider or hardware configuration**:
   - **OS** (e.g. from /etc/os-release):
   - **Kernel** (e.g. `uname -a`):
   - **Install tools**:
   - **Others**:
   
   **What happened**:
   
   The operator fails at the last step, after successfully refreshing the 
workbook with this error:
   ```
   tableauserverclient.server.endpoint.exceptions.ServerResponseError: 
   
           401002: Unauthorized Access
                   Invalid authentication credentials were provided.
   ```
   
   **What you expected to happen**:
   It should not fail, like when we use the username/password authentication 
method (instead of personal_access_token)
   
   <!-- What do you think went wrong? -->
   
   Tableau server does not allow concurrent connections when using 
personal_access_token https://github.com/tableau/server-client-python/issues/717
   The solution would be redesigning completely the operator to only call the 
hook once.
   My quick fix was to edit this in TableauHook:
   
   ```
       def __exit__(self, exc_type: Any, exc_val: Any, exc_tb: Any) -> None:
           pass
   ```
   
   **How to reproduce it**:
   
   Run this operator TableauRefreshWorkbookOperator using Tableau 
personal_access_token authentication (token_name, personal_access_token).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to