Postman api connector

using the api connector, i am trying to connect to my mocked postman api:
https://a39c6b8b-b15a-48fa-bb17-05a24e56c9ea.mock.pstmn.io/elcproducts

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.
However,
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."

Regards

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