jpipas commented on issue #23588:
URL: https://github.com/apache/airflow/issues/23588#issuecomment-1121172291
Getting the same thing - It appears to be an issue with the getTask API
(there's several javascript errors in console). Most notably the /tasks
endpoint for a given dag.
Python version: 3.9.12
Airflow version: 2.3.0+astro.3
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 2447, in
wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1952, in
full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1821, in
handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.9/site-packages/flask/_compat.py", line 39,
in reraise
raise value
File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1950, in
full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1936, in
dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File
"/usr/local/lib/python3.9/site-packages/connexion/decorators/decorator.py",
line 68, in wrapper
response = function(request)
File
"/usr/local/lib/python3.9/site-packages/connexion/decorators/uri_parsing.py",
line 149, in wrapper
response = function(request)
File
"/usr/local/lib/python3.9/site-packages/connexion/decorators/validation.py",
line 399, in wrapper
return function(request)
File
"/usr/local/lib/python3.9/site-packages/connexion/decorators/response.py", line
112, in wrapper
response = function(request)
File
"/usr/local/lib/python3.9/site-packages/connexion/decorators/parameter.py",
line 116, in wrapper
return function(**kwargs)
File
"/usr/local/lib/python3.9/site-packages/airflow/api_connexion/security.py",
line 49, in decorated
return func(*args, **kwargs)
File
"/usr/local/lib/python3.9/site-packages/airflow/api_connexion/endpoints/task_endpoint.py",
line 67, in get_tasks
return task_collection_schema.dump(task_collection)
File "/usr/local/lib/python3.9/site-packages/marshmallow/schema.py", line
552, in dump
result = self._serialize(processed_obj, many=many)
File "/usr/local/lib/python3.9/site-packages/marshmallow/schema.py", line
520, in _serialize
value = field_obj.serialize(attr_name, obj, accessor=self.get_attribute)
File "/usr/local/lib/python3.9/site-packages/marshmallow/fields.py", line
338, in serialize
return self._serialize(value, attr, obj, **kwargs)
File "/usr/local/lib/python3.9/site-packages/marshmallow/fields.py", line
765, in _serialize
return [self.inner._serialize(each, attr, obj, **kwargs) for each in
value]
File "/usr/local/lib/python3.9/site-packages/marshmallow/fields.py", line
765, in <listcomp>
return [self.inner._serialize(each, attr, obj, **kwargs) for each in
value]
File "/usr/local/lib/python3.9/site-packages/marshmallow/fields.py", line
634, in _serialize
return schema.dump(nested_obj, many=many)
File "/usr/local/lib/python3.9/site-packages/marshmallow/schema.py", line
552, in dump
result = self._serialize(processed_obj, many=many)
File "/usr/local/lib/python3.9/site-packages/marshmallow/schema.py", line
520, in _serialize
value = field_obj.serialize(attr_name, obj, accessor=self.get_attribute)
File "/usr/local/lib/python3.9/site-packages/marshmallow/fields.py", line
338, in serialize
return self._serialize(value, attr, obj, **kwargs)
File "/usr/local/lib/python3.9/site-packages/marshmallow/fields.py", line
1870, in _serialize
return self._serialize_method(obj)
File
"/usr/local/lib/python3.9/site-packages/airflow/api_connexion/schemas/task_schema.py",
line 70, in get_params
return {k: v.dump() for k, v in params.items()}
File
"/usr/local/lib/python3.9/site-packages/airflow/api_connexion/schemas/task_schema.py",
line 70, in <dictcomp>
return {k: v.dump() for k, v in params.items()}
AttributeError: 'dict' object has no attribute 'dump'
--
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]