Skip to content

Actuator health endpoint could accept any media type #20880

Closed
@AlexFalappa

Description

@AlexFalappa

Faced this need while deploying a simple Spring Boot application with actuator on a container AWS Elastic Container Service and exposing it through an Elastic Load Balancer: the container was failing the load balancer health checks and was continuously restarted.

I had configurred the health check as HTTP GET on /actuator/health giving 200 OK. A look at the log revealed the health check getting instead HTTP 406.

I replicated this behaviour locally with Postman (which sends Accept:*/* by default) and looked at the Actuator code where I found that application/json is the only accepted media type.

Relaxing the media type requirement (but I don't know if this was a design choice), possibly only on the health check, could make the actuator health endpoint usable even in this scenario.

Of course defining a custom SpringMVC endpoint would be another solution for my use case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions