This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-09-07
Channels
- # 100-days-of-code (1)
- # announcements (10)
- # aws (2)
- # beginners (134)
- # calva (25)
- # cider (29)
- # cljs-dev (43)
- # clojure (130)
- # clojure-dusseldorf (3)
- # clojure-italy (27)
- # clojure-nl (48)
- # clojure-spec (32)
- # clojure-uk (63)
- # clojurescript (75)
- # core-logic (5)
- # cursive (18)
- # datascript (2)
- # datomic (37)
- # emacs (5)
- # figwheel (13)
- # figwheel-main (55)
- # graphql (1)
- # java (7)
- # jobs (11)
- # jobs-discuss (19)
- # juxt (1)
- # leiningen (16)
- # luminus (10)
- # mount (3)
- # off-topic (40)
- # om (1)
- # onyx (1)
- # pedestal (7)
- # re-frame (40)
- # reagent (81)
- # ring (2)
- # shadow-cljs (32)
- # spacemacs (5)
- # testing (1)
- # tools-deps (48)
@cap10morgan I have not but you may be interested in https://github.com/pedestal/pedestal/issues/568
I’m seeing some really weird behaviour with io.pedestal.http/transit-json-body
and family of interceptors:
< Content-Type: application/transit+json;charset=UTF-8
< Transfer-Encoding: chunked
<
* Connection #0 to host localhost left intact
["~#list",[["^ ","~:_created","~m1421289895000","~:_id"⏎
The response should be around 250 entries, but instead it seems like the transit encoder stops after a few bytes.
This is the handler:
(defn get-sites [req]
(let [db (database/get-connection)
sites (mc/find-maps db "sites")]
(ring-resp/response sites)))
— I can verify that sites
contains all the data, and if I use instead edn-response
I get everything.The route is composed this way:
["/sites" :get (conj [http/transit-json-body] `get-sites) :route-name :sites-get]