molcay commented on PR #41350:
URL: https://github.com/apache/airflow/pull/41350#issuecomment-2283788502

   Hi @bbovenzi,
   After checking the second time, "failure" is a bit too much but here is the 
situation:
   
   - I have the following simple DAG:
   ```python
   import datetime
   
   import airflow
   import pendulum
   from airflow.operators.bash import BashOperator
   
   
   with airflow.DAG(
       dag_id="basic_dag",
       start_date=pendulum.datetime(2024, 5, 14, tz="UTC"),
       catchup=False,
       schedule="@once",
       tags=["basic"],
       params={
           'd': datetime.datetime.utcnow(),
       }
   ):
       task = BashOperator(task_id="normal", bash_command="echo 'I am just a 
normal task'")
   ```
   
   When I try to trigger this DAG, in the trigger form page I am getting the 
following info message (I am saying info because it is a blueish color)
   ```
   Could not pre-populate conf field due to non-JSON-serializable data-types
   ```
   The UI:
   ![Screenshot 2024-08-12 1 24 18 
PM](https://github.com/user-attachments/assets/bca00b35-7853-4b2b-b399-c37e0c03edf3)
   
   When I try to click the Trigger button, I am getting the same info message 
again and the trigger is not successful. 
   Here is the current process:
   
![output](https://github.com/user-attachments/assets/90a2347c-d20e-43f4-a175-51a5cef15b1e)
   
   > NOTE: If I run the command `airflow dags trigger basic_dag` it will 
succeed. 
   
   With this PR, we will use the `WebEncoder` for current and recent 
configurations, so it will not give this message.
   The result:
   ![output 
(1)](https://github.com/user-attachments/assets/5096242e-da64-4357-a280-2704452f8224)
   
   


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