K
K
kazmiruk2016-03-18 18:43:18
Browsers
kazmiruk, 2016-03-18 18:43:18

Recaptcha 2 "Cannot connect recaptcha" how to fix?

We decided to update the captcha on the site. The choice fell on the new recaptcha2. It seems to suit everyone, but an unpleasant bug was discovered before the rollout. In opera 12.16 under windows (under linux it was not possible to catch it), when you try to click "I'm not a robot", an alert appears ("No Internet connection. Please check your connection and try again."). The following appears in the console:

Uncaught exception: TypeError: Cannot convert 'a.window || oe(a.zg)' to object

Error thrown at line 5157, column 2 in <anonymous function: rj.prototype.send>(a, b, c) in https://www.gstatic.com/recaptcha/api2/r20160307141848/recaptcha__ru.js:
    (a.window || oe(a.zg)).postMessage(JSON.stringify({
called from line 10402, column 3 in <anonymous function: g.Di>(a, b, c) in https://www.gstatic.com/recaptcha/api2/r20160307141848/recaptcha__ru.js:
    vj(this.H, "anchor_" + a, ae().parent.frames[a], "*").send("anchor_" + a, "ready_challenge", new Mi(this.lf))
called from line 10259, column 2 in <anonymous function: g.Ya>(a) in https://www.gstatic.com/recaptcha/api2/r20160307141848/recaptcha__ru.js:
    this.l.wc.Di(u(this.Lk, this), u(this.Mk, this), u(this.Nk, this))
called from line 10439, column 2 in <anonymous function>(a) in https://www.gstatic.com/recaptcha/api2/r20160307141848/recaptcha__ru.js:
    (new dp(a)).Me().Ya(T(a, 1))

The most interesting thing is that there are several instances of the developer site. On some instances it manifests itself, for example, when writing comments stably, on others - when writing private messages. Those. full random. At first they thought that it was due to the fact that in some places the captcha is rendered directly to the page, and in others through the grecaptcha render method. But it hasn't been confirmed.
There are similar problems on the Internet, including on the Google forum, but there is no answer.
The cache was reset, tried to debug - the error occurs in the loaded Google script inside the frame, which, apparently, cannot access the parent frame via sendMessage (everything is complicated by the fact that the script is obfuscated). I've been fighting for the second day - maybe someone faced a similar problem? There are not so many users with Opera 12, but nevertheless I don’t want to leave them to their own devices.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question