Custom connector returns empty response body when used in canvas app
We run into a strange problem when using a custom connector to a REST API, and we hope anybody here can help us!
A call to the API should return a JSON object, and when we test the custom connector it works fine. The schema is validated correctly, status 200 is returned and the response body contains the object we want.
When we use the connector in a canvas app however, we get the message "The data returned into the response is invalid. Response data should be a valid JSON object."
In the Power Apps Monitor we see that the response body is empty when run it from the app: