npaulo / recaptcha

Automatically exported from code.google.com/p/recaptcha
0 stars 0 forks source link

Captcha validation issue #177

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Our application is currently using recaptcha in production and working fine 
without any issues. 
I am working on moving the application to another data center and the same code 
base (same private key) is giving me an exception as attached. The exception is 
thrown by method below:

final ReCaptchaResponse reCaptchaResponse =
      reCaptcha.checkAnswer(remoteAddress, challenge, response);

The remoteAddress being passed is 10.137.7.20-29  and other paramaters are just 
the same as in current data center.

What is the expected output? What do you see instead?
Captcha should get validated. But, it triggers an exception
Jan 07 14 11:06:45,246 DEBUG 
org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver - 
Resolving exception from handler 
[com.miadidas.configurator.controllers.SendToFriendController@2d523d40]: 
net.tanesha.recaptcha.ReCaptchaException: Cannot load URL: Connection reset
Jan 07 14 11:06:45,247 DEBUG org.springframework.web.servlet.DispatcherServlet 
- Could not complete request
net.tanesha.recaptcha.ReCaptchaException: Cannot load URL: Connection reset

What version of the product are you using? On what operating system?
0.0.7 and LINUX

Please provide any additional information below.
There is connectivity from my application server to URL 
http://api-verify.recaptcha.net/verify. See response of command wget

-2014-01-07 15:17:35--  http://api-verify.recaptcha.net/verify
Resolving api-verify.recaptcha.net... 173.194.113.147, 173.194.113.148, 
173.194.113.144, ...
Connecting to api-verify.recaptcha.net|173.194.113.147|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: âverifyâ

    [ <=>                                   ] 30          --.-K/s   in 0s

2014-01-07 15:17:35 (5.72 MB/s) - âverifyâ

Original issue reported on code.google.com by ashishgu...@gmail.com on 7 Jan 2014 at 2:20

Attachments:

GoogleCodeExporter commented 9 years ago
api-verify.recaptcha.net should no longer be used. Update to www.google.com
https://developers.google.com/recaptcha/docs/verify

Original comment by adrian.g...@gmail.com on 30 Jul 2014 at 12:17