plaprade / Mojocoin-Faucet

Faucet web application for Bitcoin
The Unlicense
23 stars 10 forks source link

Can't boolify Continuum::Portal #19

Open n8twj opened 10 years ago

n8twj commented 10 years ago

Attempting to setup a faucet for an ALT coin (bitcoin clone)

$ cpanm Mojolicious Mojolicious is up to date. (4.66) $ perl -v

This is perl 5, version 16, subversion 3 (v5.16.3) built for x86_64-linux

$ morbo script/mojocoin-faucet.pl -l http://*:4000 [snipped]

[Tue Jan 7 11:42:51 2014] [debug] GET "/". utf8 "\x83" does not map to Unicode at /home/jj/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/Mojo/Exception.pm line 97, <$handle> line 116. [Tue Jan 7 11:42:51 2014] [debug] Routing to controller "Mojocoin::Faucet::Controller" and action "home". Class::MOP::load_class is deprecated at /home/jj/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/x86_64-linux/Class/MOP.pm line 76. Class::MOP::load_class('JSON::RPC::Common::Procedure::Call::Version_2_0') called at /home/jj/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/JSON/RPC/Common/Message.pm line 34 JSON::RPC::Common::Message::inflate('JSON::RPC::Common::Procedure::Call', 'version', 2.0, 'id', 1, 'method', 'getbalance', 'params', 'ARRAY(0x24bd188)', ...) called at /home/jj/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/AnyEvent/JSONRPC/HTTP/Client.pm line 61 AnyEvent::JSONRPC::HTTP::Client::call('AnyEvent::JSONRPC::HTTP::Client=HASH(0x36f1c48)', 'getbalance', 'faucet') called at /home/jj/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/Continuum/BitcoinRPC.pm line 46 Continuum::BitcoinRPC::AUTOLOAD('Continuum::BitcoinRPC=HASH(0x36f1ff0)', 'faucet') called at /home/jj/Mojocoin-Faucet/script/../lib/Mojocoin/Faucet/Controller.pm line 52 Mojocoin::Faucet::Controller::home('Mojocoin::Faucet::Controller=HASH(0x34d71f8)') called at /home/jj/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/Mojolicious.pm line 157 Mojolicious::ANON(undef, 'Mojocoin::Faucet::Controller=HASH(0x34d71f8)', 'CODE(0x34e0f80)', 1) called at /home/jj/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/Mojolicious/Plugins.pm line 20 Mojolicious::Plugins::ANON() called at /home/jj/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/Mojolicious/Plugins.pm line 23 Mojolicious::Plugins::emit_chain('Mojolicious::Plugins=HASH(0x3215368)', 'around_action', 'Mojocoin::Faucet::Controller=HASH(0x34d71f8)', 'CODE(0x34e0f80)', 1) called at /home/jj/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/Mojolicious/Routes.pm line 108 Mojolicious::Routes::_action('Mojocoin::Faucet=HASH(0x3214e28)', 'Mojocoin::Faucet::Controller=HASH(0x34d71f8)', 'CODE(0x34e0f80)', 1) called at /home/jj/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/Mojolicious/Routes.pm line 196 Mojolicious::Routes::_controller('Mojolicious::Routes=HASH(0x3214cc0)', 'Mojolicious::Controller=HASH(0x34cd838)', 'HASH(0x34d1f30)', 1) called at /home/jj/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/Mojolicious/Routes.pm line 43 Mojolicious::Routes::continue('Mojolicious::Routes=HASH(0x3214cc0)', 'Mojolicious::Controller=HASH(0x34cd838)') called at /home/jj/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/Mojolicious/Routes.pm line 84 Mojolicious::Routes::dispatch('Mojolicious::Routes=HASH(0x3214cc0)', 'Mojolicious::Controller=HASH(0x34cd838)') called at /home/jj/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/Mojolicious.pm line 137 Mojolicious::dispatch('Mojocoin::Faucet=HASH(0x3214e28)', 'Mojolicious::Controller=HASH(0x34cd838)') called at /home/jj/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/Mojolicious.pm line 158 Mojolicious::ANON(undef, 'Mojolicious::Controller=HASH(0x34cd838)') called at /home/jj/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/Mojolicious/Plugins.pm line 20 Mojolicious::Plugins::ANON() called at /home/jj/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/Mojolicious.pm line 202 eval {...} called at /home/jj/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/Mojolicious.pm line 202 Mojolicious::_exception('CODE(0x34cd940)', 'Mojolicious::Controller=HASH(0x34cd838)') called at /home/jj/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/Mojolicious/Plugins.pm line 20 Mojolicious::Plugins::ANON() called at /home/jj/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/Mojolicious/Plugins.pm line 23 Mojolicious::Plugins::emit_chain('Mojolicious::Plugins=HASH(0x3215368)', 'around_dispatch', 'Mojolicious::Controller=HASH(0x34cd838)') called at /home/jj/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/Mojolicious.pm line 162 Mojolicious::handler('Mojocoin::Faucet=HASH(0x3214e28)', 'Mojo::Transaction::HTTP=HASH(0x1aad2e8)') called at /home/jj/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/Mojo/Server.pm line 13 Mojo::Server::ANON('Mojo::Server::Daemon=HASH(0x16de520)', 'Mojo::Transaction::HTTP=HASH(0x1aad2e8)') called at /home/jj/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/Mojo/EventEmitter.pm line 13 Mojo::EventEmitter::emit('Mojo::Server::Daemon=HASH(0x16de520)', 'request', 'Mojo::Transaction::HTTP=HASH(0x1aad2e8)') called at /home/jj/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/Mojo/Server/Daemon.pm line 106 Mojo::Server::Daemon::ANON('Mojo::Transaction::HTTP=HASH(0x1aad2e8)') called at /home/jj/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/Mojo/EventEmitter.pm line 13 Mojo::EventEmitter::emit('Mojo::Transaction::HTTP=HASH(0x1aad2e8)', 'request') called at /home/jj/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/Mojo/Transaction/HTTP.pm line 64 Mojo::Transaction::HTTP::server_read('Mojo::Transaction::HTTP=HASH(0x1aad2e8)', 'GET / HTTP/1.1\x{d}\x{a}Host: 23.253.71.20:4000\x{d}\x{a}Connection: keep-ali...') called at /home/jj/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/Mojo/Server/Daemon.pm line 214 Mojo::Server::Daemon::_read('Mojo::Server::Daemon=HASH(0x16de520)', '58ea4f88e77f62dca5a3912766fb983e', 'GET / HTTP/1.1\x{d}\x{a}Host: 23.253.71.20:4000\x{d}\x{a}Connection: keep-ali...') called at /home/jj/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/Mojo/Server/Daemon.pm line 194 Mojo::Server::Daemon::ANON('Mojo::IOLoop::Stream=HASH(0x1d8f230)') called at /home/jj/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/Mojo/EventEmitter.pm line 31 eval {...} called at /home/jj/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/Mojo/EventEmitter.pm line 31 Mojo::EventEmitter::emit_safe('Mojo::IOLoop::Stream=HASH(0x1d8f230)', 'read', 'GET / HTTP/1.1\x{d}\x{a}Host: 23.253.71.20:4000\x{d}\x{a}Connection: keep-ali...') called at /home/jj/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/Mojo/IOLoop/Stream.pm line 118 Mojo::IOLoop::Stream::_read('Mojo::IOLoop::Stream=HASH(0x1d8f230)') called at /home/jj/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/Mojo/IOLoop/Stream.pm line 55 Mojo::IOLoop::Stream::ANON('Mojo::Reactor::EV=HASH(0x1c18950)') called at /home/jj/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/Mojo/Reactor/Poll.pm line 109 eval {...} called at /home/jj/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/Mojo/Reactor/Poll.pm line 109 Mojo::Reactor::Poll::_sandbox('Mojo::Reactor::EV=HASH(0x1c18950)', 'Read', 'CODE(0x328de10)', 0) called at /home/jj/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/Mojo/Reactor/EV.pm line 52 Mojo::Reactor::EV::_io('Mojo::Reactor::EV=HASH(0x1c18950)', 5, 'EV::IO=SCALAR(0x328e3b0)', 1) called at /home/jj/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/Mojo/Reactor/EV.pm line 43 Mojo::Reactor::EV::ANON('EV::IO=SCALAR(0x328e3b0)', 1) called at /home/jj/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/Mojo/Reactor/EV.pm line 24 eval {...} called at /home/jj/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/Mojo/Reactor/EV.pm line 24 Mojo::Reactor::EV::start('Mojo::Reactor::EV=HASH(0x1c18950)') called at /home/jj/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/Mojo/IOLoop.pm line 129 Mojo::IOLoop::start('Mojo::IOLoop=HASH(0x1c18740)') called at /home/jj/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/Mojo/Server/Morbo.pm line 97 Mojo::Server::Morbo::_spawn('Mojo::Server::Morbo=HASH(0x152db80)') called at /home/jj/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/Mojo/Server/Morbo.pm line 67 Mojo::Server::Morbo::_manage('Mojo::Server::Morbo=HASH(0x152db80)') called at /home/jj/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/Mojo/Server/Morbo.pm line 40 Mojo::Server::Morbo::run('Mojo::Server::Morbo=HASH(0x152db80)', 'script/mojocoin-faucet.pl') called at /home/jj/perl5/perlbrew/perls/perl-5.16.3/bin/morbo line 47 [Tue Jan 7 11:42:51 2014] [error] Can't boolify Continuum::Portal. You probably want to call ->recv or ->cb to read the value. at /home/jj/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/Mojolicious/Routes.pm line 196.

