This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-10-13
Channels
- # beginners (14)
- # boot (108)
- # carry (6)
- # cider (28)
- # cljs-dev (107)
- # cljsrn (32)
- # clojars (4)
- # clojure (62)
- # clojure-austin (15)
- # clojure-berlin (1)
- # clojure-brasil (3)
- # clojure-chicago (1)
- # clojure-dev (9)
- # clojure-greece (2)
- # clojure-italy (4)
- # clojure-nl (1)
- # clojure-poland (2)
- # clojure-portugal (1)
- # clojure-russia (24)
- # clojure-spec (63)
- # clojure-uk (30)
- # clojurescript (123)
- # cursive (13)
- # data-science (1)
- # datascript (1)
- # datomic (27)
- # devcards (11)
- # dirac (1)
- # emacs (5)
- # events (4)
- # hoplon (27)
- # jobs (3)
- # juxt (3)
- # leiningen (11)
- # off-topic (18)
- # om (46)
- # om-next (7)
- # onyx (50)
- # pedestal (6)
- # portland-or (8)
- # proton (16)
- # re-frame (38)
- # reagent (21)
- # ring-swagger (14)
- # specter (46)
- # untangled (116)
- # vim (46)
- # yada (22)
Hi all, I was running into a bizarre issue with Compojure-api yesterday and was hoping I could get some help getting to the bottom of it.
We just updated from version 0.21.0 to 1.8.0 and everything was working except for one PUT method. It returns either a 200 or a 201 code. When it should be returning a 201, it instead returns a 500 code with the error-body :error (not (map? nil))
There was nothing in the server logs that indicated an error; no exceptions or ERRORS logging
Lastly, this does not happen if I use compojure-api v. 1.3.0, but occurs in every version since.
There is no such compojure-api version
That error body says that the response body doesn't validate against response schema
Have you declared response schemas for both 200 and 201 responses?
hmm, the error says that the body is nil
about logging, request & response validation errors are not logged, here's how to enable those: https://github.com/metosin/compojure-api/wiki/Exception-handling#logging