recaptcha icon indicating copy to clipboard operation
recaptcha copied to clipboard

Unknown base64 encoding in racaptcha_en.js

Open edwolfe3 opened this issue 5 years ago • 12 comments

I'm getting an Unknown base64 encoding at char (the char shown varies) while using the following code:


grecaptcha.ready(function() {
    grecaptcha.execute(<valid_key>, {action: <action_string}).then(function(token) {
        ...
    });
});

This worked up until this week. What do I need to fix it?

edwolfe3 avatar Jun 19 '20 18:06 edwolfe3

Nobody getting the same error?

edwolfe3 avatar Jun 22 '20 12:06 edwolfe3

I'm seeing this in Firefox and the timing of the issue report correlates to some major CSS issues that showed up on our site in the past week.

image

image

For us I believe this is occurring in an iframe which is explicitly different origin than the main frame for sandbox purposes. There is not much I can think to do other than disable recaptcha since the call stack originates in the recaptcha script:

image

cchamberlain avatar Jun 29 '20 22:06 cchamberlain

I'm getting the exact same thing, but I am not using iframes nor do i have a anything from different origins. When I first activated recaptcha, I didn't have any issues. It started after a week or so using it.

edwolfe3 avatar Jun 30 '20 10:06 edwolfe3

We're seeing the same issue. @edwolfe3 did you get it resolved, or did you stop using recaptcha?

rikvanmechelen avatar Jul 13 '20 22:07 rikvanmechelen

Unfortunately, no.

edwolfe3 avatar Jul 13 '20 23:07 edwolfe3

I'm experiencing this issue as well. We're using reCAPTCHA v2 in "invisible" mode. The error does not occur on the latest Chrome (on Ubuntu 18.0x), but is a show-stopper in Firefox for me.

bigs avatar Jul 27 '20 22:07 bigs

Same sad experience.

awesomizer avatar Aug 29 '20 04:08 awesomizer

Same here.

SandorDobos avatar Nov 05 '20 08:11 SandorDobos

image

devbikash07 avatar Nov 06 '20 04:11 devbikash07

hi i am not sure but it looks like installing "Enable jQuery Migrate
Helper" to my WP site suffering this problem solved it. regards, s ----- Message from JoppeDC [email protected] --------- Date: Tue, 01 Dec 2020 00:47:31 -0800 From: JoppeDC [email protected] Reply-To: google/recaptcha
[email protected] Subject: Re: [google/recaptcha] Unknown base64 encoding in
racaptcha_en.js (#392) To: google/recaptcha [email protected] Cc: SandorDobos [email protected], Comment
[email protected]

Safari is working for me, but chrome (86.0.4240.198) is not working.
Same issue on the JS file. Did anyone figure out a solution?

-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/google/recaptcha/issues/392#issuecomment-736318130

----- End message from JoppeDC [email protected] -----

-- Dobos Sándor

SandorDobos avatar Dec 01 '20 14:12 SandorDobos

Hi, joined just to reply to this, one of the few threads that google returns for this error.

The problem was a mismatch between the call to onSubmit(token) and the id of the webform containing the invisible captcha.

function onSubmit(token) { document.getElementById("mywebform").submit(); }

mywebform better be the right id. Copy and pasted and had a different form id than was in the header. Hope this helps someone else. Took me down a rabbit hole of content security policy that had no bearing on the issue.

mfrancesw avatar Jul 03 '22 16:07 mfrancesw