Cro: libraries and tools for building reactive services in Perl 6 | cro.services/ | Logs: irclog.perlgeek.de/cro/
Set by moderator on 24 November 2017.
02:00 lizmat joined
japhb Where's the best place to file an issue for the website? I'd been just using the Cro repo issues on GH for the tutorials, but I'm finding more things in other parts of the docs. 02:32
Actually, it would be nice to have a "File an issue for this page" sort of link on each page of the website -- or even (really wishlist here), select-and-comment. 02:33
02:58 ilbot3 joined
moderator Cro: libraries and tools for building reactive services in Perl 6 | cro.services/ | Logs: irclog.perlgeek.de/cro/
03:02 lizmat joined 04:11 japhb joined 04:38 japhb joined 07:12 araralonren joined
araralonren hi 07:13
I used Cro::HTTP::Client simulate search on some site
I do a post, and get a Response from the .post method
Then I call the .body-text, and get a Promise
The Promise status is always Planned except when I set CRO_DEBUG=1
sorry CRO_TRACE=1
gist.github.com/araraloren/b714822...9ff5cd9b66
This is the POST method
Thanks
:)
And CRO_TRACE on bash on win10 is not working 07:16
I comment the error under that gist
09:28 sena_kun joined 11:46 lizmat joined
jnthn japhb: The docs live under docs/ in the cro repo 12:13
(So that repo is file to file issues on, or if you're really eager, PR :)) 12:20
Geth cro-http: 98d4ca77f0 | (Jonathan Worthington)++ | META6.json
Add Cro::HTTP::Middleware to META6.json
12:36
cro-core: 67911df242 | (Jonathan Worthington)++ | lib/Cro.pm6
Factor out trace output repeated code
12:43
cro-core: f412345f1f | (Jonathan Worthington)++ | lib/Cro.pm6
Avoid trace output throwing execptions on Windows

  `$*ERR.flush` may not work out on Windows.
jnthn That probably fixes the issue with traces that araralonren reported 12:44
12:46 lizmat joined
araralonren ok :) 12:47
jnthn araralonren: Though I guess that still leaves you with a hanging POST? 13:01
First question: are you running 0.7.1?
('cus it contained some fixes for such issues)
araralonren yeah, it 0.7.1 13:02
is
jnthn OK. Do you have (or can you make) either 1) an isolated script that reproduces the issue, or 2) the chance to run it with trace on a system without the trace output problem? 13:04
araralonren jnthn, the last version has no problem. Maybe the site what I accessed has some problem. 13:10
jnthn Hm, ok :)
araralonren thanks 13:11
jnthn, I found another problem 13:16
The post will hang on except I create Cro::HTTP::Client each time 13:17
gist.github.com/araraloren/b714822...9ff5cd9b66 13:18
The code
If I move the `$!c .= new ...` to the reset method, it will ok 13:19
jnthn OK. When passing .new, can you try also passing :!persistent?
(in TWEAK)
araralonren ok
jnthn Oh...um 13:21
'Connection' => 'keep-alive',
araralonren jnthn, works
jnthn Can you try not passing that?
araralonren ok
jnthn That may be confusing things a good bit
araralonren oh 13:22
jnthn Though we should probably detect and handle it better if so
araralonren Not working without :!persistent and 'Connection' => 'keep-alive' 13:23
jnthn Hm, OK, then it's not that
So it's something about persistent connections
araralonren oh 13:24
I found that in docs
jnthn But passing :!persistent gives you a workaround for now, at least
araralonren Hmm 13:25
It's clear now, Thanks 13:26
Geth cro: 40d04f776e | (Jonathan Worthington)++ | 2 files
Layout and grammar tweak for stubbing links
13:37
jnthn sena_kun: Just chekced the add link thing from the web UI, it seems to work nicely. :) Only one issue - the new service shows up on the overview page, but the line between the services does not show. That only appears if I restart the app. 13:38
sena_kun jnthn, hooray! I guess we can attach one more emitter to update scheme. Should I do it now? 13:39
jnthn Well, only if it's convenient for you. :) Can be next week if you want.
My goal is Cro 0.7.2 early December
sena_kun also, we probably need to update frontend readme. 13:46
it still mentions browserify instead of webpack. 13:47
jnthn ah, yes 13:48
Geth cro: 315bb03d86 | (Jonathan Worthington)++ | web-frontend/README.md
Update instructions for browserify => webpack
13:50
sena_kun \\0/
timotimo++ for fixing 404 on /stub|/logs pages. 13:51
jnthn Indeed :) 13:54
14:07 lizmat joined
sena_kun and still I see a lot of `broken pipe` messages, hmm. 14:28
timotimo <3 14:29
14:44 lizmat joined
Geth cro: c94eef5401 | Altai-man++ | 3 files
Update stubbed links as well as nodes
14:49
jnthn sena_kun++ 14:53
Nice :)
sena_kun o/ 15:04
I'd call it a day since I've somewhat overestimated my programming powers. 15:05
jnthn :) 15:06
Yeah, plus it's a Saturday
I'm also going to head afk for a bit 15:07
The craft beer store won't visit itself...
Will see if I've time to finish up Cro::HTTP::Middleware::RequestResponse later today though :)
17:31 lizmat joined