You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/02/07 15:15:35 UTC

[GitHub] [airflow-client-python] rizh42 opened a new issue #43: User confirmation needed

rizh42 opened a new issue #43:
URL: https://github.com/apache/airflow-client-python/issues/43


   While using client I get ApiTypeError because instead of one of args in function goes some HTML, where there is User confirmation needed string
   Here is my code:
   ```
   import os.path
   from dotenv import load_dotenv
   import airflow_client.client
   from airflow_client.client.api import dag_api
   
   
   dotenv_path = os.path.join(os.path.dirname(__file__), 'conn_info.env')
   if os.path.exists(dotenv_path):
       load_dotenv(dotenv_path)
   
   AIRFLOW_CONN_INFO = {
       'host': os.getenv('AIRFLOW_HOST'),
       'username': os.getenv('airflow_login'),
       'password': os.getenv('airflow_password')
   }
   
   config = airflow_client.client.Configuration(
       host=AIRFLOW_CONN_INFO['host'],
       username=AIRFLOW_CONN_INFO['username'],
       password=AIRFLOW_CONN_INFO['password']
   )
   
   with airflow_client.client.ApiClient(config) as api_client:
       api_instance = dag_api.DAGApi(api_client)
       api_response = api_instance.get_dags()
       print(api_response)
   ```
   Help please


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow-client-python] ashb commented on issue #43: User confirmation needed

Posted by GitBox <gi...@apache.org>.
ashb commented on issue #43:
URL: https://github.com/apache/airflow-client-python/issues/43#issuecomment-1032399805


   What is the exact error you're getting?


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org