rodreras commented on issue #54952:
URL: https://github.com/apache/airflow/issues/54952#issuecomment-3228211589

   I am getting the same error. I created a test-DAG to connect to my S3 bucket 
and list the file names. It throws the exact same error.
   
   ```python
   
   [2025-08-27, 14:06:14] ERROR - Task failed with exception: source="task"
   NotImplementedError: Objects of type <class 
'pydantic_core._pydantic_core.SerializationIterator'> are not supported
   
   File 
"/home/airflow/.local/lib/python3.12/site-packages/airflow/sdk/execution_time/task_runner.py",
 line 918 in run
   
   File 
"/home/airflow/.local/lib/python3.12/site-packages/airflow/sdk/execution_time/task_runner.py",
 line 1213 in _execute_task
   
   File 
"/home/airflow/.local/lib/python3.12/site-packages/airflow/sdk/bases/operator.py",
 line 397 in wrapper
   
   File 
"/home/airflow/.local/lib/python3.12/site-packages/airflow/sdk/bases/decorator.py",
 line 251 in execute
   
   File 
"/home/airflow/.local/lib/python3.12/site-packages/airflow/sdk/bases/operator.py",
 line 397 in wrapper
   
   File 
"/home/airflow/.local/lib/python3.12/site-packages/airflow/providers/standard/operators/python.py",
 line 217 in execute
   
   File 
"/home/airflow/.local/lib/python3.12/site-packages/airflow/providers/standard/operators/python.py",
 line 240 in execute_callable
   
   File 
"/home/airflow/.local/lib/python3.12/site-packages/airflow/sdk/execution_time/callback_runner.py",
 line 81 in run
   
   File "/opt/airflow/dags/minio_example_with_hook.py", line 23 in 
list_s3_bucket_contents
   
   File 
"/home/airflow/.local/lib/python3.12/site-packages/airflow/providers/amazon/aws/hooks/base_aws.py",
 line 839 in get_conn
   
   File "/usr/local/lib/python3.12/functools.py", line 998 in __get__
   
   File 
"/home/airflow/.local/lib/python3.12/site-packages/airflow/providers/amazon/aws/hooks/base_aws.py",
 line 774 in conn
   
   File 
"/home/airflow/.local/lib/python3.12/site-packages/airflow/providers/amazon/aws/hooks/base_aws.py",
 line 676 in region_name
   
   File "/usr/local/lib/python3.12/functools.py", line 998 in __get__
   
   File 
"/home/airflow/.local/lib/python3.12/site-packages/airflow/providers/amazon/aws/hooks/base_aws.py",
 line 638 in conn_config
   
   File "<string>", line 9 in __init__
   
   File 
"/home/airflow/.local/lib/python3.12/site-packages/airflow/providers/amazon/aws/utils/connection_wrapper.py",
 line 201 in __post_init__
   
   File 
"/home/airflow/.local/lib/python3.12/site-packages/airflow/sdk/definitions/connection.py",
 line 162 in extra_dejson
   
   File 
"/home/airflow/.local/lib/python3.12/site-packages/airflow/sdk/execution_time/secrets_masker.py",
 line 130 in mask_secret
   
   File 
"/home/airflow/.local/lib/python3.12/site-packages/airflow/sdk/execution_time/comms.py",
 line 187 in send
   
   File 
"/home/airflow/.local/lib/python3.12/site-packages/airflow/sdk/execution_time/comms.py",
 line 145 in as_bytes
   
   File 
"/home/airflow/.local/lib/python3.12/site-packages/airflow/sdk/execution_time/comms.py",
 line 122 in _msgpack_enc_hook
   ```


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

Reply via email to