Skip to main content

json error



  • Bob Geiger

    Hi Pablo,

    Sorry to hear you're running into an issue! There are multiple possible causes for this error. Could you please post the exact API request, including the headers (minus the OAuth token), payload, and response - and I should be able to help further.



  • Permanently deleted user

    Thanks Bob.

    Sorry but I do not understand what you say to me. It's the first time I'm working with this. I may need a little help.

    I'm using a JSON file to create my catalog locally.

    In my index.html file I am calling the file like this:

    <script type="text/javascript" src="js/products.json"></script>


    I'm not using any API, just html, css and js 

  • Bob Geiger

    Hi Pablo,

    OK, no worries. The first thing I see is that the type and src values above are not compatible. If the src really is JSON, then the type should be "application/javascript" like this:

    <script type="application/javascript" src="js/products.json"></script>

    If "text/javascript" is correct, then the src should be javascript, possibly like this:

    <script type="text/javascript" src="js/products.js"></script>

    If this doesn't help, could you

    1. Post the contents of products.json? 
    2. Explain what you're ultimately trying to accomplish?

    Good luck, and I hope that helps!




Please sign in to leave a comment.

Get the latest apps and email integrations

iOS App Store Google Play Store Microsoft Store