Data Error - Invalid Item in Module Output

Hey!
Currently, I’m trying to create a lead in my app using Make Custom App. I have created a module that retrieves some data and calls my endpoint. Even though it works in my system, when it returns to Make, I receive this error: "Invalid module output. Expected Object, but found String.

I already checked if my app returns a string, but it doesn’t. It returns a JSON, as shown in this Postman print:

However, when I check Make Dev Tools, it reads my JSON structure as a string:

These are my Make code:

Interface:

Your API might return a content type text not json.
You can either modify your API response header (if you are able to) or use parseJSON.
see here for documentation : https://integromat.gitbook.io/apps/other/processing-of-json-strings-inside-a-json-object

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.