Postman api connector

using the api connector, i am trying to connect to my mocked postman api:

and in postman it returns the saved json:
{“status”: “ok”, “products”:[{“id”:“1”, “product”:“ABC001”},{“id”:“2”:“product”:“ABC002”}}

when i try to run the api in the browser, the effective json is returned.
when trying to connect this api via the api connector, i get the error:
"There was an issue setting up your call.

The API call returns an empty body and you picked JSON. Please check."


If you view it in Firefox, you get a nice clue …

SyntaxError: JSON.parse: expected ‘,’ or ‘}’ after property value in object at line 1 column 70 of the JSON data

Hint: its missing a comma and a square brace.

1 Like