cancel
Showing results for 
Search instead for 
Did you mean: 

Constant Contact API Delete List problem

Highlighted
Occasional Organizer

Constant Contact API Delete List problem

I am using Constant Contact API plugin for wordpress.
it shows me error when i try to delete any list.
***
Error: FAILED TO DELETE CONTACT LIST: Sorry there was a problem processing your request. The error given was Unknown Error.

***
Also i am getting same message for adding list, however list got added in API.

I am attaching log file and screenshot for this problem, please provide the solution ASAP.

 

 

Here is LOG FILE TEXT.

**

 

___________________________________________________________________________
Request:
____________________________________________________________________________
Request URL:
string(77) "https://api.constantcontact.com/ws/customers/hurricanegrillandwings/lists/234"

Array
(
    [body] =>
    [headers] => DELETE /ws/customers/hurricanegrillandwings/lists/234 HTTP/1.1
Host: api.constantcontact.com
Content-Type: text/html
User-Agent: justphp 2.0
Content-Length: 0
Accept: application/atom+xml
Authorization:  Basic ZDk0ZWVjOTgtM2ZjYy00ODJmLWI0YmItM2ViYmRkYjE5YzdhJWh1cnJpY2FuZWdyaWxsYW5kd2luZ3M6aDFnNXc5
Connection: Close


    [method] => DELETE
    [sslverify] =>
    [timeout] => 120
    [httpversion] => 1.1
)

___________________________________________________________________________
Response:
____________________________________________________________________________
array(4) {
  ["headers"]=>
  array(11) {
    ["connection"]=>
    string(5) "close"
    ["content-length"]=>
    string(4) "1327"
    ["content-type"]=>
    string(46) "application/atom+xml; type=entry;charset=UTF-8"
    ["date"]=>
    string(29) "Mon, 06 Jun 2011 11:09:18 GMT"
    ["cache-control"]=>

    string(78) "private, no-cache, no-store, max-age=0, must-revalidate, no-cache="Set-Cookie""
    ["etag"]=>
    string(34) ""e74219190ea66ed2516bdd4e9de17657""
    ["pragma"]=>
    string(8) "no-cache"
    ["server"]=>
    string(6) "Apache"
    ["vary"]=>
    string(26) "Accept-Encoding,User-Agent"
    ["x-powered-by"]=>
    string(0) ""
    ["set-cookie"]=>

    string(46) "BIGipServerProdAPI=189142026.6695.0000; path=/"
  }
  ["body"]=>
  string(1327) "
<entry xmlns="http://www.w3.org/2005/Atom">
  <link href="/ws/customers/hurricanegrillandwings/lists/234" rel="edit">
  <id>http://api.constantcontact.com/ws/customers/hurricanegrillandwings/lists/234</id>
 
  <updated>2011-06-06T11:09:18.059Z</updated>
  <author>
    <name>Constant Contact</name>

  </author>
  <content type="application/vnd.ctct+xml">
    <contactlist xmlns="http://ws.constantcontact.com/ns/1.0/" id="http://api.constantcontact.com/ws/customers/hurricanegrillandwings/lists/234">
      <optindefault>false</optindefault>
      <name>test</name>
      <shortname>test</shortname>
      <displayonsignup>No</displayonsignup>

      <sortorder>1</sortorder>
      <members id="http://api.constantcontact.com/ws/customers/hurricanegrillandwings/lists/234/members"></members>
      <contactcount>0</contactcount>
    </contactlist>
  </content>
  <source>
    <id>http://api.constantcontact.com/ws/customers/hurricanegrillandwings/lists</id>

   
    <link href="lists">
    <link href="lists" rel="self">
    <author>
      <name>hurricanegrillandwings</name>
    </author>
    <updated>2011-06-06T11:09:18.059Z</updated>
 
</entry>"
  ["response"]=>

  array(2) {
    ["code"]=>
    int(200)
    ["message"]=>
    string(2) "OK"
  }
  ["cookies"]=>
  array(1) {
    [0]=>
    object(WP_Http_Cookie)#31 (5) {
      ["name"]=>
      string(18) "BIGipServerProdAPI"
      ["value"]=>

      string(19) "189142026.6695.0000"
      ["expires"]=>
      NULL
      ["path"]=>
      string(1) "/"
      ["domain"]=>
      NULL
    }
  }
}

 

 

 

And Here is the Screenshot for the problem:

**

 

cc_error.png

 

2 REPLIES 2
CTCT Employee

Re: Constant Contact API Delete List problem

Hello,

 

The Constant Contact Word Press plugin is actually created by a third party developer.  He does offer support through a forum which you can find here.  While we do not normally offer support for third part plugins, I did take a look to see if I could recreate the error.

 

I am also able to recreate the problem that you are having, and did take a look at the code that is used to delete lists.  I did not see anything wrong with the code, but I am going to continue to do some research and see if I can find out what may be going on.  I also tested out the delete a list function on our API's end, and I was able to successfully delete lists from my account using the API.

 

If you have any questions please let me know.

Benjamin Soder
NOC Analyst
Constant Contact
Occasional Organizer

Re: Constant Contact API Delete List problem

Thanks for the reply.

Yes there is no issue with deletion of list after loggin in site's  account.

 

It is occuring with the Plugin.

 

I thought maybe there was some problem with the format of data sending to API,

because it is working fine with updating the list and also creating the list however showing error for creation.

 

Thanks if you can give me some solution after doing some research.

 

Tags (1)