This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-21
Channels
- # 100-days-of-code (1)
- # announcements (2)
- # beginners (164)
- # cider (23)
- # cljs-dev (30)
- # cljsjs (11)
- # cljsrn (7)
- # clojure (116)
- # clojure-boston (1)
- # clojure-dev (20)
- # clojure-finland (2)
- # clojure-italy (4)
- # clojure-nl (1)
- # clojure-uk (10)
- # clojurescript (39)
- # core-async (19)
- # cursive (43)
- # data-science (2)
- # datomic (24)
- # emacs (10)
- # figwheel-main (20)
- # fulcro (63)
- # hoplon (7)
- # hyperfiddle (7)
- # instaparse (3)
- # kaocha (1)
- # nrepl (3)
- # off-topic (170)
- # onyx (13)
- # other-languages (3)
- # parinfer (13)
- # re-frame (39)
- # reagent (5)
- # reitit (22)
- # ring-swagger (4)
- # shadow-cljs (284)
- # spacemacs (2)
- # sql (27)
- # testing (28)
- # unrepl (2)
Hey! I'm trying to upgrade compojure-api from 1.1.11 to 2.0.0-alpha28, but I'm facing some problems. First and foremost, I'm getting this error when requesting the swagger ui:
user=> 08:53:18.052 ERROR [compojure.api.exception] (XNIO-1 task-22) Unable to resolve spec: :clojure.spec.alpha/unknown
java.lang.Exception: Unable to resolve spec: :clojure.spec.alpha/unknown
at clojure.spec.alpha$reg_resolve_BANG_.invokeStatic(alpha.clj:69) ~[spec.alpha-0.1.143.jar:na]
at clojure.spec.alpha$reg_resolve_BANG_.invoke(alpha.clj:64) ~[spec.alpha-0.1.143.jar:na]
at clojure.spec.alpha$fn__1750.invokeStatic(alpha.clj:126) ~[spec.alpha-0.1.143.jar:na]
at clojure.spec.alpha$fn__1750.invoke(alpha.clj:124) ~[spec.alpha-0.1.143.jar:na]
at clojure.spec.alpha$fn__1733$G__1728__1742.invoke(alpha.clj:121) ~[spec.alpha-0.1.143.jar:na]
at clojure.spec.alpha$specize.invokeStatic(alpha.clj:138) ~[spec.alpha-0.1.143.jar:na]
at clojure.spec.alpha$specize.invoke(alpha.clj:137) ~[spec.alpha-0.1.143.jar:na]
at clojure.spec.alpha$form.invokeStatic(alpha.clj:163) ~[spec.alpha-0.1.143.jar:na]
at clojure.spec.alpha$form.invoke(alpha.clj:159) ~[spec.alpha-0.1.143.jar:na]
at spec_tools.visitor$spec_dispatch.invokeStatic(visitor.cljc:13) ~[na:na]
at spec_tools.visitor$spec_dispatch.invoke(visitor.cljc:9) ~[na:na]
--snip--
Any idea what I should check for?Also getting 08:57:24.065 ERROR [compojure.api.exception] (XNIO-1 task-25) java.lang.Class cannot be cast to clojure.lang.IFnClassCastException
when trying to invoke any route through curl.
Aa, I think the :query-params for our routes might not be valid clojure.specs...