{"action":"created","issue":{"url":"https://api.github.com/repos/jhthorsen/mojolicious-plugin-cgi/issues/29","repository_url":"https://api.github.com/repos/jhthorsen/mojolicious-plugin-cgi","labels_url":"https://api.github.com/repos/jhthorsen/mojolicious-plugin-cgi/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/jhthorsen/mojolicious-plugin-cgi/issues/29/comments","events_url":"https://api.github.com/repos/jhthorsen/mojolicious-plugin-cgi/issues/29/events","html_url":"https://github.com/jhthorsen/mojolicious-plugin-cgi/issues/29","id":351679416,"node_id":"MDU6SXNzdWUzNTE2Nzk0MTY=","number":29,"title":"Upgrade to latest Mojolocious breaks because delay helper was deprecated","user":{"login":"kensanata","id":1145712,"node_id":"MDQ6VXNlcjExNDU3MTI=","avatar_url":"https://avatars2.githubusercontent.com/u/1145712?v=4","gravatar_id":"","url":"https://api.github.com/users/kensanata","html_url":"https://github.com/kensanata","followers_url":"https://api.github.com/users/kensanata/followers","following_url":"https://api.github.com/users/kensanata/following{/other_user}","gists_url":"https://api.github.com/users/kensanata/gists{/gist_id}","starred_url":"https://api.github.com/users/kensanata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kensanata/subscriptions","organizations_url":"https://api.github.com/users/kensanata/orgs","repos_url":"https://api.github.com/users/kensanata/repos","events_url":"https://api.github.com/users/kensanata/events{/privacy}","received_events_url":"https://api.github.com/users/kensanata/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-17T17:39:16Z","updated_at":"2018-08-17T17:55:42Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"This is what I see in my Toadfarm log (and all my sites are down):\r\n```\r\n[Fri Aug 17 19:31:16 2018] [error] Can't locate object method \"delay\" via package \"Mojolicious::Controller\" at /home/alex/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1/Mojolicious/Plugin/CGI.pm line 180.\r\n```\r\n\r\nThis seems to related to this commit: https://github.com/kraih/mojo/commit/bd2a1e48c7d5ed3df4235fbe674009c386da3e0c"},"comment":{"url":"https://api.github.com/repos/jhthorsen/mojolicious-plugin-cgi/issues/comments/413942525","html_url":"https://github.com/jhthorsen/mojolicious-plugin-cgi/issues/29#issuecomment-413942525","issue_url":"https://api.github.com/repos/jhthorsen/mojolicious-plugin-cgi/issues/29","id":413942525,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzk0MjUyNQ==","user":{"login":"kensanata","id":1145712,"node_id":"MDQ6VXNlcjExNDU3MTI=","avatar_url":"https://avatars2.githubusercontent.com/u/1145712?v=4","gravatar_id":"","url":"https://api.github.com/users/kensanata","html_url":"https://github.com/kensanata","followers_url":"https://api.github.com/users/kensanata/followers","following_url":"https://api.github.com/users/kensanata/following{/other_user}","gists_url":"https://api.github.com/users/kensanata/gists{/gist_id}","starred_url":"https://api.github.com/users/kensanata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kensanata/subscriptions","organizations_url":"https://api.github.com/users/kensanata/orgs","repos_url":"https://api.github.com/users/kensanata/repos","events_url":"https://api.github.com/users/kensanata/events{/privacy}","received_events_url":"https://api.github.com/users/kensanata/received_events","type":"User","site_admin":false},"created_at":"2018-08-17T17:55:41Z","updated_at":"2018-08-17T17:55:41Z","author_association":"CONTRIBUTOR","body":"Cheap fix:\r\n\r\n```diff\r\n*** /home/alex/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1/Mojolicious/Plugin/CGI.pm~2017-06-12 21:05:08.000000000 +0200\r\n--- /home/alex/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1/Mojolicious/Plugin/CGI.pm2018-08-17 19:53:18.157190521 +0200\r\n***************\r\n*** 30,35 ****\r\n--- 30,45 ----\r\n    $args->{run} = delete $args->{script} if ref $args->{script} eq 'CODE';\r\n    $args->{pids} = $pids;\r\n  \r\n+   # FIXME: got removed in https://github.com/kraih/mojo/commit/bd2a1e48c7d5ed3df4235fbe674009c386da3e0c\r\n+   $app->helper(\r\n+     delay => sub {\r\n+       my $c  = shift;\r\n+       my $tx = $c->render_later->tx;\r\n+       Mojo::IOLoop->delay(@_)\r\n+ \t  ->catch(sub { $c->helpers->reply->exception(pop) and undef $tx })->wait;\r\n+     }\r\n+       );\r\n+   \r\n    $app->helper('cgi.run' => sub { _run($args, @_) }) unless $app->renderer->helpers->{'cgi.run'};\r\n    $app->{'mojolicious_plugin_cgi.tid'}\r\n      ||= Mojo::IOLoop->recurring(CHECK_CHILD_INTERVAL, sub { local ($?, $!); _waitpids($pids); });\r\n```"}}
{"actor":{"display_login":"kensanata"}}