tirkarthi opened a new pull request, #62355:
URL: https://github.com/apache/airflow/pull/62355
`action_logging` logs the masked payload for endpoints accepting json
payload. But a list is also a valid json and in this case iterating through
with `items` causes `AttributeError` and internal server error. This change
skips logging and lets FastAPI handle payload structure validation. After this
PR 422 status code will be returned with proper error message instead of
internal server error.
This still results in audit log entry like below though but validating for
all payloads to be dictionary feels very restrictive and something that should
be handled at FastAPI layer instead.
```
*************************** 289. row ***************************
id: 289
dttm: 2026-02-23 18:58:33.799714
dag_id: example_complex
task_id: NULL
map_index: NULL
event: trigger_dag_run
logical_date: NULL
run_id: NULL
owner: admin
owner_display_name: admin
extra: {"method": "POST"}
try_number: NULL
```
closes: #62354
##### Was generative AI tooling used to co-author this PR?
No
--
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]