500 (Internal Server Error)

1,846 views
Skip to first unread message

David Lara

unread,
Apr 3, 2014, 4:28:11 AM4/3/14
to reca...@googlegroups.com
Hi,

We are using Google reCAPTCHA and getting this error in the browser console: 

"Failed to load resource: the server responded with a status of 500 (Internal Server Error) "

It happens when the user submits the captcha either wrong or with empty value. After this, the refresh button doesn't work any more.

The weird thing is we didn't experience any issues yesterday.

Many thanks in advance for any help!

--David

passio...@gmail.com

unread,
Apr 3, 2014, 8:38:38 AM4/3/14
to reca...@googlegroups.com
I am having the same problem I guess. The code and everything used to work fine a few days back.

  for me the error happens on Recaptcha.reload() after ajax return false ... otherwise in all other situations recaptcha works. 

 The Recaptcha will not reload . Also after this error , reload will not work on clicking reload button until page is refreshed.

  The basic error is ""Failed to load resource: the server responded with a status of 500 (Internal Server Error) ""

 Detailed error given below


===================================
<html><head></head><body><pre>An error occurred:
An internal error occurred: 4F622577695E8.ABC2CD2.458A 
</pre></body></html>Recaptcha.finish_reload('03AHJ_VusJdRzYCyB2XYOa9o7WVP_9jgh2-Vul0kw06IX-ciMMwi6EtDZTbHUfu7SQdJErdcUovzdvro8577mfH5uo7GmDAEe68k7WyqJ3_NqFaVFRrg0HEmafQ1sOGuQs9cbit4VMnvzL1p0zmCLMthYnhyCnhLERw6wga7BsufX58sgqkdhls2UumOOqP-XFvbaG0XxpO2VkqLCWuTsP5Ox5W3Cc1rDTmDiDI-qHEiQ3YWHWlB8Z0Sim_pPgv8qMAIcA-r38zzw7', 'image', null); 
===================================

Please Help me resolve this

passio...@gmail.com

unread,
Apr 3, 2014, 8:57:11 AM4/3/14
to reca...@googlegroups.com
I think I got it resolved ... 

  But I really cannot understand why this happened. 

 The code was working fine for last few months.

code on which i was getting error 
 ============== ============
//at this point ajax returns value to say recaptcha wrong

alert("The Captcha value you entered is incorrect. Please try again.");

document.getElementById("recaptcha_response_field").focus();

Recaptcha.reload(); // this is the line I was getting error on

=================================

Fixed code which is working
=========================================
//at this point ajax returns value to say recaptcha wrong

alert("The Captcha value you entered is incorrect. Please try again.");

document.getElementById("recaptcha_response_field").focus();

reloadRecaptcha(); // created a used defined function instead of Recaptcha.reload(); code for that is gvn below.

===========================================

User defined javascript function created to use instead of  Recaptcha.reload();
============================================

  function reloadRecaptcha() {
        var publicKey = "6LcHMvESeeeeeeeeeeeeeeeeeeeeeeeeeeAAAAw5Gslz"; // not my real key just for example. put your public key here
        var div = "recap_box"; // div id inside which recaptcha works
        Recaptcha.create(publicKey,div,{theme: "clean"}); // clean is recaptha theme type i use you may use red or other as per your liking.
        return false;
    }
============================================

The fixed my problem.

The strange thing is Recaptcha.reload(); is working in my code if not used after an ajax return ?? absurd .... 

Please update this thread in case any of you guys find what the problem really is and any other fixes.

Jason Miller

unread,
Apr 3, 2014, 10:49:22 AM4/3/14
to reca...@googlegroups.com
I had this exact same problem.  Recreating the CAPTCHA solution below worked.

David Lara

unread,
Apr 3, 2014, 10:59:42 AM4/3/14
to reca...@googlegroups.com
Yes, creating worked.
Many thanks.

JoelCR Burgess

unread,
Apr 8, 2014, 12:53:40 PM4/8/14
to reca...@googlegroups.com
This also worked for me, but I was only having the issue in Chrome. Please fix this issue Google.
Reply all
Reply to author
Forward
0 new messages