pedestal

dangercoder 2019-09-25T15:24:50.015500Z

any up to date "create-pedstal-app" tool?

nenadalm 2019-09-25T18:04:58.016100Z

there is leiningen template: https://github.com/pedestal/pedestal/tree/master/service-template but I've never used it.

1👍
2019-09-25T23:26:25.016600Z

I'm struggling with Pedestal SSE

2019-09-25T23:29:29.017100Z

I'm following the guide, but I end up getting an error that reads in part

clojure.lang.ExceptionInfo: java.lang.IllegalArgumentException in Interceptor :io.pedes
tal.http.sse/start-event-stream41958 - No implementation of method: :exec of protocol:
#'clojure.core.async.impl.protocols/Executor found for class: clojure.core.async.impl.e
xec.threadpool$thread_pool_executor$reify__8430
        at clojure.core$ex_info.invokeStatic(core.clj:4739)
        at clojure.core$ex_info.invoke(core.clj:4739)
        at io.pedestal.interceptor.chain$throwable__GT_ex_info.invokeStatic(chain.clj:3
5)
        at io.pedestal.interceptor.chain$throwable__GT_ex_info.invoke(chain.clj:32)
        at io.pedestal.interceptor.chain$try_f.invokeStatic(chain.clj:57)
        at io.pedestal.interceptor.chain$try_f.invoke(chain.clj:44)
        at io.pedestal.interceptor.chain$process_all_with_binding.invokeStatic(<http://chain.cl|chain.cl>
j:171)

2019-09-25T23:29:56.017600Z

which looks like I've either forgotten to set up a default executor, or like I'm trying to call something from a main thread that needs to be called on the side.