Fork me on GitHub
#reitit
<
2021-11-11
>
marciol02:11:53

Hey folks, I'm getting this weird and intermittent error, and don't have any clue about how to debug it, unless I dig deep on how reitit coercion works with malli, so I hope that someone can help with it. I configured my reitit router this way:

(reitit.http/router
  routes
  {:data {:coercion (reitit.coercion.malli/create
                      {:compile malli.util/open-schema
                       :strip-extra-keys true})}})

marciol02:11:02

And I'm getting this error:

marciol02:11:11

Wrong number of args (0) passed to: malli.transform/-interceptor/fn--51913

marciol02:11:26

Don't know even where to start to debug this

marciol14:11:48

It's very strange, but the error only occurs when including coercers from reitit.http.coercion on :default-interceptors I'm using integrant, so sometimes after a repl restart, it works, but not always.