devel / PowerDNS-API

HTTP API for the PowerDNS Database
34 stars 7 forks source link

PowerDNS::API::Handler Error #35

Open x1hash opened 11 years ago

x1hash commented 11 years ago

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.

christecc commented 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.

christecc commented 11 years ago

Modified Controller.pm and changed: $self->render_text($json->encode($data), status => $status); to: $self->render(text => $json->encode($data), status => $status);