Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Discussion options

You must be logged in to vote

It looks like something got lost when creating this discussion - this line from strace:

09:48:44 write(2, "Mojo::Reactor::Poll: I/O watcher"..., 155Mojo::Reactor::Poll: I/O watcher failed: Too many arguments for subroutine 'main::__ANON__' (got 2; expected 1) at lib/Mojolicious/Controller.pm line 328.

... shows that your mojo app is crashing out with an exception,
and that the exception is being printed to STDERR, but it isn't in the output you pasted.

When I take your example and remove the prototype from off the callback to write_chunk,
that error goes away...
and I get the head and body text back with
carton exec -- perl ./your-software get /.

@kraih Looking at the code, this might ac…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by richardp345
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants