cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
alekshemilten
New Member

HTTP Action always return error 416

I am having some issues with HTTP Action. 

I tried to access an external API by using HTTP Action and GET request, but it always returns an error message status of 416. 

 

 

{"errors":[{"status":"416","title":"Request header error","detail":"Unsupported media type received"}]}

 

 

I tried to call this API from Postman and managed to get the data successfully.

Any thoughts? Any help will be greatly appreciated

 

Here is the request

flow.png 

2 REPLIES 2
Gopala_Krishna
Solution Sage
Solution Sage

@alekshemilten 

The (vnd.) specifies to specific vendor type designed API, not many API's support this. This is many used when you want to query a blog site to retrieve blog articles related to a specific user along with some metadata tags like link to the blog.

 

You can use application/json instead. For information related to differences between application/json and application/vnd.api+json please check the link - Header value: application/vnd.api+json - Stack Overflow

 

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

if the information shared helps you, please consider giving a thumbs up 👍 and mark solution as resolved

@Gopala_Krishna 

 

Thanks for your reply. I did try that one and it still returns the same error message.

Do you know what else can I try to solve this?

alekshemilten_0-1614032434097.png

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,637)