SOLVED

Re: Implementing reCAPTCHA V3 - Getting Response Error

Go to solution
Mich_Isen2
Level 1

Implementing reCAPTCHA V3 - Getting Response Error

Hello,

I watched @SanfordWhiteman 's webinar on implementing Google reCAPTCHA V3 in Marketo. I thought I followed everything right but I'm running into this response error on my activity log when I test a failure submission. 

{ "success": false, "error-codes": [ "invalid-input-response" ] }

Screen Shot 2022-03-31 at 12.08.13 PM.png

 

From what I've read on other people getting this error-code, it's because the last fingerprint field type was wrong. But mine is a text area field type. Can someone help me figure out what I'm doing wrong?

 

I have 5 fields created:

1. 'reCAPTCHA Last User Fingerprint' which is a text area field

2. 'reCAPTCHA Last Success Date' which is a datetime field

3. 'reCAPTCHA Last Server Success' which is a boolean field

4. 'reCAPTCHA Last Server Error Code' which is a string field

5. 'reCAPTCHA Last Failure Date' which is a datetime field

 

I'm using the code outlined on this codepen site: https://codepen.io/figureone/pen/yLgKXge?editors=1010

 

Here is my webhook, I have the secret key set up as a token on the program.

Screen Shot 2022-03-31 at 12.02.11 PM.png

1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: Implementing reCAPTCHA V3 - Getting Response Error

The test failure mode doesn’t create a robot-like-but-correctly-formatted fingerprint — it just creates a purposely bad fingerprint.

View solution in original post

6 REPLIES 6
SanfordWhiteman
Level 10 - Community Moderator

Re: Implementing reCAPTCHA V3 - Getting Response Error

You’d need to show your actual LP not my (working) CodePen.

Mich_Isen
Level 1

Re: Implementing reCAPTCHA V3 - Getting Response Error

Hi @SanfordWhiteman , here is the simple LP I've been testing on: https://lp.cloudinary.com/TEST-Sync_reCAPTCHA-Failure-Test.html

 

I have the CodePen code in a <script> just inside the closing </body>

I appreciate your help!

SanfordWhiteman
Level 10 - Community Moderator

Re: Implementing reCAPTCHA V3 - Getting Response Error

You have it in Debug mode.

 

You want

    debug : {
      testBadFinger : false
    }
    
Mich_Isen
Level 1

Re: Implementing reCAPTCHA V3 - Getting Response Error

Hi @SanfordWhiteman -- I had it  set to 'true' so I could test a failure submission. That's when I get this response - { "success": false, "error-codes": [ "invalid-input-response" ] } on the activity log. Unless, that's the correct response for failures? I thought it would return a score number like the successes do?

Screen Shot 2022-04-12 at 12.17.19 PM.png

When I set it to 'false' and submit a success submission, then I get a normal response - { "success": true, "challenge_ts": "2022-03-30T20:15:00Z", "hostname": "lp.cloudinary.com", "score": 0.9, "action": "form" }

Screen Shot 2022-04-12 at 12.20.30 PM.png

SanfordWhiteman
Level 10 - Community Moderator

Re: Implementing reCAPTCHA V3 - Getting Response Error

The test failure mode doesn’t create a robot-like-but-correctly-formatted fingerprint — it just creates a purposely bad fingerprint.

Mich_Isen
Level 1

Re: Implementing reCAPTCHA V3 - Getting Response Error

@SanfordWhiteman - okay, so that error response is correct in the test mode. I'll move forward with implementing on our pages. Thank you so much for your help! I appreciate it.