Page 1 of 1

All API calls return empty page

Posted: Mon Jan 19, 2015 5:50 am
by cerw
Hello,

I am trying to write script to manage ny VestaCP pannels but all API return blank page? How to troubleshoot this? DO i need to enable specialy API calls?

thanks
Petr

Re: All API calls return empty page

Posted: Mon Jan 19, 2015 8:49 am
by skurudo
Can you show examples may be?

Re: All API calls return empty page

Posted: Sat Jan 31, 2015 2:47 am
by Steven
Do you have curl_exec enabled in your PHP config?

Re: All API calls return empty page

Posted: Wed Sep 09, 2015 10:15 pm
by xceedit
This happens to me as well on a brand new install on CentOS 6.6. I have a valid SSL.

WHMCS module fails with error: Order Accept Encountered Problems
Log shows: Module Create Failed - Service ID: 1 - Error:
Module log shows request : https://cp.xceedit.com:8083/api/user=ad ... n&arg6=Doe

When I try that url directly, I get a "not found" error. I then try this url and get a blank page:
https://cp.xceedit.com:8083/api/?user=a ... n&arg6=Doe

No matter what I try, I get a blank page.

Any idea what I can do to debug?

Re: All API calls return empty page

Posted: Tue Feb 02, 2016 10:21 am
by burgoyn1
I am experiencing this same issue. I have the control panel installed and every time I make a request to it my curl request just hangs. I have gone through and tried to debug it but have come up short. I am using WHMCS and the recommended plugins. Any thoughts?

Edit

So for anyone else that has this issue there is nothing wrong with the API. Most likely your servers firewall is blocking the request from going through. Once I allowed all of my servers to communicate with each other with no blocking, then it started to work just fine.

Re: All API calls return empty page

Posted: Fri Sep 23, 2016 12:43 pm
by skurudo
First steps to make good docs for all of us, guys! ;-)

API documentation and examples:
http://vestacp.com/docs/API.pdf

CLI commands list and descriptions:
http://vestacp.com/docs/CLI.txt