Microsoft.AspNetCore.Server.Kestrel.Core.BadHttpRequestException Failed method Dynatrace.OneAgent.Introspection.InterceptingStream<ReadAsync> movenext

Dilip Kolekar 0 Reputation points
2025-05-05T10:27:45.6633333+00:00

Getting exception while logging the log into the transaction tables with more than 3k requests

What did you try and what were you expecting? :

We tried with below code changes into program.cs file, but don't have luck still getting same exception.

1.

.UseKestrel(opt =>

{

opt.Limits.MinRequestBodyDataRate = null;

opt.Limits.MaxRequestBodySize = 83886080;

opt.Limits.KeepAliveTimeOut = TimeSpan.FromMinutes(10);

});

  1. Also we monitored Checkhealth endpoint into the dynatrace pointing to APIC endpoint as our application have migrated to APIM we have updated that enpoint to APIM
  2. The called Application from which we are consuming other api, for that called application we tried load testing with 100 ,1000 and 3000 requests for processing 100 and 1000 request we have not got any exceptions but by the time of processing 3000 requests we find same exception.
  3. We are suspecting the issue is coming from Dynatrace One Agent, but we are not sure where and what changes need to be done to resolve above exception
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
428 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.