Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Dev Section Scripting / API
  • Search

All API calls return empty page

Questions regarding the API
Application Programming Interface
Locked
  • Print view
Advanced search
6 posts • Page 1 of 1
cerw
Posts: 1
Joined: Mon Jan 19, 2015 5:49 am

All API calls return empty page

Post by cerw » Mon Jan 19, 2015 5:50 am

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
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: All API calls return empty page

Post by skurudo » Mon Jan 19, 2015 8:49 am

Can you show examples may be?
Top

Steven
Posts: 15
Joined: Mon Oct 20, 2014 7:53 pm

Re: All API calls return empty page

Post by Steven » Sat Jan 31, 2015 2:47 am

Do you have curl_exec enabled in your PHP config?
Top

xceedit
Posts: 1
Joined: Wed Sep 09, 2015 10:08 pm

Re: All API calls return empty page

Post by xceedit » Wed Sep 09, 2015 10:15 pm

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?
Top

burgoyn1
Posts: 1
Joined: Tue Feb 02, 2016 10:18 am

Re: All API calls return empty page

Post by burgoyn1 » Tue Feb 02, 2016 10:21 am

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.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: All API calls return empty page

Post by skurudo » Fri Sep 23, 2016 12:43 pm

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
Top


Locked
  • Print view

6 posts • Page 1 of 1

Return to “Scripting / API”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password