This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-05-30
Channels
- # announcements (3)
- # aws (5)
- # beginners (71)
- # boot (7)
- # calva (74)
- # cider (6)
- # clj-kondo (2)
- # cljs-dev (5)
- # clojars (6)
- # clojure (84)
- # clojure-dev (7)
- # clojure-europe (1)
- # clojure-italy (23)
- # clojure-nl (43)
- # clojure-sanfrancisco (1)
- # clojure-spec (4)
- # clojure-uk (173)
- # clojurebridge (1)
- # clojurescript (14)
- # cursive (44)
- # datomic (9)
- # duct (2)
- # emacs (2)
- # fulcro (4)
- # graalvm (4)
- # graphql (27)
- # hoplon (6)
- # keechma (50)
- # off-topic (3)
- # other-languages (8)
- # pathom (2)
- # pedestal (14)
- # planck (5)
- # re-frame (3)
- # reitit (6)
- # ring (2)
- # robots (2)
- # spacemacs (9)
- # tools-deps (15)
- # vim (44)
@worlds-endless about the redirect, currently, there is no option not to redirect, but there could be. Please write a issue about that if you still need it. I think you can do it now with a option :paths {"/index.html" <<resource-response-here>>}
to the create-resource-handler
.
Hey. I'm having an issue where an exception is being hidden behind a Malformed application/edn in :muuntaja/encode
500.
(def handle-exceptions
(exception/create-exception-middleware
(merge exception/default-handlers
{org.postgresql.util.PSQLException parse-psql-error
::exception/default (fn [e req]
(let [data (or (ex-data e) {})]
{:status 400
:body (merge {:type (type e)
:message (.getMessage e)}
data)}))
:stripe-error (fn [e req]
(let [data (ex-data e)]
(error e)
{:status (:status data)
:body (merge {:message (.getMessage e)}
data)}))
:error (fn [e req]
(let [data (ex-data e)]
{:status (:status data)
:body (merge {:message (.getMessage e)}
data)}))})))