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 2021/05/12 16:32:48 UTC

[GitHub] [airflow-client-python] dimberman opened a new issue #15: airflow_client.client.exceptions.ApiValueError: Unsupported type: for any API requests

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


   `
   >>> from airflow_client.client.api import dag_api
   >>> api_instance = dag_api.DAGApi(api_client)
   >>> api_instance.get_dags()
   Traceback (most recent call last):
     File "<stdin>", line 1, in <module>
     File "/Users/dimberman/.virtualenvs/pytest-bdd/lib/python3.7/site-packages/airflow_client/client/api_client.py", line 789, in __call__
       return self.callable(self, *args, **kwargs)
     File "/Users/dimberman/.virtualenvs/pytest-bdd/lib/python3.7/site-packages/airflow_client/client/api/dag_api.py", line 486, in __get_dags
       return self.call_with_http_info(**kwargs)
     File "/Users/dimberman/.virtualenvs/pytest-bdd/lib/python3.7/site-packages/airflow_client/client/api_client.py", line 867, in call_with_http_info
       collection_formats=params['collection_format'])
     File "/Users/dimberman/.virtualenvs/pytest-bdd/lib/python3.7/site-packages/airflow_client/client/api_client.py", line 432, in call_api
       _check_type)
     File "/Users/dimberman/.virtualenvs/pytest-bdd/lib/python3.7/site-packages/airflow_client/client/api_client.py", line 244, in __call_api
       _check_type
     File "/Users/dimberman/.virtualenvs/pytest-bdd/lib/python3.7/site-packages/airflow_client/client/api_client.py", line 348, in deserialize
       configuration=self.configuration
     File "/Users/dimberman/.virtualenvs/pytest-bdd/lib/python3.7/site-packages/airflow_client/client/model_utils.py", line 1420, in validate_and_convert_types
       check_type=_check_type
     File "/Users/dimberman/.virtualenvs/pytest-bdd/lib/python3.7/site-packages/airflow_client/client/model_utils.py", line 1287, in attempt_convert_item
       valid_classes_ordered = order_response_types(valid_classes)
     File "/Users/dimberman/.virtualenvs/pytest-bdd/lib/python3.7/site-packages/airflow_client/client/model_utils.py", line 920, in order_response_types
       key=lambda class_or_instance: index_getter(class_or_instance)
     File "/Users/dimberman/.virtualenvs/pytest-bdd/lib/python3.7/site-packages/airflow_client/client/model_utils.py", line 920, in <lambda>
       key=lambda class_or_instance: index_getter(class_or_instance)
     File "/Users/dimberman/.virtualenvs/pytest-bdd/lib/python3.7/site-packages/airflow_client/client/model_utils.py", line 916, in index_getter
       raise ApiValueError("Unsupported type: %s" % class_or_instance)
   airflow_client.client.exceptions.ApiValueError: Unsupported type: <class 'object'>
   `
   
   I think the new version of OpenAPI might have broken the client. I get these from following most of the examples except config. @mik-laj any idea what might cause this?


-- 
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.

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



[GitHub] [airflow-client-python] msumit commented on issue #15: airflow_client.client.exceptions.ApiValueError: Unsupported type: for any API requests

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


   Fixed in 2.1.0 release. 


-- 
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.

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



[GitHub] [airflow-client-python] msumit closed issue #15: airflow_client.client.exceptions.ApiValueError: Unsupported type: for any API requests

Posted by GitBox <gi...@apache.org>.
msumit closed issue #15:
URL: https://github.com/apache/airflow-client-python/issues/15


   


-- 
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.

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



[GitHub] [airflow-client-python] dimberman commented on issue #15: airflow_client.client.exceptions.ApiValueError: Unsupported type: for any API requests

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


   https://github.com/OpenAPITools/openapi-generator/releases/tag/v5.1.1 seems this is fixed in OpenApi 5.1.1. There's an issue with array items.


-- 
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.

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



[GitHub] [airflow-client-python] msumit commented on issue #15: airflow_client.client.exceptions.ApiValueError: Unsupported type: for any API requests

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


   Yup, verified. We need to upgrade to open API generator 5.1.1 to fix this issue. 
   
   `>>> api_instance.get_dags()`
   `{'dags': [], 'total_entries': 0}`


-- 
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.

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