Fork me on GitHub
#graphql
<
2022-03-31
>
favila17:03:01

I’m using lacinia-pedestal in admittedly a very strange way: I’m embedding a pedestal chain/execute call inside of a ring handler using lacina-pedestal’s default interceptors. However I’m running into the problem that many of these interceptors return a :response add a :response to the context, but don’t terminate. It’s almost as if they assume there’s a (chain/terminate-when context :response) somewhere; without this e.g. a query parse error will still attempt to execute the query. Is there an interceptor I’m missing?

steveb8n21:03:01

I also use the chain in odd ways. had to include this interceptor to emulate an http server in some of my test infra

[io.pedestal.http.impl.servlet-interceptor :refer [terminator-injector]]

steveb8n21:03:06

maybe that’s it

favila21:03:44

ah! yeah that’s definitely it

favila21:03:59

kinda weird it’s only in the servlet impl

favila21:03:35

ok, this makes me confident that a “normal” server will have this and I’m not doing something odd

steveb8n21:03:00

glad to return the favour. you’ve helped me plenty