The web in a box - a next generation web framework for the Perl programming language

IRC log for #mojo, 2017-03-25

| Channels | #mojo index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:13 disputin joined #mojo
00:44 aborazmeh joined #mojo
00:57 VVelox joined #mojo
01:05 tchaves joined #mojo
01:46 stryx` joined #mojo
02:23 maschine joined #mojo
03:01 dikim joined #mojo
03:25 noganex joined #mojo
03:35 kiwiroy joined #mojo
04:28 maschine joined #mojo
05:04 dboehmer_ joined #mojo
06:14 kiwiroy joined #mojo
07:46 salv0 joined #mojo
08:00 dod joined #mojo
08:09 dod joined #mojo
08:16 Vandal joined #mojo
08:23 kiwiroy joined #mojo
08:56 jabberwok joined #mojo
08:58 irqq joined #mojo
09:06 dod joined #mojo
09:09 kiwiroy joined #mojo
10:02 dexteruk_ joined #mojo
10:51 sri wow, corsair is killing it with their products these days, guess this might be my next desktop http://www.corsair.com/en-us/landing/one
10:52 sri it's like a mac pro done right
10:55 irqq_ joined #mojo
11:13 kiwiroy joined #mojo
11:36 khfeng joined #mojo
11:46 prg joined #mojo
12:12 kiwiroy joined #mojo
12:28 faraco joined #mojo
12:29 faraco Hi guys, question just to make my test happy. I have text file that I need to render with get '/FILE' => sub { my $c = shift; $c->render(template => 'LICENSE')};
12:30 faraco and in my test, I'm using $t->get_ok('/FILE')->text_is(title => 'FILE');
12:30 faraco but when I'm running test, I got the error as expected, because it template is a text file..and not html file with declared <title>FILE</title>
12:31 faraco so, how do I actually 'append' a title element to the template which is text file?
12:32 faraco I'm thinking on doing something like, $c->render(title => 'FILE', template => 'FILE');
12:33 faraco but I'm not sure that even work.
12:38 Bloke joined #mojo
13:08 dexteruk joined #mojo
13:14 aborazmeh joined #mojo
13:47 salv0 joined #mojo
14:16 dod joined #mojo
14:47 Vandal joined #mojo
14:48 sh14 joined #mojo
16:13 kiwiroy joined #mojo
16:31 rshadow joined #mojo
16:32 dexteruk_ joined #mojo
17:01 kes joined #mojo
17:05 howitdo joined #mojo
17:05 kes Give me please some hints. When I do: $self->ua->start( $tx ); Processing is stopped and worker is died by timeout. Even when it is 500.
17:06 kes Where may be the problem? I may share the code.
17:13 kiwiroy joined #mojo
17:17 PryMar56 joined #mojo
17:19 irqq joined #mojo
17:21 dod joined #mojo
18:03 kes http://paste.scsys.co.uk/557656
18:07 pink_mist well you don't give it a callback, so of course it won't do it async
18:12 kiwiroy joined #mojo
18:23 asarch joined #mojo
18:25 kes I need sync query
18:27 pink_mist then you may time out
18:32 Grinnz blocking code will block the whole worker, unless you fork it to a separate process with Mojo::IOLoop->subprocess
18:32 Grinnz better used via https://metacpan.org/pod/Mojolicious::Plugin::Subprocess in a mojo app
18:32 Grinnz but that won't get you anything over just making the UA query non blocking
18:33 Grinnz you can increase the timeouts, but anything beyond 30 seconds is usually not a good idea as browsers will start to time out
18:33 Grinnz and users don't like waiting that long
18:34 Grinnz https://metacpan.org/pod/Mojo::Server::Hypnotoad#heartbeat_timeout
18:41 whidgle joined #mojo
18:47 stryx` joined #mojo
18:51 kes Here I query PayPal. First two queries: create/execute payment always goes well. This third query is check for PayPal event ID when I receive webhook request from paypal and process it. I setup timeout 0 and wait about 10-15min. It seems the request event not sended. But I do not know how to check that
18:55 whidgle You get back the http transaction from your API call, there's $tx->req->code ...
18:55 whidgle i assume paypal sets a frowny status code when your thing fails
19:01 kes whidgle: This line of code (16) $tx->req->code never reached
19:01 kes http://paste.scsys.co.uk/557657
19:03 davido joined #mojo
19:03 dikim joined #mojo
19:12 kiwiroy joined #mojo
19:12 dave joined #mojo
19:19 FROGGS joined #mojo
19:36 ooo joined #mojo
20:12 kiwiroy joined #mojo
20:17 vicash joined #mojo
21:04 vicash left #mojo
21:13 kiwiroy joined #mojo
21:39 kiwiroy joined #mojo
21:57 disputin joined #mojo
22:10 irqq_ joined #mojo
22:18 irqq joined #mojo
22:23 stryx` joined #mojo
22:25 [0xAF] joined #mojo
23:39 kiwiroy joined #mojo
23:45 irqq_ joined #mojo

| Channels | #mojo index | Today | | Search | Google Search | Plain-Text | summary