Java APM agent catch 400 as error

Kibana version: v7.12.1

Elasticsearch version: v7.12.1

APM Server version: v7.12.1

APM Agent language and version: java 1.24.0 elastic-apm-agent-1.24.0.jar

Browser version: N/A

Original install method (e.g. download page, yum, deb, from source, etc.) and version: maven

Fresh install or upgraded from other version? : fresh install

Is there anything special in your setup? : No

Description of the problem including expected versus actual behavior. Please include screenshots (if relevant):

The apm agent catch 400(org.springframework.http.converter.HttpMessageNotReadableException) as errors. I think that 400(Bad Request) is not an error. It's client side thing.

Is there any configuration for ignore such exceptions?

Steps to reproduce:

  1. String Boot
  2. Curl to server without any data

Errors in browser console (if relevant):

Provide logs and/or server output (if relevant):
stacktrace on apm ui

Required request body is missing: public **** Controller.list(, org.springframework.validation.BindingResult)

at org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor.readWithMessageConverters(RequestResponseBodyMethodProcessor.java:161)

at org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor.resolveArgument(RequestResponseBodyMethodProcessor.java:131)

at org.springframework.web.method.support.HandlerMethodArgumentResolverComposite.resolveArgument(HandlerMethodArgumentResolverComposite.java:121)

at org.springframework.web.method.support.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:170)

at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137)

at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:106)

at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:894)

at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)

Hello and welcome to our forum!

Yes, there is - ignore_exceptions.

Thank you. That is exactly what I’m looking for.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.