This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-06-03
Channels
- # babashka (17)
- # beginners (166)
- # calva (97)
- # cider (4)
- # clara (2)
- # clj-kondo (46)
- # cljsrn (5)
- # clojure (334)
- # clojure-canada (1)
- # clojure-dev (144)
- # clojure-europe (14)
- # clojure-germany (5)
- # clojure-nl (10)
- # clojure-spec (1)
- # clojure-uk (46)
- # clojurescript (50)
- # conjure (1)
- # core-async (52)
- # core-typed (5)
- # cursive (3)
- # datomic (3)
- # emacs (11)
- # figwheel (16)
- # figwheel-main (9)
- # fulcro (29)
- # graalvm (19)
- # graphql (14)
- # helix (46)
- # hoplon (4)
- # hugsql (2)
- # jobs (2)
- # jobs-discuss (1)
- # juxt (15)
- # kaocha (6)
- # off-topic (9)
- # pedestal (7)
- # portkey (7)
- # re-frame (10)
- # reagent (29)
- # shadow-cljs (13)
- # spacemacs (70)
- # sql (13)
- # tools-deps (26)
- # xtdb (23)
I find that when I am attempting to reload a handler with pedestal I also need to re-evaluate the service that calls the handler for the changes to take effect. Are there any tips to bypass having to reload the service that calls the handler ?
@jdkealy for development mode, change your routes to (fn [] (expand-routes (deref #'my-routes))
in the service-map (instead of the default, something like: (expand-routes my-routes)
)
hey folks: here is my routes and the logs http://paste.debian.net/1149907/
Is this code in a public repo somewhere? I'd like to repro.
hello. I am using pedestal and seeing some weird behaviour, when I catch an exception the interceptor chain restarts instead of returning my response
(catch java.util.concurrent.ExecutionException e
(log/info :msg "return error")
(assoc context :response
{:status 408
:body {:status "error"
:message (format "Operation Timed out %d seconds" wait-time)}}))
and the logs look like
00:58:50.511 [qtp463993419-109] INFO payment-gateway.routes.collection - {:msg "valid public key ?", :line 20}
00:58:50.525 [qtp463993419-109] INFO payment-gateway.routes.collection - {:msg "valid referency id ?", :line 40}
00:58:50.621 [qtp463993419-109] INFO payment-gateway.routes.collection - {:msg "create payment", :line 119}
00:58:52.667 [qtp463993419-109] INFO payment-gateway.routes.collection - {:status :accepted, :line 122}
00:58:52.667 [qtp463993419-109] INFO payment-gateway.routes.collection - {:msg "process request", :line 125}
00:59:30.555 [qtp463993419-109] INFO payment-gateway.routes.collection - {:msg "return error", :line 136}
00:59:30.565 [qtp463993419-110] INFO payment-gateway.routes.collection - {:msg "valid public key ?", :line 20}
00:59:30.566 [qtp463993419-110] INFO payment-gateway.routes.collection - {:msg "valid referency id ?", :line 40}
As you can see the request starts on thread qtp463993419-109
but when I return, it. instead restarts on a new thread qtp463993419-110
Has anyone experienced this before or what could be going on ?