RESTful API return response empty

I’m trying call users API via GET request and the call is returning response status code 200 but response content is empty (Http response). The content is showing ‘[]’ when I added a breakpoint (debugger) I’ve tested this API in POSTMAN, I see a proper response body in the response as expected. What could possibly be the reason for this empty response?
1 answers

Have you added the “Content-type” header with a value of “application/json” when you call the users API in Mendix?

You can set this in the HttpHeaders tab of your “Call REST” action.

If this doesn’t work, try setting the log level of REST Consume to TRACE. This will log what your application is sending to the users API and you should be able to compare it to the request that works in Postman to see if there are any differences.

Good luck!