Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

When http request size is large, HttpContext.Current is null #142

Open
ashokpatel24 opened this issue Oct 5, 2020 · 0 comments
Open

When http request size is large, HttpContext.Current is null #142

ashokpatel24 opened this issue Oct 5, 2020 · 0 comments

Comments

@ashokpatel24
Copy link

When request size is too large eg. 8MB then it fails with object reference error

{
"Message": "An error has occurred.",
"ExceptionMessage": "Object reference not set to an instance of an object.",
"ExceptionType": "System.NullReferenceException",
"StackTrace": " at WebApiThrottle.CacheRepository.FirstOrDefault(String id)\r\n at WebApiThrottle.ThrottlingCore.ProcessRequest(TimeSpan timeSpan, String id)\r\n at WebApiThrottle.ThrottlingHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)\r\n at System.Net.Http.DelegatingHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)\r\n at

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant