tim-yobi opened a new issue, #58065:
URL: https://github.com/apache/airflow/issues/58065
### Apache Airflow version
Other Airflow 2/3 version (please specify below)
### If "Other Airflow 2/3 version" selected, which one?
3.1.1
### What happened?
When using `TriggerDagRunOperator`,
`airflow.exceptions.ParamValidationError` are not being shown in the triggerer
log.
In the triggerer (task) log, this is what we see:
```
AirflowRuntimeError: API_SERVER_ERROR: {'status_code': 500, 'message':
'Server returned error', 'detail': {'message': 'Internal server error',
'correlation-id': '...'}}
```
The true error is only unveiled when we dig into the api-server logs.
### What you think should happen instead?
`airflow.exceptions.ParamValidationError` should show up in the log of
`TriggerDagRunOperator` tasks.
### How to reproduce
1. Build a DAG `underlying_dag` that takes certain Params, e.g.
`"test_param": Param("", type="string", enum=["a", "b"]),`
2. use TriggerDagRunOperator in a trigger DAG `trigger_dag`
3. call the TriggerDagRunOperator with an invalid parameter, e.g.
```
TriggerDagRunOperator.partial(task_id="trigger_dag",
trigger_dag_id="underlying_dag").expand(
conf=[{"test_param": "d"}]
)
```
4. observe that the task fails and the logging described above.
5. observe the ParamValidationError in api-server
### Operating System
astro managed docker image, not sure what OS, debian?
### Versions of Apache Airflow Providers
_No response_
### Deployment
Astronomer
### Deployment details
_No response_
### Anything else?
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
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]