Title: API &amp; refresh token errors
Last modified: November 6, 2023

---

# API & refresh token errors

 *  Resolved [sailboats25](https://wordpress.org/support/users/sailboats25/)
 * (@sailboats25)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/api-refresh-token-errors/)
 * Hello,
 * It appears the plugin is not signing users up for the newsletter. I tried to 
   signup with two email addresses this morning to no avail.
 * Two errors are being triggered:
 *     ```wp-block-code
       [2023-11-03T19:27:46.630445+00:00] API.INFO: ConstantContact_API::get_lists:335 unauthorized: Unauthorized [] []
       [2023-11-03T19:43:26.209492+00:00] API.INFO: ConstantContact_API::get_lists:335 unauthorized: Unauthorized [] []
       ```
   
 * and
 * [2023-11-06T13:24:49.894289+00:00] Refresh Token:.INFO: Refresh token triggered[][][
   2023-11-06T13:24:50.091251+00:00] Error: .INFO: invalid_grant: The refresh token
   is invalid or expired. [] [] [2023-11-06T13:24:50.464235+00:00] API.INFO: A failed
   API attempt was caught and will be retried after reconnection. [] [] [2023-11-
   06T13:24:50.464621+00:00] API.INFO: Submitted contact data [“Extra information”,[{“
   email___ecd412e904309dcce66177488240b016”:{“key”:”email”,”val”:”**_[@gmail](https://wordpress.org/support/users/gmail/).
   com”},”email”:”_**[@gmail](https://wordpress.org/support/users/gmail/).com”,”
   first_name___f26872945e85a1e14358f0a5120eaf4a”:{“key”:”first_name”,”val”:”qsfgqsdfgqsdfg”},”
   lists___06b59f1c144792274520d1e43f1b5be9″:{“key”:”lists”,”val”:””},”list”:[“96e3048e-
   bf45-11ec-b1c6-fa163ec87d62″,”e1e9419e-0337-11eb-8737-d4ae529ce120″,”a72baa88-
   79aa-11ed-9f73-fa163e963dae”,”32f02928-0337-11eb-b58f-d4ae529ce120″,”c81381a2-
   0d3a-11ee-964a-fa163e470cab”]}]] []
 * Is there any way to recover any email addresses that tried to signup since Friday,
   Nov. 3?

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Constant Contact](https://wordpress.org/support/users/constantcontact/)
 * (@constantcontact)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/api-refresh-token-errors/#post-17178288)
 * Hi and thank you for the patience over the weekend.
 * Sounds like you’re on the latest version of the plugin, based on the log line
   of `A failed API attempt was caught and will be retried after reconnection.` 
   We recently set up some things behind the scenes that store failed attempts as
   an option, so once you get the connection process re-done, it’ll grab that and
   re-submit. So if you haven’t re-established the connection yet, any signups should
   have hopefully been caught and are waiting for the new connection. That’d be 
   the next step to take, re-authorize your account.
 *  Thread Starter [sailboats25](https://wordpress.org/support/users/sailboats25/)
 * (@sailboats25)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/api-refresh-token-errors/#post-17178372)
 * I de-connected & reconnected and successfully signed myself up. In terms of backloading
   emails, I see that it captured a ton of bot emails this morning (we’ve been bombarded
   with hundreds of those a day — recaptcha v2 and v3 hasn’t worked as a fix as 
   it blocked all signups so we removed that) but do not see any signups for November
   4 or 5.
 * It’s possible we didn’t have any signups either of those days, but it’d be very
   out of the ordinary as we usually grow both of those days, particularly Sundays.
 *  Plugin Author [Constant Contact](https://wordpress.org/support/users/constantcontact/)
 * (@constantcontact)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/api-refresh-token-errors/#post-17178393)
 * If you are savvy enough to check the options table in the database, we use the`
   ctct_missed_api_requests` option key for storing missed API requests. If that
   option is empty or doesn’t exist, then there’s nothing pending at the moment.
   If it does have items, then it needs processed still, and would be processed 
   next time an access token is acquired.
 *  Thread Starter [sailboats25](https://wordpress.org/support/users/sailboats25/)
 * (@sailboats25)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/api-refresh-token-errors/#post-17178404)
 * If that would appear in the debug logs, I don’t see anything there so must be
   good to go.
 *  Plugin Author [Constant Contact](https://wordpress.org/support/users/constantcontact/)
 * (@constantcontact)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/api-refresh-token-errors/#post-17178555)
 * Sounds good from our end for the moment as well.
 * Let us know if anything else comes up.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘API & refresh token errors’ is closed to new replies.

 * ![](https://ps.w.org/constant-contact-forms/assets/icon-256x256.png?rev=2951825)
 * [Constant Contact Forms](https://wordpress.org/plugins/constant-contact-forms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/constant-contact-forms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/constant-contact-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/constant-contact-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/constant-contact-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/constant-contact-forms/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Constant Contact](https://wordpress.org/support/users/constantcontact/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/api-refresh-token-errors/#post-17178555)
 * Status: resolved