dubloons
dubloons

Reputation: 1140

Authorize.net for Magento throwing "unable to read response or response is empty"

We have a 1.6 Magento site that is sending out "Payment Transaction Failed" emails. The server is throwing the error "unable to read response or response is empty". We are using the Authorize.net payment gateway. It's been working just fine and there have been no changes to the site. What could be causing this error?

Upvotes: 1

Views: 5101

Answers (1)

Pablo
Pablo

Reputation: 547

This error message, exception, is thrown here Zend_Http_Client around line 993 If you take a look at the code, it means that the response could not be read, possibly because of a timeout, network glitch or something like that.

Here is the code snippet

$response = $this->adapter->read();
if (! $response) {
    /** @see Zend_Http_Client_Exception */
    #require_once 'Zend/Http/Client/Exception.php';
    throw new Zend_Http_Client_Exception('Unable to read response, or response is empty');
}

Upvotes: 1

Related Questions