cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
BertMuller1968
Regular Visitor

Custom connector returns empty response body when used in canvas app

Hello,

 

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.

 

Schermafbeelding 2021-01-25 141453.png

 

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:


"response": {
"duration": 170.35,
"size": 0,
"status": 200,
"headers": {
"Content-Length": 0,
"Date": "Mon, 25 Jan 2021 11:54:11 GMT",
"x-ms-apihub-cached-response": true
},
"body": ""
}

The connection is OK, but the body should not be empty. When run from the Power Apps test environment or from Postman, the desired object is returned without any problems.

The Swagger file from which we constructed the connector is attached to this message.

 

Would anybody know what we are doing wrong here? Any help is very much appreciated!

1 REPLY 1
BertMuller1968
Regular Visitor

Update: app works when run on phone, but still not when opened in web browser.

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (45,590)