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
Super User
Super User

@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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Kudoed Authors
Users online (2,461)