This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-01-22
Channels
- # announcements (28)
- # babashka (77)
- # beginners (122)
- # calva (40)
- # circleci (3)
- # clj-kondo (47)
- # cljs-dev (9)
- # clojure (119)
- # clojure-australia (1)
- # clojure-europe (88)
- # clojure-nl (3)
- # clojure-uk (33)
- # code-reviews (64)
- # core-logic (37)
- # cursive (10)
- # datomic (13)
- # emacs (1)
- # fulcro (4)
- # graalvm (1)
- # graphql (5)
- # helix (4)
- # integrant (25)
- # jobs (1)
- # jobs-rus (1)
- # off-topic (3)
- # pathom (12)
- # random (1)
- # re-frame (48)
- # reagent (1)
- # remote-jobs (1)
- # reveal (1)
- # rewrite-clj (4)
- # ring (6)
- # ring-swagger (1)
- # shadow-cljs (21)
- # sql (8)
- # tools-deps (25)
- # vim (15)
- # xtdb (12)
I have to debug ring request.
body-string
as a first wrapper read nil
from body. It works after wrap-restful-format
but then it is too late. I want to see original string sent by client. How can I do it? While it looks easy it is not 🙂
To be specific I debug JSON request, so something like this curl -H "Content-Type: application/json" -d @foo.json -i
.
I expect client send numbers in wrong format, but I can’t prove it, because it looks ring correct them, but in some magic way not everywhere.
The issue is about (wrap-json-body {:keywords? true :bigdecimals? true})
which have correct values 0.1M
, but in only one client has 0.10000000000000001M
.
params
and body-params
are qual. Only body
has a difference. It is weird.