[Tue Jan 7 11:42:51 2014] [debug] Template "exception.development.html.ep" not found. [Tue Jan 7 11:42:51 2014] [debug] Template "exception.html.ep" not found. [Tue Jan 7 11:42:51 2014] [debug] Rendering inline template. [Tue Jan 7 11:42:51 2014] [debug] Rendering inline template. [Tue Jan 7 11:42:51 2014] [debug] 500 Internal Server Error (0.098302s, 10.173/s). [Tue Jan 7 11:42:51 2014] [debug] Rendering template "/controller/home.html.ep". [Tue Jan 7 11:42:51 2014] [debug] Rendering template "layouts/default.html.ep". Can't call method "req" on an undefined value at /home/jj/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/Mojolicious/Controller.pm line 261. 256: } 257: $self->tx->resume; 258: return $self; 259: } 260: 261: sub req { shift->tx->req } 262: sub res { shift->tx->res } 263: 264: sub respondto { 265: my $self = shift; 266: my $args = ref $[0] ? $[0] : {@};

jprupp commented 10 years ago

Hello,

We have moved on to greener pastures (Haskoin), and we're going to have a faucet available running on top of Haskoin (soon™).

If you wish to run this faucet, you should use Mojolicious 3.8. We have problems with later versions.

Cheers

jprupp commented 10 years ago

If you wish to do some debugging for us and fix this, we will incorporate your patch in the code.