NodeJS APM Agent HTTP 400 (Error) Not Showing on Error Graph

Kibana version: 7.11.1

Elasticsearch version: 7.11.1

APM Server version: 7.11.1

APM Agent language and version: NodeJS 10

Fresh install or upgraded from other version? Using docker

In the image above, I purposely made an error on my api. I submitted a data with missing required fields and return a http with status of 400.

Why is it not showing in the error graph? Please help.

@rodentskie Welcome! Thanks for asking.

The answer is that 4xx HTTP errors are not considered a "failure" outcome for a transaction. The idea is that if your HTTP server handled a user request, and there was a client error (i.e. a 4xx response), then there is no error from the servers point of view.

The "Error rate" section of the documentation for the Transactions view doesn't help make that clear. I'll ask some of our docs folks if that could be made clearer.

1 Like

@trentm Thank you Sir.

I also tried downing the API of my application and have a request that return failed. It is not also showing on the error graph. My application is VueJS and added it as a RUM Agent.

@rodentskie It is hard for me to guess what might be going wrong here. Are you able to put together a small case (sample code) showing a reproduction?

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