Invalid ReCAPTCHA client id

7,984 views
Skip to first unread message

Javier G. González-Zabaleta

unread,
Jul 31, 2015, 8:00:52 AM7/31/15
to reCAPTCHA
Hello, 

My code works fine a few days ago, but no, I have this problem. 

Code Example:

$(function(){
    widgetnu = grecaptcha.render('captchanewuser', {
      'sitekey' : 'k1'
     });
     
     widgetndu = grecaptcha.render('captchand', {
       'sitekey' : 'k2'
     });
     
     widgetlg = grecaptcha.render('captchalg', {
       'sitekey' : 'k3'
     });
})

and then three with their IDs:

 <div id="captchand" class="g-recaptcha" data-sitekey="keyN" style="margin: 0 auto; width: 300px;"></div>

When I make the grecaptcha.getResponse(widgetnu)); 

I get  Error: Invalid ReCAPTCHA client id: 2 or 1 or 0

Some time it works on first, but not the other two... And if I try to make the render again says that it's not empty. The three captcha are well displayed and loaded.

I have my access blocked.

Best regards!
Message has been deleted

Francesco Luti

unread,
Jan 9, 2017, 5:46:56 AM1/9/17
to reCAPTCHA
Hi,
I had the same problem and it was generated from a multiple api source loaded.
I hope that's helpful
Bye
Reply all
Reply to author
Forward
0 new messages