Error while handling request POST /StatusCode/Error/404

I'm seeing these 2 errors a lot in the server logs. Any suggestions where to start?

ERROR Error while handling request POST /StatusCode/Error/404

ERROR Line length limit 100 exceeded.

Hi @nicktagz
Please send the debug logs to the support email.

11/13/2023 11:12:42 PM 002290 ERROR     exception type: InvalidDataException
11/13/2023 11:12:42 PM 002291 ERROR     exception source: Microsoft.AspNetCore.WebUtilities
11/13/2023 11:12:42 PM 002292 ERROR     exception stack trace:    at Microsoft.AspNetCore.WebUtilities.BufferedReadStream.<ReadLineAsync>d__39.MoveNext()
11/13/2023 11:12:42 PM 002293 ERROR     --- End of stack trace from previous location where exception was thrown ---
11/13/2023 11:12:42 PM 002294 ERROR        at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
11/13/2023 11:12:42 PM 002295 ERROR        at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
11/13/2023 11:12:42 PM 002296 ERROR        at Microsoft.AspNetCore.WebUtilities.MultipartReaderStream.<ReadAsync>d__36.MoveNext()
11/13/2023 11:12:42 PM 002297 ERROR     --- End of stack trace from previous location where exception was thrown ---
11/13/2023 11:12:42 PM 002298 ERROR        at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
11/13/2023 11:12:42 PM 002299 ERROR        at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
11/13/2023 11:12:42 PM 002300 ERROR        at Microsoft.AspNetCore.WebUtilities.StreamHelperExtensions.<DrainAsync>d__3.MoveNext()
11/13/2023 11:12:42 PM 002301 ERROR     --- End of stack trace from previous location where exception was thrown ---
11/13/2023 11:12:42 PM 002302 ERROR        at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
11/13/2023 11:12:42 PM 002303 ERROR        at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
11/13/2023 11:12:42 PM 002304 ERROR        at Microsoft.AspNetCore.WebUtilities.MultipartReader.<ReadNextSectionAsync>d__20.MoveNext()
11/13/2023 11:12:42 PM 002305 ERROR     --- End of stack trace from previous location where exception was thrown ---
11/13/2023 11:12:42 PM 002306 ERROR        at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
11/13/2023 11:12:42 PM 002307 ERROR        at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
11/13/2023 11:12:42 PM 002308 ERROR        at Microsoft.AspNetCore.Http.Features.FormFeature.<InnerReadFormAsync>d__18.MoveNext()
11/13/2023 11:12:42 PM 002309 ERROR     --- End of stack trace from previous location where exception was thrown ---
11/13/2023 11:12:42 PM 002310 ERROR        at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
11/13/2023 11:12:42 PM 002311 ERROR        at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
11/13/2023 11:12:42 PM 002312 ERROR        at Microsoft.AspNetCore.Mvc.ModelBinding.FormValueProviderFactory.<AddValueProviderAsync>d__1.MoveNext()
11/13/2023 11:12:42 PM 002313 ERROR     --- End of stack trace from previous location where exception was thrown ---
11/13/2023 11:12:42 PM 002314 ERROR        at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
11/13/2023 11:12:42 PM 002315 ERROR        at Microsoft.AspNetCore.Mvc.ModelBinding.CompositeValueProvider.<CreateAsync>d__3.MoveNext()
11/13/2023 11:12:42 PM 002316 ERROR     --- End of stack trace from previous location where exception was thrown ---
11/13/2023 11:12:42 PM 002317 ERROR        at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
11/13/2023 11:12:42 PM 002318 ERROR        at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
11/13/2023 11:12:42 PM 002319 ERROR        at Microsoft.AspNetCore.Mvc.ModelBinding.CompositeValueProvider.<CreateAsync>d__2.MoveNext()
11/13/2023 11:12:42 PM 002320 ERROR     --- End of stack trace from previous location where exception was thrown ---
11/13/2023 11:12:42 PM 002321 ERROR        at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
11/13/2023 11:12:42 PM 002322 ERROR        at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
11/13/2023 11:12:42 PM 002323 ERROR        at Microsoft.AspNetCore.Mvc.Internal.ControllerBinderDelegateProvider.<>c__DisplayClass0_0.<<CreateBinderDelegate>g__Bind|0>d.MoveNext()
11/13/2023 11:12:42 PM 002324 ERROR     --- End of stack trace from previous location where exception was thrown ---
11/13/2023 11:12:42 PM 002325 ERROR        at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
11/13/2023 11:12:42 PM 002326 ERROR        at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeInnerFilterAsync>d__13.MoveNext()
11/13/2023 11:12:42 PM 002327 ERROR     --- End of stack trace from previous location where exception was thrown ---
11/13/2023 11:12:42 PM 002328 ERROR        at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
11/13/2023 11:12:42 PM 002329 ERROR        at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.<InvokeNextExceptionFilterAsync>d__24.MoveNext()
11/13/2023 11:12:47 PM 002330 DEBUG     Requested endpoint /api.sfish/jQuery-File-Upload/example/files/hello.php not found 
11/13/2023 11:12:47 PM 002331 ERROR     Error while handling request POST /StatusCode/Error/404

Thanks. But this is only a part of the debug log.
Does the debug log have info about the "Line length limit" error?

The server doesn't have such kind of endpoints. It seems to be a malformed external request.

1 Like

Thank you. It might have been a 1 off. I'll reach out if I see this again in the future.