bugraoz93 commented on code in PR #55744:
URL: https://github.com/apache/airflow/pull/55744#discussion_r2360464341


##########
airflow-ctl/src/airflowctl/api/operations.py:
##########
@@ -243,8 +243,11 @@ def create_event(
     ) -> AssetEventResponse | ServerResponseError:
         """Create an asset event."""
         try:
+            # Ensure extra is an object; DB/UI choke on null
+            if asset_event_body.extra is None:
+                asset_event_body.extra = {}
             self.response = self.client.post(
-                "assets/events", 
json=_date_safe_dict_from_pydantic(asset_event_body)
+                "/assets/events", 
json=_date_safe_dict_from_pydantic(asset_event_body)

Review Comment:
   I mentioned a couple of times that this should not actually align with 
multiple of them, and we should use the other way around. That part is working. 
We don't need to update it
   ```suggestion
                   "assets/events", 
json=_date_safe_dict_from_pydantic(asset_event_body)
   ```



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