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.
So, I've been successfully using the API since September using Java/okhttp3.
Since yesterday, I've been having issues. When I refresh the tokens I get a 200 response with the tokens but when I immediately use the token's provided, I get a 401 right after. Turns out to be a nasty loop.
Has anyone else experienced this?
I was just about to create a post about this.
We have been using the v3 API since some weeks ago and all of sudden it stopped working.
We have investigating our code and came to the conclusion the issue is in the API side.
We can successfully make the authorization code request and receive the code.
Then we are able to exchange the code for an access token.
We are also able to use the refresh token in order to get a new access/refresh token.
The problem is that when we use the access_token to perform API requests, like:
curl -X GET \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer INSERT_SOME_VALID_RECENT_ACCESS_TOKEN_HERE' \
-H 'Cache-Control: no-cache' \
-H 'Accept: application/json'
We always get the response:
I just posted the same issue in the 401 error forum. I have been having the same issue since yesterday. API calls were working for several days, and now I can refresh the Access Token but get a 401 error x-amzn-ErrorType: UnauthorizedException.
Sorry for the delayed response. As I'm sure you are already aware this issue has been resolved. We had a temporary issue with some certificates and they have been updated. Please let us know if you still see this problem.