This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-01-17
Channels
- # babashka (4)
- # beginners (161)
- # calva (19)
- # cider (13)
- # circleci (16)
- # clj-kondo (7)
- # cljs-dev (3)
- # cljsrn (46)
- # clojure (105)
- # clojure-australia (2)
- # clojure-nl (15)
- # clojurescript (20)
- # conjure (14)
- # core-async (8)
- # cursive (3)
- # datomic (4)
- # figwheel (5)
- # fulcro (22)
- # graalvm (1)
- # hoplon (2)
- # kaocha (3)
- # leiningen (6)
- # malli (5)
- # off-topic (19)
- # re-frame (5)
- # reagent (1)
- # reitit (43)
- # releases (1)
- # reveal (14)
- # rewrite-clj (2)
- # rum (1)
- # shadow-cljs (31)
- # spacemacs (2)
- # sql (6)
- # xtdb (8)
Hi, I have this effect:
:http-xhrio {:method :get
:uri ""
:format (ajax/json-request-format)
:body (.stringify js/JSON (:cell-data db))
:timeout 8000 ;; optional see API docs
:response-format (ajax/json-response-format {:keywords? true}) ;; IMPORTANT!: You must provide this.
:on-success [::good-http-result (assoc cell :data-value value)]
:on-failure [::bad-http-result (assoc cell :data-value value)]}
But at the backend, this is what I see for body:
:body #object[org.eclipse.jetty.server.HttpInput 0x2ff0bd56 "[email protected]"]
What you get in your :body
depends on entirely on how you've built your backend.
Given the documentation for HttpInput
, seems like it's a regular input stream - just read it and you should get the body's contents.
So I have added wrap-json-body
at the backend. But doesn't look like the body is getting picked for some reason