Re: core.async buffered channel behavior

2018-06-26 Thread craig worrall
I guess the interrupt doesn't really obliterate the fourth put attempt, and that put proceeds in background when you first take. On Wednesday, June 27, 2018 at 5:12:45 AM UTC+10, jonah wrote: > > Hi folks, > > It's been a while since I've used core.async. Documentation suggests that > > (chan n)

core.async buffered channel behavior

2018-06-26 Thread Jonah Benton
Hi folks, It's been a while since I've used core.async. Documentation suggests that (chan n) where n is a number creates a fixed size channel buffer supporting n elements. The below clj repl session seems to indicate that I can put 4 items into a 3-sized buffer: user=> (def c (async/chan 3)) #

[ANN] spec.alpha 0.2.168 and core.specs.alpha 0.2.36

2018-06-26 Thread Alex Miller
spec.alpha 0.2.168 is now available with the following changes: - CLJ-2182 Always check preds for s/& on nil input - CLJ-2178 Return resolved pred for s/& explain-data - CLJ-2177

Re: downloading of files from Dropbox using cli-http

2018-06-26 Thread Johannes
Yes, there was an authorisation problem, I have to include :with-credentials? false. Additionally the "Content-Type" has to be specified in the headers. The following call works now: (go (let [response (https://content.dropboxapi.com/2/files/download"; {:with-cre

Re: downloading of files from Dropbox using cli-http

2018-06-26 Thread Immo Heikkinen
Have you checked JS console in your browser, does is show any errors? Br, Immo ti 26. kesäk. 2018 klo 13.36 Johannes kirjoitti: > Thanks Immo, what a silly mistake! > > But after having corrected it, I get the same result as before: > > (go (let [response ( https://content.dropboxapi.com/2/file

Re: downloading of files from Dropbox using cli-http

2018-06-26 Thread Johannes
Thanks Immo, what a silly mistake! But after having corrected it, I get the same result as before: (go (let [response (https://content.dropboxapi.com/2/files/download"; {:headers {"authorization" "Bearer QfCCK..." "Dr

Re: downloading of files from Dropbox using cli-http

2018-06-26 Thread Immo Heikkinen
You have slash instead of dot after "content" in the url: " https://content/dropboxapi.com/2/files/download"; Br, Immo ti 26. kesäk. 2018 klo 10.38 Thomas kirjoitti: > I have no idea what could be wrong here... sorry. > > Thomas > > On Monday, 25 June 2018 14:38:12 UTC+2, Johannes wrote: > >>

Re: downloading of files from Dropbox using cli-http

2018-06-26 Thread Thomas
I have no idea what could be wrong here... sorry. Thomas On Monday, 25 June 2018 14:38:12 UTC+2, Johannes wrote: > > Hi, > > I am trying to download a file from Dropbox which I can get with the Http > request: > > POST /2/files/download Host: https://content.dropboxapi.com User-Agent: > api-exp