errno 104 An Error Occurred

Occasional Participant

errno 104 An Error Occurred

Out of nowhere I started getting my warning emails including the error An Error Occurred from the $ccContactOBJ->lastError variable.


Here is the curl error after changing  var $curl_debug = true;


SSL read: error:00000000:lib(0):func(0):reason(0), errno 104SSL read: error:00000000:lib(0):func(0):reason(0), errno 104SSL read: error:00000000:lib(0):func(0):reason(0), errno 104


Here is the code.


            $error_tracker = "";

            $postFields = array();

            $postFields = strtolower(trim($email));

            $listAPILink = 'http://api.constantcontact.com/ws/customers/{username}/lists/2';

           

            if (!$ccContactOBJ->subscriberExists($postFields))

            {

                $postFields = 'HTML';

                $postFields = array($listAPILink);

                $contactXML = $ccContactOBJ->createContactXML(null,$postFields);

                if (!$ccContactOBJ->addSubscriber($contactXML))

                {

                    $cc_error = true;

                    $error_tracker = " 1 ";

                } else {

                    $cc_error = false;

                }

            } else {

                $currentDetails = $ccContactOBJ->getSubscriberDetails($postFields);

                $postFields = $currentDetails;

                //print_r($currentDetails);

                //$postFields[] = 'http://api.constantcontact.com/ws/customers/{username}/lists/3';

                if( in_array($listAPILink,$currentDetails) )

                {

                    $cc_error = true;

                } else {

                    $listArray = array($listAPILink);

                    foreach($currentDetails as $list)

                    {

                        //echo "here".$list."<br>";

                        $listArray[] = $list;

                    }

                    $postFields = $listArray;

                    //print_r($postFields);

                    //print_r($currentDetails);

                    $updateXml = $ccContactOBJ->createContactXML($postFields, $postFields);              

                    if (!$ccContactOBJ->editSubscriber($postFields, $updateXml))

                    {

                        $cc_error = true;

                        $error_tracker = " 2 ";

                    } else {

                        $cc_error = false;

                    }

                }

            }

           


 

3 REPLIES 3
Employee

Our API's are down at the moment which could be throwing errors for requests to Constant Contact. You can keep up to date w/ service outages at http://status.constantcontact.com. I apologize for any inconvenience this has caused.

David J

Occasional Participant

Hey David is there anyway I could be notified of this in the future?


Brad

Employee

At this time, our status page and this website would be the best way to stay up to date on the status of our APIs. I do apologize for the inconvenience, and please let me know if you have any other questions.

David J

Developer Portal

View API documentation, code samples, get your API key.

Visit Page