This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-09-29
Channels
- # announcements (1)
- # babashka (120)
- # beginners (184)
- # cider (14)
- # clara (2)
- # clj-kondo (25)
- # cljfx (9)
- # cljsrn (43)
- # clojure (46)
- # clojure-australia (2)
- # clojure-berlin (5)
- # clojure-dev (2)
- # clojure-europe (10)
- # clojure-france (3)
- # clojure-nl (1)
- # clojure-spec (14)
- # clojure-uk (30)
- # clojurescript (50)
- # code-reviews (19)
- # conjure (11)
- # core-logic (2)
- # cursive (20)
- # datascript (1)
- # datomic (74)
- # figwheel-main (1)
- # fulcro (10)
- # funcool (2)
- # graphql (1)
- # lambdaisland (1)
- # malli (2)
- # meander (22)
- # nrepl (13)
- # off-topic (28)
- # overtone (3)
- # pathom (7)
- # pedestal (4)
- # re-frame (4)
- # reagent (16)
- # reitit (4)
- # releases (1)
- # ring (8)
- # shadow-cljs (93)
- # specter (6)
- # sql (13)
- # test-check (1)
- # tools-deps (1)
- # tree-sitter (2)
- # vim (8)
- # xtdb (25)
I recently upgraded reitit and now any endpoint that takes form params using the newer Swagger UI seems to return a 500 with the response:
connection: close
server: Jetty(9.4.28.v20200408)
Does this ring a bell as to a new or existing issue? I can call the endpoint successfully with the clj-http client.It looks like there is a bug in the latest ring-swagger-ui. I can use this route
["/auth" {:post (constantly (ok {:okey "dokey"}))
:parameters {:form {:username string?}}
:responses {200 {:body {:okey string?}}}}]
and I always get the above connection close result. If I revert to metosin/ring-swagger-ui version 2.2.10 the endpoint works. I'd be happy to post a more complete example if needed.
Also, here's the output from the developer console if that's helpful:just merged in PR to fix this: https://github.com/metosin/reitit/pull/417
Great. Thanks!