You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2018/01/11 19:37:00 UTC

[jira] [Commented] (AIRFLOW-1949) Unable to Import Variables, always get "Missing file or syntax error"

    [ https://issues.apache.org/jira/browse/AIRFLOW-1949?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16322821#comment-16322821 ] 

ASF subversion and git services commented on AIRFLOW-1949:
----------------------------------------------------------

Commit 1f3b607925eaacdb11831f258069623054c40eae in incubator-airflow's branch refs/heads/master from [~johnbarker]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-airflow.git;h=1f3b607 ]

[AIRFLOW-1949] Fix var upload, str() produces "b'...'" which is not json

Closes #2899 from j16r/bugfix/AIRFLOW-
1949_config_upload


> Unable to Import Variables, always get "Missing file or syntax error"
> ---------------------------------------------------------------------
>
>                 Key: AIRFLOW-1949
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-1949
>             Project: Apache Airflow
>          Issue Type: Bug
>    Affects Versions: Airflow 1.8
>            Reporter: John Barker
>            Assignee: John Barker
>             Fix For: 1.10.0, 2.0.0
>
>         Attachments: Screen Shot 2017-12-22 at 13.34.05.png
>
>
> I'm unable to import a Variables file. Looking at the code it appears to support JSON.
> I've tried uploading an empty file, a file containing "{}" and several simple variations of files created by downloading a set of variables. I always get the same error: "Missing file or syntax error"
> I took out the `except Exception` in the request handler and got: {{json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)}}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)