aleph

2019-07-21T12:51:46.003500Z

2019-07-21T12:52:31.003800Z

Hi, Why in this minimal case when the :status is 500 wrap-request throws an Exception java.lang.String cannot be cast to manifold.stream.core.IEventSource. Otherwise if I change the status to 200 the unhandled exception does not occur anymore.

ikitommi 2019-07-21T14:28:33.008600Z

@dimovich looks good to me. If the mw also can return deferred, you need to convert 'em too.

ikitommi 2019-07-21T14:33:02.015400Z

In general, the interceptor pattern fits much better with async: the interceptor executor takes care of passing the unwrapped maps to step functions. Just need a de facto specification to interceptors, to get an ecosystem of interceptor libs, like there is for ring. #interceptors btw.

👍 1
2019-07-21T19:30:44.015800Z

@geraldodev btw, is it ok to wrap your server handler in a client middleware?

2019-07-21T20:16:46.016100Z

I'm assuming that it is. The checking that I did was , http/post's middleware defaults do identity (so no middleware at the client by default). I assumed that it was like ring (plug middleware at server). But I didnt relate the word client with with that fact that It had to be used at client.