Fork me on GitHub
#reitit
<
2019-11-01
>
jimi08:11:34

Just stumbled upon pohjavirta. How do you actually pair it with muuntaja.middleware/wrap-format? I keep on getting: "ERROR: UT005071: Undertow request failed HttpServerExchange{ GET /api/health} java.lang.UnsupportedOperationException: Body class not supported: class java.io.ByteArrayInputStream". Sorry if this isn't the correct place to ask about that.

jimi08:11:36

Nvm I could set the :return to :bytes on muuntaja's instance

ikitommi11:11:23

@electricladyland156 I would not use pohjavirta yet, updated the README. There is no support for consumption of request body atm. You can return data with the :bytes Muuntaja option, but the body-parsing needs to be implemented. Best thing would be to change Muuntaja so that it can be configured to read the bodies as non-blocking, could lean on Undertows own utilities for that. Not actively developing that, if you are interesed in that, help most welcome.

dharrigan16:11:30

Any examples of using reitit/ring with CORS?