invalid-request-cookie Java problem

193 views
Skip to first unread message

Roberto

unread,
May 6, 2010, 8:05:11 PM5/6/10
to reCAPTCHA
Hi guys, recently the recaptcha service stop working in our site. Soon
we discovered that the Recaptcha Team sent us a few emails warning us
about the problem and advising us to change the old IPs for the new
ones (http://ws.arin.net/whois/?queryinput=google).

After we discovered that the recaptcha stop working in our website, we
updated the IPs in our firewall but now, the recaptcha still not
working. We updated the old IPs (old recaptcha servers) for the new
ones http://ws.arin.net/whois/?queryinput=google (google servers, yes,
all of them)

We are using the Java Captcha and the page always get the same error
(invalid-request-cookie) but we rechecked the code, the challenge
parameter and everything is okay.

Does anybody is having the same problem or anybody have any idea
what's going on there. Cheers.

--
You received this message because you are subscribed to the Google Groups "reCAPTCHA" group.
To post to this group, send email to reca...@googlegroups.com.
To unsubscribe from this group, send email to recaptcha+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/recaptcha?hl=en.

reCAPTCHA Support

unread,
May 6, 2010, 10:03:26 PM5/6/10
to reca...@googlegroups.com
This means your DNS hasn't updated to the new servers. You are making a request to the old verification servers, which is unable to parse the updated cookies.

- Ben
--
reCAPTCHA: stop spam, read books
http://recaptcha.net

Roberto

unread,
May 7, 2010, 10:28:47 AM5/7/10
to reCAPTCHA
But, even if we logged in into the server and navigate to some servers
of Google? by the way, we tested the recaptcha manually (javascript
disabled) and it does work, the problem only affect only the normal
way. So, the problem could be being the DNS?

Cheers

On May 6, 8:03 pm, reCAPTCHA Support <supp...@recaptcha.net> wrote:
> This means your DNS hasn't updated to the new servers. You are making a
> request to the old verification servers, which is unable to parse the
> updated cookies.
>
> - Ben
>
>
>
> On Thu, May 6, 2010 at 8:05 PM, Roberto <swino...@gmail.com> wrote:
> > Hi guys, recently the recaptcha service stop working in our site. Soon
> > we discovered that the Recaptcha Team sent us a few emails warning us
> > about the problem and advising us to change the old IPs for the new
> > ones (http://ws.arin.net/whois/?queryinput=google).
>
> > After we discovered that the recaptcha stop working in our website, we
> > updated the IPs in our firewall but now, the recaptcha still not
> > working.  We updated the old IPs (old recaptcha servers) for the new
> > oneshttp://ws.arin.net/whois/?queryinput=google(google servers, yes,
> > all of them)
>
> > We are using the Java Captcha and the page always get the same error
> > (invalid-request-cookie) but we rechecked the code, the challenge
> > parameter and everything is okay.
>
> > Does anybody is having the same problem or anybody have any idea
> > what's going on there. Cheers.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "reCAPTCHA" group.
> > To post to this group, send email to reca...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > recaptcha+...@googlegroups.com<recaptcha%2Bunsu...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/recaptcha?hl=en.
>
> --
> reCAPTCHA: stop spam, read bookshttp://recaptcha.net
>
> --
> You received this message because you are subscribed to the Google Groups "reCAPTCHA" group.
> To post to this group, send email to reca...@googlegroups.com.
> To unsubscribe from this group, send email to recaptcha+...@googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/recaptcha?hl=en.

Roberto

unread,
May 7, 2010, 12:42:01 PM5/7/10
to reCAPTCHA
We are running some tests in our servers and the recaptcha it does
work, we are testing it with a simple html form:


<body>
<form method='post' action="http://api-verify.recaptcha.net/verify">
privatekey<input name="privatekey" type="text" value="" size="250" />
remote ip<input name="remoteip" type="text" value="" size="250" />
challenge<input name="challenge" type="text" value="" size="250" />
response<input name="response" type="text" value="" size="250" />
<p><input type="submit" id="enviar"value="Send"></p>
</form>
</body>


So, with this we disscard the DNS problem, right? the recaptcha is not
working only with the Java library, any sugestion?


This is part of our Java code:

private boolean validcaptcha(HttpServletRequest
request,HttpServletResponse response){
String challenge =
request.getParameter("recaptcha_challenge_field");
String resp =
request.getParameter("recaptcha_response_field");
String remoteAddr = request.getRemoteAddr();
ReCaptchaImpl reCaptcha = new ReCaptchaImpl();


// *** YOU MUST PROVIDE YOUR PRIVATE KEY HERE ***
// Probably don't want to hardcode your private key here
but just to
// get it working is OK...
reCaptcha.setPrivateKey("OUR PRIVATE KEY");


ReCaptchaResponse reCaptchaResponse =
reCaptcha.checkAnswer(remoteAddr, challenge, resp);
boolean valid = reCaptchaResponse.isValid();

if (!valid){
Log lgCap = new Log();
Exception exmayo
= new Exception("Error del recaptcha: .." +

reCaptchaResponse.getErrorMessage() +

" challenge: '" +

challenge + "' " +

" response: '" +

resp + "' ip: '" +

remoteAddr + "'.. ");

lgCap.writeLog(exmayo);


}



return valid;

// String path = null;
// if (!valid) {
// path = "/PagosZ/registro";
// session.setAttribute("error","Error al verificar
imagen !!!!");
// }
// try {
// response.sendRedirect(path);
// } catch (IOException e) {
// // TODO Auto-generated catch block
// e.printStackTrace();
// }
}

Cheers, Robert.


On May 7, 8:28 am, Roberto <swino...@gmail.com> wrote:
> But, even if we logged in into the server and navigate to some servers
> of Google? by the way, we tested the recaptcha manually (javascript
> disabled) and it does work, the problem only affect only the normal
> way. So, the problem could be being the DNS?
>
> Cheers
>
> On May 6, 8:03 pm, reCAPTCHA Support <supp...@recaptcha.net> wrote:
>
>
>
> > This means your DNS hasn't updated to the new servers. You are making a
> > request to the old verification servers, which is unable to parse the
> > updated cookies.
>
> > - Ben
>
> > On Thu, May 6, 2010 at 8:05 PM, Roberto <swino...@gmail.com> wrote:
> > > Hi guys, recently the recaptcha service stop working in our site. Soon
> > > we discovered that the Recaptcha Team sent us a few emails warning us
> > > about the problem and advising us to change the old IPs for the new
> > > ones (http://ws.arin.net/whois/?queryinput=google).
>
> > > After we discovered that the recaptcha stop working in our website, we
> > > updated the IPs in our firewall but now, the recaptcha still not
> > > working.  We updated the old IPs (old recaptcha servers) for the new
> > > oneshttp://ws.arin.net/whois/?queryinput=google(googleservers, yes,
Reply all
Reply to author
Forward
0 new messages