dingo4dev commented on issue #54023:
URL: https://github.com/apache/airflow/issues/54023#issuecomment-3182092790
I'm also facing this problem sometime while using basic python task with
`mutiple_outputs` and have `None` value in return.
I noticed the error log is similar to this issue, maybe we can have a look
on null value checking in xcom push process.
``` python
INFO - Done. Returned value was: {'df': None, 'tasks': []}
ERROR - Task failed with exception: source="task"
AirflowRuntimeError: API_SERVER_ERROR: {'status_code': 422, 'message':
'Remote server returned validation error', 'detail': {'detail': [{'type':
'missing', 'loc': ['body'], 'msg': 'Field required', 'input': None}]}}
File
"/home/airflow/.local/lib/python3.12/site-packages/airflow/sdk/execution_time/task_runner.py",
line 888 in run
File
"/home/airflow/.local/lib/python3.12/site-packages/airflow/sdk/execution_time/task_runner.py",
line 1224 in _push_xcom_if_needed
File
"/home/airflow/.local/lib/python3.12/site-packages/airflow/sdk/execution_time/task_runner.py",
line 410 in xcom_push
File
"/home/airflow/.local/lib/python3.12/site-packages/airflow/sdk/execution_time/task_runner.py",
line 533 in _xcom_push
File
"/home/airflow/.local/lib/python3.12/site-packages/airflow/sdk/bases/xcom.py",
line 80 in set
File
"/home/airflow/.local/lib/python3.12/site-packages/airflow/sdk/execution_time/comms.py",
line 203 in send
File
"/home/airflow/.local/lib/python3.12/site-packages/airflow/sdk/execution_time/comms.py",
line 263 in _get_response
File
"/home/airflow/.local/lib/python3.12/site-packages/airflow/sdk/execution_time/comms.py",
line 250 in _from_frame
```
--
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]