This is commonly caused by the port numbers that the OpenSRS API operates on being blocked by your server's firewall. The ports used in communication to the API are 55443 and 55000 so need to be opened for both inbound and outbound connections.
216.40.33.85
199.16.173.151
64.99.176.10