Fork me on GitHub
#luminus
<
2018-07-11
>
Charleshd07:07:16

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

Charleshd13:07:28

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.

Charleshd13:07:56

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

Charleshd13:07:33

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

Charleshd13:07:22

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

Charleshd13:07:59

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

Charleshd13:07:24

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

Charleshd14:07:20

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

felbit17:07:18

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. 😳