Hi, I don't know if this is possible or not, but I set an Exception Mapper to catch all exceptions, and with it a logging reporter to write the error to a database, I get the information from the request, (headers, query params, cookies, etc), but I can't get the body, the method in ServletRequest getInputStream() gives me a never ending stream without data.
This is a common endpoint for me, is there a way to get the raw request even after json serialization?
@POST
@Path("bulk")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
@ManagedAsync
public void create(
MyCustomRequest request,
@Context HttpServletRequest requestContext,
@Suspended final AsyncResponse response) {
delegate().create(request , requestContext, response);
}