vue-i18n-starter icon indicating copy to clipboard operation
vue-i18n-starter copied to clipboard

SyntaxError: Unexpected token < in JSON at position 0

Open leoclipet opened this issue 6 years ago • 2 comments
trafficstars

When trying to run lokalise:down

I've got the following error (node:13724) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected token < in JSON at position 0.

I set my token and my project ID.

node -v v10.16.3

Thanks for the help

leoclipet avatar Oct 09 '19 19:10 leoclipet

I guess there is some error in the json from Lokalise? Not something this starter can fix I suppose :/

dobromir-hristov avatar Oct 09 '19 19:10 dobromir-hristov

That is the JSON from lokalise

{
    "test": {
        "translation": "test",
        "notes": ""
    }
}

Would you know a way to debug the response ? I am able to grab the transaltion using the CLI TOOL and lokalise export command

leoclipet avatar Oct 09 '19 19:10 leoclipet