Fork me on GitHub
#ring
<
2017-04-11
>
kasuko00:04:12

Hey I am having an issue that the :body of my request is empty. I have read that you can only read the body of a request once. Is there a way to debug where that read is happening? It’s a pretty complex webapp with a bunch of middleware and endpoints and stuff and I can’t seem to find it via manually tracing it.

weavejester03:04:17

@kasuko There’s a BrokenInputStream class in Apache Commons I/O that you could use. Create a request and use the broken input stream as the body, then push it through your handler and use the stacktrace to see where the body was read from.

eostman13:04:58

Hello! How would one make a “path-for” a route in another namespace?

weavejester18:04:08

@eostman Not sure what you mean by that

seancorfield19:04:09

LMK if you’d rather I opened an issue directly for tracking purposes…