500 Errors from API

Hi All,

I’m sporadically getting 500 errors when subscribing contacts to a list. Even though the API returns a 500 error, the contact is still subscribed. Any ideas on how this can be fixed or what’s causing it? I opened a ticket with Support, but they’re not hip on helping when it can’t consistently be replicated.

2024-10-08 14:40:31,333 - INFO - Subscribe Data: {‘contactList’: {‘list’: ‘17’, ‘contact’: ‘28438’, ‘status’: 1}}
2024-10-08 14:40:31,333 - DEBUG - Starting new HTTPS connection (1): redacted.api-us1.com:443
2024-10-08 14:40:32,642 - DEBUG - https://redacted.api-us1.com:443 “POST /api/3/contactLists HTTP/1.1” 500 0
2024-10-08 14:40:32,642 - ERROR - HTTP error occurred: 500 Server Error: Internal Server Error for url: https://redacted.api-us1.com/api/3/contactLists

See screenshot: 2024-10-08_14-52-07 - TechSmith Screencast - TechSmith Screencast

Hi @pharocattle - Thanks for reaching out! Abbie from ActiveCampaign here. I’m sorry you’re having trouble with this! If you haven’t already, I’d definitely recommend implementing retry logic for your calls, just as a best practice in case a contact is not added or updated correctly.

In this case, I believe I do have an idea of what might be occurring here. I am going to reopen your last request so we can confirm a few details directly in order to push this forward! You can expect to hear from me shortly.

1 Like

Thanks, alibby! I saw your email and just responded.