Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PowerDNS::API::Handler Error #35

Open
x1hash opened this issue May 17, 2013 · 2 comments · May be fixed by #37
Open

PowerDNS::API::Handler Error #35

x1hash opened this issue May 17, 2013 · 2 comments · May be fixed by #37

Comments

@x1hash
Copy link

x1hash commented May 17, 2013

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
Copy link

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
Copy link

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

aaronkondziela pushed a commit to aaronkondziela/PowerDNS-API that referenced this issue Mar 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants