Skip to Content
0
Jun 23, 2023 at 04:48 AM

Error with http request using ipaas ( Microsoft Power Automate ) to service layer

71 Views

I want to send requests to an on-premise API server using "HTTP with Azure AD" and an on-premise gateway. (Using Service Layer and Basic Authentication.)

If I simply make a GET request, it works fine. (Without Body)

image.png

 If I do a POST without Body, it works fine.

image.png

However, if I do a POST with Body, it will result in a BadGateway error.

image.png

{<br>"error": {<br>"code": 500,<br>"message": "{\r\n \"error\": {\r\n \"code\": 500,\r\n \"source\": \"japan-001.azure-apim.net\",\r\n \"clientRequestId\": \"41628a7a-a8fa-45e4-a80a-b2b956ba9cea\",\r\n \"message\": \"BadGateway\",\r\n \"innerError\": {\r\n \"debugInfo\": \"clientRequestId: 41628a7a-a8fa-45e4-a80a-b2b956ba9cea\"\r\n }\r\n }\r\n}"<br>}<br>}

When I do this in POSTMAN in an on-prem environment with an API server, everything works fine.

Please let me know how I can get rid of the error.

Attachments

image.png (38.7 kB)
image.png (34.6 kB)
image.png (35.7 kB)