madebyraygun / constant-contact

Basic Constant Contact plugin for Craft CMS 3.x
MIT License
5 stars 6 forks source link

Internal Server Error if Subscriber Previously Removed from CC List #10

Open motorzen opened 5 years ago

motorzen commented 5 years ago

Hi, thanks for this plugin!

This may be an odd and unlikely case, but I thought I'd report it in case there's a fix that can be reasonably effected.

Conditions for replication:

Argument 1 passed to madebyraygun\constantcontact\lib\ConstantContactClient::updateContact() must be an instance of madebyraygun\constantcontact\lib\object, instance of stdClass given, called in /home/pathtoapp/public_html/vendor/madebyraygun/constant-contact/src/services/ConstantContactService.php on line 134

There are more details to the error which I can provide if needed, but it seems pretty easy to reproduce at this time.

daltonrooney commented 5 years ago

Thanks for reporting! I’ll see if I can reproduce and add better error handling for that scenario. The most recent update was supposed to fix non-success responses from Constant Contact but apparently I missed something.