cancel
Showing results for 
Search instead for 
Did you mean: 
Constant Contact wants to help you succeed! We’re celebrating our professional service programs on the Constant Contact Community this month and you have a chance to try one of the services for free! Learn more.

Problem add new contact sdk php

SOLVED
Occasional Participant

Problem add new contact sdk php

Fatal error: Uncaught exception 'Ctct\Exceptions\CtctException' with message 'Bad Request' in D:\Website\htdocs\_Test_Sites\site14\htdocs\includes\vendor\constantcontact\constantcontact\src\Ctct\Services\BaseService.php:97 Stack trace: #0 D:\Website\htdocs\_Test_Sites\site14\htdocs\includes\vendor\constantcontact\constantcontact\src\Ctct\Services\ContactService.php(131): Ctct\Services\BaseService->convertException(Object(GuzzleHttp\Exception\ClientException)) #1 D:\Website\htdocs\_Test_Sites\site14\htdocs\ClassDasCC.php(23): Ctct\Services\ContactService->addContact('8fc0ff02-7da1-4...', Object(Ctct\Components\Contacts\Contact)) #2 {main} thrown in D:\Website\htdocs\_Test_Sites\site14\htdocs\includes\vendor\constantcontact\constantcontact\src\Ctct\Services\BaseService.php on line 97

2 REPLIES 2
Moderator

Re: Problem add new contact sdk php

Hello @AdrianL196,

 

Based on the ContactService.php line it looks like it might be trying to add a contact using the incorrect ID. The other lines referencing BaseService.php line 97 are a bit odd since our normal SDK do not have a line 97 so I'm not sure what it might be referencing.

 

I would ensure that the code has not been altered, or if it has, that any additional code is correct. Attempt to add new contacts. If you still get the same errors then please reach out to us at webservices@constantcontact.com so we troubleshoot further.


Regards,
Jimmy D.
Tier II API Support Engineer
Highlighted
Occasional Participant

Re: Problem add new contact sdk php

Thanks for the information, I am fixed the problem, the problem consist  same list name(create list) and this was  send this problem.