Fork me on GitHub
#pedestal
<
2019-09-25
>
dangercoder15:09:50

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

nenadalm18:09:58

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

👍 4
Braden Shepherdson23:09:25

I'm struggling with Pedestal SSE

Braden Shepherdson23:09:29

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(
j:171)

Braden Shepherdson23:09:56

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.