When I’m trying to hit the API through postman, I’m getting a response. But when trying the same approach through Logic App, I’m getting status code as 400 and response as “bad request”. Please find the images for reference.
Postman headers
Postman response
Added headers in Logic app HTTP action
Inputs shown after Logic app is triggered
Outputs shown after Logic app is triggered
Note: The baseUrl in postman does not end with a slash “/” and hence you can see it in the image, whereas the baseUrl in the Logic app ends with a slash and hence doesn’t have it in the image provided. The URLs are identical both in postman and logic app.
I have tried changing the headers Content-Type from application/json to application/pdf but this did not work. I have also added some of the auto-generated headers from postman into logic app, but this did not work as well.
This is the first time facing such an issue and not able to resolve it. Any help would be appreciated.
Glub Tubbas Wepple is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.