question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: reCAPTCHA client has been deleted: 0

See original GitHub issue

Summary

I’m submitting a:

  • bug report
  • feature request
  • question / support request
  • other

Description

I use the forms module and use the recaptcha component as follows:

<re-captcha formControlName="captcha"></re-captcha>

After my form is successfully submitted, I remove it from the DOM using an *ngIf to show a “Thank you” message and a “Start over” button. When I click on the Start over button, the form reappears as I set the ngIf condition to true and reset my form using form.reset(). When this happens, I get the following error:

screen shot 2019-02-02 at 23 42 18

Workaround

In my template:

<re-captcha (resolved)="recaptchaResolved($event)"></re-captcha>

In my component:

recaptchaResolved(response: string) {
    this.form.get('captcha').setValue(response);
  }

Lib versions:

  • ng-recaptcha: 4.2.1
  • Angular: 7.2.0
  • Typescript (tsc --version): 3.2.2

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:4
  • Comments:14 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
CIAMoptimist29commented, Apr 19, 2019

We have a contact within Google Engineering, but we will be following up with them to see if there is a public bulletin that will be posted about it. If they do release it, I will be sure to provide it back here. I know this affected many people from their email.

3reactions
millerbennettcommented, Apr 19, 2019

Do you happen to have a source on that - was there a post about it?

Read more comments on GitHub >

github_iconTop Results From Across the Web

firebase signInWithPhoneNumber recaptcha client has been ...
signInWithPhoneNumber goes straight to the catch with the error "recaptcha client has been deleted 0" even after I do grecaptcha.reset(this.
Read more >
signInWithPhoneNumber recaptcha client has been deleted 0
Hi I'm trying to authenticate users with phone numbers without using firebaseui. my html template looks like this:
Read more >
firebase signInWithPhoneNumber recaptcha client has been ...
Ok so the error was because the recaptcha container got deleted, I set loading to true on the sendLoginCode() and the loading would...
Read more >
48363 Can't sent form after missing fields due te Captcha
When checked the form, I saw this error in the browser console: reCAPTCHA client element has been removed: 0. Seems the problem is...
Read more >
Frequently Asked Questions | reCAPTCHA - Google Developers
This is a focusing bug on Apple's side that we've reported to them. It affects users only on iOS 10 and only on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found