Unexpected token * in JSON at position 0
This error occurs when the feed format is set to JSON in the Data Mapping section, but the feed does not contain valid JSON.
This error means that Stockeo is trying to process the feed as JSON, but the feed does not start with valid JSON data.
The * represents the character found at the beginning of the feed. It can be any character other than { or [, which are valid starting characters for a JSON document.

How to fix it
Check the following:
Check the feed format
Make sure JSON is selected in the Data Mapping section only if the feed actually contains JSON data. If the feed uses another format, select the appropriate format instead.
Check the feed response
If the feed is retrieved through an API, the API may return an error page instead of JSON. For example, an HTML error page starts with:
In this case, Stockeo may return:
Check the API response and make sure that it returns valid JSON. If it returns an error page, contact the API provider to resolve the issue.
Last updated