Hello,
I created a flow in Power Automate, and when I run a specific HTTPS request (GET method) with the HTTP module :
I get an error message in response : "Content-type '' not supported"
However I have the following Headers:
"Accept-Version": "V2",
"Authorization": "Bearer @{body('Analyser_JSON')?['access_token']}",
"Content-Type": "application/json",
"Accept": "application/json",
"OData-MaxVersion": "4.0",
"OData-Version": "4.0",
"If-None-Match": "null"
I specify that the request works very well on a Postman environment and in this flow other requests to the same API also work.
Has anyone ever faced this problem?
Thanks for your feedback.
Please read this if you're are looking for somme explanation :
https://docs.microsoft.com/azure/connectors/connectors-native-http#omitted-http-headers
Content-Type header is omitted whith GET method.
By the way, if anyone has a workaround, please let me know.
@Jhasbrouck Were you able to find a solution? I am having a similar problem with my HTTP action failing due to the content-type not supported.
Thanks for your return.
I tried with this Content-type and unfortunately I still have the problem ...
In Postman, the query always works with this Content-Type.
It is as if the value of my Content-Type disappeared when sending the request.
Hi @Jhasbrouck
This usually works for me:
"content-type" :"application/json;odata=verbose"
But there is also a good article here
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Cheers,
Damien
P.S. take a look at my new blog here