You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
clojure.lang.ExceptionInfo: clojure.lang.ArityException in Interceptor :muuntaja.interceptor/exceptions - Wrong number of args (2) passed to: interceptor/exception-interceptor/fn--23252
#91
Closed
mynomoto opened this issue
Nov 22, 2018
· 1 comment
The function on the error handler on muuntaja.interceptor/exception-interceptor should accept two arguments instead of one as per http://pedestal.io/reference/error-handling#_error_function
I think this is a difference of implementation between pedestal and sieppari so the tests did not catch that.
The text was updated successfully, but these errors were encountered:
Hi. At 0.6.0 we decided to move from pure pedestal-based interceptor model to Sieppari-based model. Will update the README accordingly.
We are trying to push a common interceptor spec, like ring-spec, which would help to create a larger ecosystem for Clojure. There is #interceptors channell in Slack to discuss about these.
For pedestal, two options:
use the pedestal exception handling to handle Muuntaja exceptions
let's create thin wrapper pedestalify that wraps a Sieppari-style interceptors (:error, which is the only difference) into Pedestal-style interceptors
The function on the error handler on
muuntaja.interceptor/exception-interceptor
should accept two arguments instead of one as per http://pedestal.io/reference/error-handling#_error_functionI think this is a difference of implementation between pedestal and sieppari so the tests did not catch that.
The text was updated successfully, but these errors were encountered: