You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Airflow 3.0.0 : Import Variables from GUI fails with "Error Parsing JSON File" #49837
value of the variable is expected to be a string which is not the case with json.loads used in cli that doesn't perform this validation. Variable values other than string and conforming to the JSON spec like int, list, dict etc should be allowed like the cli implementation.
Ran into this as well. Ultimately I just added the key and pasted the value and did not use the import feature. The file format is the same as it always was during Airflow 2 though, it is a Variable I update manually once per month.
Activity
tirkarthi commentedon Apr 27, 2025
value of the variable is expected to be a string which is not the case with
json.loadsused in cli that doesn't perform this validation. Variable values other than string and conforming to the JSON spec like int, list, dict etc should be allowed like the cli implementation.airflow/airflow-core/src/airflow/ui/src/pages/Variables/ImportVariablesForm.tsx
Lines 69 to 83 in 5c41c8e
cc: @shubhamraj-git
ldacey commentedon May 6, 2025
Ran into this as well. Ultimately I just added the key and pasted the value and did not use the import feature. The file format is the same as it always was during Airflow 2 though, it is a Variable I update manually once per month.