Fork me on GitHub
#pedestal
<
2020-10-02
>
abdullahibra16:10:35

is there anybody experienced that error:

abdullahibra16:10:41

#error {
 :cause Assert failed: In row 1, there were unused elements (:route-name :bucket-update).
The whole route was: ["/buckets/:id" :patch [{:name :buckets-api.app.interceptors/valid-json?, :leave #object[buckets_api.app.interceptors$fn__1002 0x4d2950ed "buckets_api.app.interceptors$fn__1002@4d2950ed"]} #Interceptor{:name :io.pedestal.http.ring-middlewares/multipart-params} #Interceptor{:name :io.pedestal.http.body-params/body-params} #Interceptor{:name :io.pedestal.http/json-body} buckets-api.app.auth/auth buckets-api.app.routes.buckets/validate-bucket-id buckets-api.app.routes.buckets/validate-update-bucket buckets-api.app.handlers.buckets/update!] :constraints {:id #"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}"} :route-name :bucket-update]
(empty? (:remaining ctx))
 :via
 [{:type clojure.lang.Compiler$CompilerException
   :message Syntax error macroexpanding at (service.clj:72:29).
   :data #:clojure.error{:phase :execution, :line 72, :column 29, :source service.clj}
   :at [clojure.lang.Compiler$InvokeExpr eval Compiler.java 3707]}
  {:type java.lang.AssertionError
   :message Assert failed: In row 1, there were unused elements (:route-name :bucket-update).