Unexpected response () – Please Help


I have this in my test php file:
$auth = new CF_Authentication(MY_NAME, MY_APIKEY, NULL, UK_AUTHURL);
$conn = new CF_Connection($auth);

and all I get from authenticate is:

Fatal error: Uncaught exception ‘InvalidResponseException’ with message ‘Unexpected response (): ‘ in /home/royaltyf/public_html/cloud/cloudfiles.php:213 Stack trace: #0 /home/royaltyf/public_html/testcloud.php(10): CF_Authentication->authenticate() #1 {main} thrown in /home/royaltyf/public_html/cloud/cloudfiles.php on line 213

MY_NAME and MY_APIKEY are OK – doublechecked that…

Please Help me.


I ran into a similar issue with CentOS. Is there anymore information from the error output you didn’t display? Such as:

* SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
* Closing connection #0

If you use CentOS I found the following guide will fix this issue.

Hopefully this fixes your issue. It did mine.

Rackspace Secrets

Leave a Reply

Your email address will not be published. Required fields are marked *