I am trying to call an API from AWS Lambda, for this I have created a custom connector.
The test connection for the api is working fine. I have added this connector in the power apps and calling the connector on Select of the button --> onSelect= Set(response, 'test-sre1'.testsre1()). I am getting an error stating "The data returned in this response is invalid. Response data should be a valid JSON