Author Topic: 503 Service Unavailable on Creating Account With Api  (Read 10871 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
503 Service Unavailable on Creating Account With Api
« on: December 13, 2019, 06:41:56 PM »
Hello, I have started a project to create an WHMCS like system with CWP Api, so I was testing the system with my main domain and tried Account > Add function.

Simply, I sent the necessary values as mentioned in

https://docs.control-webpanel.com/docs/developer-tools/api-manager/functions/function-api-account/add

When I curl_exec($ch);

The account is being created but the php file returns with "503 Service Unavailable" code.

I could'nt find what is wrong.

Web Server Conf:

Nginx & Varnish & Apache
Nginx: 80,443
Varnish: 82
Apache: 8181,8443

Domain Settings:

Php:php-fpm
Version Php:7.3
Apache:Yes
Apache Version:2.4
Nginx:Not
Version Nginx:s/n

max_execution_time=120


Offline
*
Re: 503 Service Unavailable on Creating Account With Api
« Reply #1 on: November 17, 2020, 06:40:52 PM »
Having same problem.

Did you fixed it ?

Offline
*
Re: 503 Service Unavailable on Creating Account With Api
« Reply #2 on: April 25, 2021, 09:13:36 AM »
Did you guys manage to fix that? I'm also having same issue. thanks
Ce nouveau marchГ© offre un moyen pratique d'obtenir des rГ©sultats Г©tait efficace et bien sildenafil gГ©nГ©rique au collГЁge universitaire de mГ©decine, goyang.

Offline
*
Re: 503 Service Unavailable on Creating Account With Api
« Reply #3 on: April 30, 2022, 09:57:32 PM »
I am having the exactly same issue :(

Offline
*
Re: 503 Service Unavailable on Creating Account With Api
« Reply #4 on: May 04, 2022, 10:16:34 PM »
I investigated this a little bit.

My scenario is:

1. I have an AJAX call for a webserver that is in the same server as the CWP  instance
2. This webserver communicate with CWP API for account creation. In other words, I have a PHP script in a CWP account that will use CWP API of its own server to create other accounts.

When the account is created directly with the CWP API, it returns 503 error (I isolated this using postman to communicate directly with CWP API), this is what is the described error in this post.

But, what I noticed is that when I create the account running the AJAX request, this request also returns 503 error. So, it looks like when an account is created using CWP API, the whole server became inaccesible by a small time, and not only the API webserver. This is a major issue for me.

Offline
*
Re: 503 Service Unavailable on Creating Account With Api
« Reply #5 on: May 19, 2022, 11:07:19 AM »
probably this issue happens when using the API on the same server and using PHP-FPM as PHP-FPM services restart when creating the new account.
To avoid it you can use another server for billing using API or set that billing uses PHP-CGI.
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

Offline
*
Re: 503 Service Unavailable on Creating Account With Api
« Reply #6 on: August 16, 2023, 11:14:08 AM »
I also get the same error, when I change to another server to send the api it fails to send and returns false