This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-10-19
Channels
- # announcements (7)
- # aws (4)
- # aws-lambda (1)
- # babashka (19)
- # beginners (60)
- # calva (9)
- # chlorine-clover (3)
- # cider (15)
- # clj-kondo (17)
- # clojure (34)
- # clojure-czech (1)
- # clojure-europe (96)
- # clojure-nl (2)
- # clojure-uk (46)
- # clojurescript (20)
- # css (4)
- # cursive (58)
- # data-science (3)
- # datascript (3)
- # datomic (42)
- # depstar (30)
- # dirac (4)
- # emacs (1)
- # etaoin (5)
- # events (1)
- # figwheel-main (30)
- # fulcro (6)
- # helix (9)
- # jobs (1)
- # lumo (3)
- # malli (27)
- # off-topic (15)
- # pathom (11)
- # programming-beginners (6)
- # reitit (6)
- # rewrite-clj (11)
- # shadow-cljs (14)
- # sql (1)
- # tools-deps (18)
- # utah-clojurians (3)
two days, three releases, latest being: [metosin/reitit "0.5.9"]
- https://github.com/metosin/reitit/blob/master/CHANGELOG.md. Thanks to all contributors!
Hi! I am having a problem here. A client is sending data to my reitit-server. It fails with 500 and there is an error log com.fasterxml.jackson.core.JsonParseException: Illegal character ((CTRL-CHAR, code 31)): only regular white space (\r, \n, \t) is allowed between tokens
. The payload is sent by the client to the server with gzip compression.
Is the problem here that my reitit-server does not decompress a gzipped payload?
Is there a way to dump the payload any further? In the reitit output it is only shown as :body #<org.eclipse.jetty.server.HttpInputOverHTTP@408d23e HttpInputOverHTTP@408d23e[c=0,q=0,[0]=null,s=STREAM]>
Is amalloy/ring-gzip-middleware
sufficient to decompress client payloads?
Is it set correctly to do that in this route-opts?
(def route-opts
{:reitit.middleware/transform dev/print-request-diffs ;; pretty diffs
;;:validate spec/validate ;; enable spec validation for route data
;;:reitit.spec/wrap spell/closed ;; strict top-level validation
;;:exception pretty/exception
:data {:coercion reitit.coercion.spec/coercion
:muuntaja muuntaja-instance
:middleware [gzip/wrap-gzip
swagger/swagger-feature
parameters/parameters-middleware
muuntaja/format-negotiate-middleware
muuntaja/format-response-middleware
;;exception/exception-middleware
muuntaja/format-request-middleware
coercion/coerce-response-middleware
coercion/coerce-request-middleware
multipart/multipart-middleware]}})