Skip to main content

Comments

3 comments

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

    Thanks,

    Bob

    0
  • Pablo

    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 

    0
  • 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!

    Bob

     

    0

Please sign in to leave a comment.

Get the latest apps and email integrations

iOS App Store Google Play Store Microsoft Store