Open x1hash opened 11 years ago
Hello,
I am also getting this same error.
[pdnsapi@pdnstesting PowerDNS-API]$ hypnotoad -f script/powerdns_api [Thu May 23 04:02:17 2013] [info] Listening at "http://*:8080". Server available at http://127.0.0.1:8080. [Thu May 23 04:02:17 2013] [info] Manager 14977 started. [Thu May 23 04:02:17 2013] [info] Creating process id file "/home/pdnsapi/PowerDNS-API/script/hypnotoad.pid". [Thu May 23 04:02:20 2013] [error] Can't locate object method "render_text" via package "PowerDNS::API::Handler" at /home/pdnsapi/PowerDNS-API/script/../lib/PowerDNS/API/Handler.pm line 25.
Modified Controller.pm and changed: $self->render_text($json->encode($data), status => $status); to: $self->render(text => $json->encode($data), status => $status);
Hi abh,
Been struggling with this API for the last 2 days, I am currently stuck when attempting to auth to the server (locally or externally), it produces the following error:
root@x1 [~/PowerDNS-API-master]# hypnotoad -f script/powerdns_api [Fri May 17 09:41:32 2013] [info] Listening at "http://*:8080". Server available at http://127.0.0.1:8080. [Fri May 17 09:41:32 2013] [info] Manager 22738 started. [Fri May 17 09:41:32 2013] [info] Creating process id file "/root/PowerDNS-API-master/script/hypnotoad.pid". [Fri May 17 09:41:37 2013] [error] Can't locate object method "render_text" via package "PowerDNS::API::Handler" at /root/PowerDNS-API-master/script/../lib/PowerDNS/API/Handler.pm line 24.