We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
API Gives a white page
API Gives a white page
Hello VestaCP
So I have started to work on VestaCP for my new service, using the API is a big part of this however when trying to add a user it only shows a white page, I have tried disabling the firewall (bad practice but on a test bench atm) and that did not fix the issue, I have tried a number of different things and yet nothing, I have copied the curl code from the vestaCP docs and that says it worked but did nothing (returns false so assumes correct), I have also tried inserting the http request directly and that only displays a white page
https://46.101.251.55:8083/api/?user=ad ... g4=default
I was hoping you guys could give me insight into the possible cause, if this is firewall related how would I resolve it considering I did disable iptables and added my IP to the vestaCP firewall UI etc and yet still getting the same issue.
I will look forward to your reply, and hope you can help
With Regards
Chris Russell
So I have started to work on VestaCP for my new service, using the API is a big part of this however when trying to add a user it only shows a white page, I have tried disabling the firewall (bad practice but on a test bench atm) and that did not fix the issue, I have tried a number of different things and yet nothing, I have copied the curl code from the vestaCP docs and that says it worked but did nothing (returns false so assumes correct), I have also tried inserting the http request directly and that only displays a white page
https://46.101.251.55:8083/api/?user=ad ... g4=default
I was hoping you guys could give me insight into the possible cause, if this is firewall related how would I resolve it considering I did disable iptables and added my IP to the vestaCP firewall UI etc and yet still getting the same issue.
I will look forward to your reply, and hope you can help
With Regards
Chris Russell
Re: API Gives a white page
Same problem here, i'm nothing find solutions to fix that problem.
Re: API Gives a white page
I heard something about firewall, as I am developing on my local machine and our dev box is in Germany to "simulate" the production hardware, so I assumed it could be my IP being blocked, but adding that to be allowed by the firewall does not fix the issue.
I hope there is a simple fix soon
I hope there is a simple fix soon
Re: API Gives a white page
The index.php in the /api/ directory works off the the $_POST global variable, but adding some debug to the top of that file such as:
print_r($_POST);
Shows that the POST variable is empty, even if a post is made. Somewhere in the configuration, the POST var is being stripped out...
FYI, php://input shows that the data is actually making it there....just the $_POST var is being stripped.
As of yet, not sure why.
print_r($_POST);
Shows that the POST variable is empty, even if a post is made. Somewhere in the configuration, the POST var is being stripped out...
FYI, php://input shows that the data is actually making it there....just the $_POST var is being stripped.
As of yet, not sure why.
Re: API Gives a white page
Same thing here.
I am not able to use de web API at all.
Best regards.
I am not able to use de web API at all.
Best regards.
Re: API Gives a white page
I know, this has put a halt on our development as we need VestaCP's API to perform host specific tasks.
Wondering is there any quick work around or is it an easy fix?
Wondering is there any quick work around or is it an easy fix?