web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to Retrieve Detail...
Power Automate
Unanswered

How to Retrieve Detailed Error Information for "413 Entity Too Large" in HTTP Response

(1) ShareShare
ReportReport
Posted on by 2

Hi Microsoft Community,

 

I'm currently using Power Automate Workflow "Post to a channel when a webhook request is received" . I encountered an issue where large messages cause a "413 Entity Too Large" error. While I can see the error details on the Power Automate Workflow history page, I'm unable to retrieve this information directly from the HTTP response in my code.

 

SandhiyaSiv_0-1721124321324.png

 

Here’s a snippet of the code I’m using to send the request:

 

 

using (HttpClient client = new HttpClient(handler))
{
 if (teamsChannelSettings.TeamsWebHook != null)
 {
 client.BaseAddress = new Uri(teamsChannelSettings.TeamsWebHook);
 }

 HttpRequestMessage request = new HttpRequestMessage(HttpMethod.Post, string.Empty)
 {
 Content = new StringContent(adaptiveCardJsonString, Encoding.UTF8, "application/json")
 };

 HttpResponseMessage response = client.SendAsync(request).Result;

 return response;
}

 

 

Here is the response I get when the request is too large:

 

 

StatusCode: 202, ReasonPhrase: 'Accepted', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
{
 Pragma: no-cache
 x-ms-workflow-run-id: 085848048607070941545...
 x-ms-correlation-id: 447ddbe5-fc59-460a-84b6-219...
 x-ms-client-tracking-id: 08584804860707094154508...
 x-ms-trigger-history-name: 085848048607070941545...
 x-ms-execution-location: westeurope
 x-ms-workflow-system-id: /locations/westeurope/scaleunits/prod-14/workflows/25eb736c4dfe441983f6b..
 x-ms-workflow-id: 25eb736c4dfe441983f6...
 x-ms-workflow-version: 0858480574339817...
 x-ms-workflow-name: 396dce14-048f-44ed-af42-83..
 x-ms-tracking-id: 447ddbe5-fc59-460a-84b6-2191363..
 x-ms-ratelimit-burst-remaining-workflow-writes: 68
 x-ms-ratelimit-remaining-workflow-download-contentsize: 49556480
 x-ms-ratelimit-remaining-workflow-upload-contentsize: 49492340
 x-ms-ratelimit-time-remaining-directapirequests: 4615247
 x-ms-request-id: westeurope:447ddbe5-fc59-460a-84b6..
 Strict-Transport-Security: max-age=31536000; includeSubDomains
 Cache-Control: no-cache
 Date: Tue, 16 Jul 2024 09:06:54 GMT
 Content-Length: 0
 Expires: -1
}

 

 

 

We are receiving the same response for various failure cases, such as when the Adaptive Card JSON format is incorrect. Therefore, Please suggest how to determine the specific reason for the failure in response.

Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard