lanxinxs opened a new issue, #51521:
URL: https://github.com/apache/airflow/issues/51521

   ### Apache Airflow version
   
   3.0.1
   
   ### If "Other Airflow 2 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
               xcoms = context['ti'].xcom_pull(
                   run_id=run_id,
                   task_ids=task_ids,
                   key=None,
               )
   
   the above code will report error said key cannot be None:
   `Key`
   `Input should be a valid string [type=string_type, input_value=None, 
input_type=NoneType]`
   
   ### What you think should happen instead?
   
   should remove the key filter if key=None or if users don't pass key 
parameter.
   In Airflow 2 this works.
   
   ### How to reproduce
   
               xcoms = context['ti'].xcom_pull(
                   run_id=run_id,
                   task_ids=task_ids,
                   key=None,
               )
   
   ### Operating System
   
   ubuntu
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Official Apache Airflow Helm Chart
   
   ### Deployment details
   
   _No response_
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [x] 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]

Reply via email to