Fork me on GitHub

Yes the headers are here just before the ring anti-forgery handler.


I have a problem with buddy now. I think i'm doing something wrong, maybe you have a better understanding of what is happening than I do.


I setuped some authorizations rules with the ring middleware wrap-acces-rules and I gave a :on-error handler


My guess was the on-error handler should return a ring http response. So that's what I did, and it worked until I put a map as the response body


with a map it tells me it can't coerce body of type class clojure.lang.PersistentArrayMap .


not sure if i should ask this question on #ring or here.


Maybe the error response quits the middleware stack and the json format is never infered by wrap-formats ?


Yup, that is what is happening, applying wrap-formats over :on-error works.


Good evening, I try to deploy my Luminus app to Heroku and it keeps reminding me thoughtfully that it could not find a non empty configuration file to load. looked in the classpath (as a "resource") and on a file system via "conf" system propertyand therefore will not finish heroku run lein run migrate. I think that I might have to put a prod-config.edn somewhere? I am puzzled. It actually says:

DEBUG org.jboss.logging - Logging Provider: org.jboss.logging.Slf4jLoggerProvider
Exception in thread "main" java.lang.RuntimeException: could not start [#'myapp.config/env] due to, compiling:(/tmp/form-init4642906091586920117.clj:1:73)
` Update: Don’t mind me, I just did not provide the :database-url env. 😳