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

IRC log for #mojo, 2017-05-06

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

All times shown according to UTC.

Time Nick Message
01:28 jabberwok joined #mojo
01:32 cheako joined #mojo
02:38 noganex joined #mojo
02:47 tchaves joined #mojo
02:53 cheako joined #mojo
02:53 cheako joined #mojo
02:54 cheako joined #mojo
02:54 cheako joined #mojo
02:56 cheako joined #mojo
02:57 cheako joined #mojo
02:58 cheako joined #mojo
02:58 cheako joined #mojo
02:59 cheako joined #mojo
03:00 cheako joined #mojo
03:01 cheako joined #mojo
03:02 cheako joined #mojo
03:03 cheako joined #mojo
03:03 cheako joined #mojo
03:04 cheako joined #mojo
03:04 cheako joined #mojo
03:05 cheako joined #mojo
03:06 cheako joined #mojo
03:06 cheako joined #mojo
03:07 cheako joined #mojo
03:08 cheako joined #mojo
03:09 cheako joined #mojo
03:09 cheako joined #mojo
03:10 cheako joined #mojo
03:11 cheako joined #mojo
03:26 punter joined #mojo
03:56 aborazmeh joined #mojo
05:50 stryx` joined #mojo
06:28 punter joined #mojo
06:30 dod joined #mojo
06:37 dod joined #mojo
07:10 punter joined #mojo
07:35 PopeF0 joined #mojo
07:48 Vandal joined #mojo
08:47 rshadow joined #mojo
09:05 Pierre joined #mojo
09:25 punter joined #mojo
10:11 Pierre joined #mojo
10:39 sh14 joined #mojo
10:54 punter joined #mojo
11:08 irqq joined #mojo
11:11 stryx` joined #mojo
11:18 kes joined #mojo
11:26 kes Hi. I have encountered next problem
11:28 kes when application was reloaded by morbo the next request to application will emit after_dispatch event two times
11:30 pink_mist that doesn't sound right
11:30 pink_mist is there a small testcase?
11:32 kes I will show debug output and sample code. one minute please
11:34 pink_mist cannot reproduce
11:34 pink_mist I just tried
11:34 pink_mist and it doesn't do what you described.
11:34 pink_mist although, my Mojolicious version is slightly old
11:38 kes err... paste not found
11:38 kes http://paste.scsys.co.uk/561725
11:38 kes https://pastebin.com/ghL2Yjnz
11:39 pink_mist just tried again on Mojolicious 7.31, and I cannot reproduce
11:39 pink_mist something in your code is wrong, because my code doesn't do what you described.
11:41 pink_mist https://perlbot.pl/pastebin/qvaed9 is the code I used, and I uncommented line 4 to get morbo to reload
11:42 pink_mist and only one AFTER DISPATCH was shown
11:42 pink_mist when I used curl to access
11:42 pink_mist meaning it only fired once.
11:43 kes I will try to reproduce with your code
11:53 kes it is reproduced
11:53 kes https://perlbot.pl/pastebin/axw4qw
11:54 kes pink_mist
11:54 purl pink_mist is absolutely correct
11:55 pink_mist kes: that's not after_dispatch at all though
11:55 kes they run both
11:57 pink_mist I still cannot reproduce. you must have changed different things in that log of yours
11:58 kes I can not reproduce too (
11:58 kes now
12:02 kes http://joxi.net/8AnWybVIBgYDrO
12:07 kes as you can see I copy paste as is
12:07 pink_mist yes, but there's no clue what your code was at that point in time
12:08 pink_mist since you were editing things as well
12:08 pink_mist nor any clue what kind of request you were making at that point in time
12:09 pink_mist note the timestamp. it's later than the request before it
12:09 kes the code is unchanged between first and next two requests
12:09 kes line 7 (first), line 14 and line 20 (next two)
12:10 pink_mist and how were you accessing the page?
12:10 kes Firefox
12:10 kes http://localhost:3000/
12:10 pink_mist then it was probably firefox poking at things
12:10 kes in the network tab there are only one request
12:11 kes I can provide stacktrace
12:11 pink_mist firefox can do things in the background anyway I believe.
12:11 pink_mist use curl next time.
12:12 pink_mist the weird lines were a whole second later
12:12 pink_mist it must be your browser having done something a second later.
12:13 kes maybe, but strange. that occur only when application were reloaded
12:14 pink_mist if I request a favicon.ico I get the same thing in my log, and no GET stuff visible
12:14 pink_mist and I bet that's what firefox was doing
12:15 kes the stack trace
12:15 purl the stack trace is, like, probably most helpful
12:15 kes https://perlbot.pl/pastebin/tr21pt
12:15 pink_mist kes: seriously. it's firefox requesting a favicon.ico. nothing else.
12:17 kes heh, you are right. I just dump request object. Here it is part of it:
12:17 kes https://perlbot.pl/pastebin/tsuz99
12:18 kes and it requests it again, because of connection was lost while application reloading
12:19 kes pink_mist: thank you.
12:44 Pierre joined #mojo
13:14 tchaves joined #mojo
13:18 maschine joined #mojo
14:03 PryMar56 joined #mojo
14:07 itaipu joined #mojo
14:09 maschine don't you love it when previously working code suddenly stops working, and then it starts working again and you don't know how you fixed it.. :p
14:22 sri wow, no commit to the mojo repo in 12 days, wonder if that's a new record
14:26 good_news_everyon joined #mojo
14:26 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/v9VdK
14:26 good_news_everyon mojo/master 6b29ec8 Sebastian Riedel: use a more realistic example for username validation
14:26 good_news_everyon left #mojo
14:27 pink_mist maybe it's perfect :V
14:27 pink_mist yes, I'm sure
14:35 kes I need advice how to implement filter and return error in case of wrong data was supplied
14:35 kes http://stackoverflow.com/questions/43821672/how-to-implement-filter-and-setup-error-message
14:48 sri that reminds me
14:49 sri CHYC:  what happened to your firs/last/all proposal for validation filters?
14:49 sri *first
16:03 kaare_ joined #mojo
16:28 Janos joined #mojo
17:34 PopeFelix joined #mojo
18:35 marty joined #mojo
18:37 irqq joined #mojo
18:45 stryx` joined #mojo
18:58 cheako joined #mojo
19:43 irqq_ joined #mojo
19:48 rshadow joined #mojo
19:55 kaare joined #mojo
21:07 kaare_ joined #mojo
21:16 cheako joined #mojo
21:18 trone joined #mojo
21:19 marty joined #mojo
22:01 jantore joined #mojo
22:04 Janos joined #mojo
22:20 sri almost missed the perl survey results http://blog.builtinperl.com/post/perl-developer-survey-2017-results---part-1
23:14 cheako joined #mojo
23:23 jberger Going to part 2, Mojolicious was the top framework \o/

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