• Resolved javfuller

    (@javfuller)


    We receive emails stating “An error occurred while attempting Constant Contact API request”

    Most errors are of this nature:

    [2022-03-08 14:57:21] API.INFO: Contact set to be created ["Extra information",[{"form":"Home page Subscribe"}]] []
    [2022-03-08 14:57:22] API.INFO: ConstantContact_API::add_contact:527  - json.field.invalid - #/_wpcf7: Property was found but is not permitted at this location. [] []
    [2022-03-08 14:57:22] API.INFO: Submitted contact data ["Extra information",[{"your-email":{"key":"your-email","val":""},"_wpcf7_version":{"key":"_wpcf7_version","val":"5.5.6"},"_wpcf7":{"key":"_wpcf7","val":"5"},"_wpcf7_recaptcha_response":{"key":"_wpcf7_recaptcha_response","val":""},"_wpcf7_locale":{"key":"_wpcf7_locale","val":"en_US"},"your-subject":{"key":"your-subject","val":""},"_wpcf7_container_post":{"key":"_wpcf7_container_post","val":"0"},"_wpcf7_posted_data_hash":{"key":"_wpcf7_posted_data_hash","val":""},"lists___c471b16eedba1e62b84418717787c27b":{"key":"lists","val":""},"email___3c59495a3edf2d27cd20fc1987544522":{"key":"email","val":"***@downtownslo.com"},"email":"***@downtownslo.com","your-name":{"key":"your-name","val":""},"_wpcf7_unit_tag":{"key":"_wpcf7_unit_tag","val":"wpcf7-f5-o1"},"list":["1914562976"]}]] []

    But we also get these:

    [2022-03-08 14:27:54] API.INFO: Contact set to be created ["Extra information",[{"form":"Home page Subscribe"}]] []
    [2022-03-08 14:27:55] API.INFO: ConstantContact_API::add_contact:527  - http.status.bad_request - Bad request. [] []
    [2022-03-08 14:27:55] API.INFO: Submitted contact data ["Extra information",[{"lists___c471b16eedba1e62b84418717787c27b":{"key":"lists","val":""},"email___3c59495a3edf2d27cd20fc1987544522":{"key":"email","val":"***@gomibo.com"},"email":"***@gomibo.com","list":["1914562976"]}]] []

    The page has a single-field CC form in the body as well as a Contact Form 7 form in the footer. It looks like it’s trying to submit content from the CF7 form into CC API.

    The constant contact form is named “Home page Subscribe”

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter javfuller

    (@javfuller)

    Note, we do not have Constant Contact integration enabled in CF7.

    Plugin Author Constant Contact

    (@constantcontact)

    Hi

    Is there a specific page where we can find the Constant Contact Form in question at? Or is it on the homepage but in a popup or similar?

    Regarding the first set of error lines, it looks like possibly some things from Contact Form 7 are being appended to the form during the submission process, and because the Constant Contact API doesn’t recognize it, the submission is getting rejected.

    Noted on not having reCAPTCHA set up for Contact Form 7 directly. However, it seems that because the site is using reCAPTCHA version 3, aka “invisible reCAPTCHA”, parts of it may be kicking in anyway.

    Not sure exactly what may be going on with the 2nd few lines of logs. That one falls on the generic side.

    Thread Starter javfuller

    (@javfuller)

    The Constant Contact form is on the home page, near the bottom in the orange section titled “Keep in Touch”.

    A clarification though:

    1. we do have reCaptcha integration enabled within CF7.
    2. We do NOT have Constant Contact integration enabled within CF7.

    If I can provide anything else to help debug this, please let me know.

    Plugin Author Constant Contact

    (@constantcontact)

    Understood and noted on the bullet points, but some clarification from us in that while you may not have the integration set up at all with CF7, I know that they only have support for reCAPTCHA version 3 which is the version being used. So while it’s our plugin adding the integration, it’s possible from what I’ve seen to have their plugin go “Oh, we’ve detected reCAPTCHA is available” and used it anyway.

    That said, it looks to be working at the moment? Perhaps the reCAPTCHA integration was turned off?

    Thread Starter javfuller

    (@javfuller)

    Captcha has not been turned off, but it does seem as one entry did go through this morning. However, others still continue to generate errors.

    [2022-03-09 11:13:52] API.INFO: Contact set to be created ["Extra information",[{"form":"Home page Subscribe"}]] []
    [2022-03-09 11:13:52] API.INFO: ConstantContact_API::add_contact:527  - json.field.invalid - #/_wpcf7: Property was found but is not permitted at this location. [] []
    [2022-03-09 11:13:52] API.INFO: Submitted contact data ["Extra information",[{"your-email":{"key":"your-email","val":""},"_wpcf7_version":{"key":"_wpcf7_version","val":"5.5.6"},"_wpcf7":{"key":"_wpcf7","val":"5"},"_wpcf7_recaptcha_response":{"key":"_wpcf7_recaptcha_response","val":""},"_wpcf7_locale":{"key":"_wpcf7_locale","val":"en_US"},"your-subject":{"key":"your-subject","val":""},"_wpcf7_container_post":{"key":"_wpcf7_container_post","val":"0"},"_wpcf7_posted_data_hash":{"key":"_wpcf7_posted_data_hash","val":""},"lists___c471b16eedba1e62b84418717787c27b":{"key":"lists","val":""},"email___3c59495a3edf2d27cd20fc1987544522":{"key":"email","val":"***@windstream.net"},"email":"***@windstream.net","your-name":{"key":"your-name","val":""},"_wpcf7_unit_tag":{"key":"_wpcf7_unit_tag","val":"wpcf7-f5-o1"},"list":["1914562976"]}]] []
    
    [2022-03-09 15:59:59] API.INFO: Contact set to be created ["Extra information",[{"form":"Home page Subscribe"}]] []
    [2022-03-09 16:00:00] API.INFO: Submitted contact data ["Extra information",[{"email___3c59495a3edf2d27cd20fc1987544522":{"key":"email","val":"***@pluginize.com"},"email":"***@pluginize.com","lists___c471b16eedba1e62b84418717787c27b":{"key":"lists","val":""},"list":["1914562976"]}]] []

    Do we feel this is an issue with recaptcha being enabled while multiple forms are on the same page? What is the cause and what is the fix so we stop getting errors ? Do we only get an error when recaptcha flags spam entries? Should I disable captcha on CF7 so not to conflict with CC’s implementation?

    Plugin Author Constant Contact

    (@constantcontact)

    Hmm. It’s very odd because from the looks of things, it seems that there is hidden form field data, from the Contact Form 7 form on the page, getting submitted alongside our form. However, I’m not managing to determine how or why.

    Are you able to recreate the error when you submit to the form yourself for testing purposes?

    If yes, do you think you could set up a separate, private page, where only one of the forms shows up and try again? Trying to confirm that it does NOT happen when only one is present.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘An error occurred while attempting Constant Contact API request’ is closed to new replies.