What happens when the challenge has failed and retry
is set to auto
? Well, Cloudflare will queue up a window.turnstile.reset
using setTimeout
(see the code I sent above). Then what happens is that the widget was removed, but the setTimeout
was not cancelled, and it will try to reset a widget that doesn’t exist hence it’ll print the error:
[Cloudflare Turnstile] Nothing to reset found for the provided container.
I’ve already discussed this on Discord, see the https://discord.com/channels/595317990191398933/1025131875397812224/1122137855368646717