API does not work anymore

ISOS6

Verified User
Joined
May 7, 2009
Messages
322
Location
Erbil, Tarin Hills, Iraq
Hello!

In my previous thread, I also mentioned that there is something wrong with the API.

Have there been any changes in this area? API does not work anymore. Can not connect to the server for some reason.
 
Is anyone else having problems with API use?

Did you make any recent updates or changes?

Jeff
 
Can't say I do, accounts are being disabled/reactivated fine.

Although, I did manage to ban my own billing server from a DA server once, turned out I use the all_pre.sh to limit admin login by IP, and as the account I needed to get via API was a reseller account, I blocked myself out :) Wasn't funny at the time, but now I can laugh.
 
I have now tested somthing, it makes me mad. I have not changed/updated somthing last month.

Tested with 3 servers now
Server 1
Server 2
Server 3

Server 1 -> Server 2 | OK
Server 1 -> Server 3 | Not OK
Server 2 -> Server 3 | OK

It is not Firewall issue, because every other connections work pretty. Only (https://IP:PORT) does not work. When i try to use file_get_contents("https://IP: DA-PORT") returns false, https://IP returns true. So somthing is wrong with DA between Server 1 and 3.

Log file
[Wed Jul 31 00:53:53 2013] [error] [client xx.xx.xx.xx] PHP Warning: file_get_contents(): SSL: Connection reset by peer in /home/nxxxxufel/domains/server1.tld/public_html/test.php on line 14
[Wed Jul 31 00:53:53 2013] [error] [client xx.xx.xx.xx] PHP Warning: file_get_contents(): Failed to enable crypto in /home/xxxx/domains/server1.tld/public_html/test.php on line 14
[Wed Jul 31 00:53:53 2013] [error] [client xx.xx.xx.xx] PHP Warning: file_get_contents(https://server3.tld:2222): failed to open stream: operation failed in /home/xxxx/domains/server1.tld/public_html/test.php on line 14
 
Last edited:
Absolutely unbelievable! I ran Server 3 without SSL, and then I got an error message that the IP is blacklisted. IP of server 1 was blacklisted. Now everything works normally again!
 
Last edited:
I have already done it, found out quickly here on the forum.
I now have white listed IP addresses.

Thanks for your respons, Peter and Jeff!
 
Back
Top