cancel
Showing results for 
Search instead for 
Did you mean: 

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

hkimura12
Explorer
0 Kudos
298

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)

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

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

{<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.

View Entire Topic
FELISAP
Explorer
0 Kudos

You have to save the B1_Sesion and RouteId cookies and send them in the Get header, so that it takes the session information.