This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-06-07
Channels
- # announcements (1)
- # babashka (79)
- # beginners (177)
- # cider (27)
- # cljdoc (24)
- # cljs-dev (4)
- # clojure (43)
- # clojure-norway (7)
- # clojure-uk (3)
- # clojurescript (52)
- # conjure (12)
- # cryogen (1)
- # cursive (5)
- # data-science (7)
- # datahike (1)
- # datomic (1)
- # dirac (2)
- # helix (14)
- # jobs-discuss (130)
- # juxt (4)
- # liberator (4)
- # malli (2)
- # mxnet (2)
- # news-and-articles (1)
- # nrepl (19)
- # off-topic (27)
- # pathom (3)
- # practicalli (1)
- # re-frame (4)
- # reagent (2)
- # ring (7)
- # shadow-cljs (21)
- # spacemacs (11)
- # vim (38)
- # xml (2)
- # xtdb (17)
Using @weavejester’s latest ring-oauth2 and clj-time 0.15.2, I’m getting “No reader function for tag clj-time/date-time” in the callback step. It only happens in production and not in development or test. The error is similar to https://github.com/weavejester/ring-oauth2/issues/27 but my message is “for tag clj-time/date-time”. Any ideas how to work around this, or why it’s only in production? Thank you.
@aaron51 sounds like maybe the data_readers.clj
file from clj-time
didn't make it into your uberjar? How are you building that JAR?
Thanks @U04V70XH6 — it’s built with lein uberjar
.
I jar xf
’d it and find clj_time | grep reader
doesn’t show any files.
Lein is in :pedantic
mode so we had to add :exclusions
to get it to compile — could one of those have removed this file?
clj-time.core
is also in :aot
in project.clj.
We added some logging in production, and the value that fails to serialize/deserialize is #clj-time/date-time "2020-06-07T20:20:56.554Z"
Thanks for any tips!
Can you share your project.clj
?
For future reference — the fix was to specify :readers when creating cookie-store, like (cookie-store {:key admin-auth-cookie-store-key :readers *data-readers*})
(that will make sure folks can find the answer in the Clojurians Log and in Zulip: https://clojurians.zulipchat.com/#narrow/stream/180378-slack-archive/topic/ring/near/200607738 )