Hi,
We are creating a power automate flow to manage dinamically content of Entra ID groups. Usage of Entra ID connectors is not considered for security reasons. Instead of we use HTTP request with a bearer token obtained on the flow in a previous action.
We have no problems callng GET Graph API methods using the HTTP Request action, but when a POST method is called using a body json payload an annyoing 411 error message does appear.
E.g
Power Automate - HTTP Request - Raw Input (tested properly in POSTMAN successfully)
{
"uri": "https://graph.microsoft.com/v1.0/groups/69fe1ae3-cd9f-4541-8b6a-69cfd562e1a8/members/$ref",
"method": "POST",
"headers": {
"Content-Type": "application/json",
"Authorization": "*sanitized*"
},
"body": {
"@odata.id": "https://graph.microsoft.com/v1.0/directoryObjects/1f0109d2-d843-40b8-bf67-8ec04f2785e7"
}
}
Power Automate - HTTP Request - Output
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Length Required</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Length Required</h2>
<hr><p>HTTP Error 411. The request must be chunked or have a content length.</p>
</BODY></HTML>
A quick google search suggest trying to disable the HTTP action feature named "Allow chunking" but issues seems to appear anyway
Any idea about how to handle this error?
Many Thx