Got a 'How do I' question? Join 'Ask a Trainer' Monday to Friday, 11am to 4pm ET for instant help and pro tips!

Random 401 errors

AdamM5071
Campaign Contributor

Hi,

 

We've been building a Constant Contact integration, and we've been experiencing a problem where seemingly at random, an access token that worked previously, and was refreshed in the last hour starts returning 401 response codes.

 

I found this post, https://community.constantcontact.com/t5/Authentication-and-Access-ie-401/Random-401-unauthorized/td... , which implies that when going over the rate limit we'll receive 401 responses. However the official docs say that we'll receive 429 responses in that case. https://v3.developer.constantcontact.com/api_guide/rate_limits.html  Could you please clarify what behavior we should expect, and maybe update the docs if they're not correct? This has been impacting our customers and forcing them to go through the OAuth flow repeatedly. We're frustrated here with the inconsistent behavior and incorrect documentation.

1 REPLY 1
Jimmy_D
Employee
0 Votes

Hello @AdamM5071,

 

Thank you for reaching out to Constant Contact's API Support.

 

The post you referenced is for our v2 API and can be verified by looking at the tags to the right of the post. You linked to our v3 API documentation which uses a different error codes.

 

If you go over your rate limits when using the v3 API you should be getting a 429 error. If you are getting a 401 error it is for a different reason most likely related the Access Token expiring.

 

Regards,

Jimmy D.

Tier II API Support Engineer


Regards,
Jimmy D.
Tier II API Support Engineer
Resources
Developer Portal

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

Visit Page

Announcements

API Updates

Join our list to be notified of new features and updates to our V3 API.

Sign Up