aleph

borkdude 2018-03-09T10:25:01.000361Z

I’m trying a multipart request. With clj-http it works fine, but with aleph I get back a 400 with a long stacktrace I don’t understand… any clues?

jetmind 2018-03-09T12:11:12.000438Z

@borkdude which version of aleph do you use? I believe multipart requests were entirely broken in aleph until 0.4.5-alpha4

borkdude 2018-03-09T12:12:20.000186Z

[aleph “0.4.4”]

borkdude 2018-03-09T12:47:24.000117Z

I’ll try the newest…

borkdude 2018-03-09T13:00:53.000135Z

seems to work!

logistark 2018-03-09T13:21:27.000267Z

Question, regarding manifold/stream, how to apply a side effect for every msg inside an stream?

logistark 2018-03-09T13:23:26.000476Z

I was trying to do something like:

(s/map (fn [value] (do (println value) value)) stream)

mccraigmccraig 2018-03-09T13:31:04.000337Z

that should work @jimenezsaezjoseantoni

mccraigmccraig 2018-03-09T13:32:21.000169Z

though you might need to consume your stream with (s/consume <stream>) or (s/reduce (fn [c _] (inc c)) 0 <stream>) or something

logistark 2018-03-09T13:34:42.000494Z

Yep, i was testing taking manually with (s/take! stream)