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);
}


-- 
You received this message because you are subscribed to the Google Groups 
"dropwizard-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dropwizard-user/02b29654-7238-4c2d-b6af-ef9bb30bf7f1n%40googlegroups.com.

Reply via email to