abinnovision / vue-recaptcha-v3

A simple and easy to use reCAPTCHA (v3 only) library for Vue.
Apache License 2.0
238 stars 25 forks source link

Error "incorrect-captcha-sol" and "timeout-or-duplicate" #535

Open lferna opened 3 years ago

lferna commented 3 years ago

Hi,

I'm using vue-recaptcha-v3 1.9.0 in a production Vue app.

Sometimes, i'm getting this error when we validate the token:

"incorrect-captcha-sol"

The token is significantly different. For instance, this is a valid token:

"03AGdB...."

But the invalid token starts with: "HFb2Z...."

I have no idea why is wrong.

But sometimes, there are another problem with "timeout-or-duplicate" error.

I don't think the problem is a "timeout" because the token is generated when the user clicks the button and the request takes miliseconds. On the other hand, i find the token once in the logs, so if it was a duplicate, it should come out repeated in the logs.

This is the code:

  import { VueReCaptcha } from 'vue-recaptcha-v3'
...
   async findMovements (clear: boolean) {
      const token = await this.$recaptcha('movements')
      const request = {
        clear,
        callback: () => Utils.modals.showErrorModal({}),
        token
      }
      await this.$store.dispatch('movements/findMovements', request)
    },

The secret keys are correct. And the most important, only fails "some times" but not every day and not always.

Thanks in advance.

Chinaski97 commented 2 years ago

I have the same problem :(

MmKargar commented 2 years ago

@lferna Did find any solution?

lferna commented 2 years ago

@lferna Did find any solution?

Nope 😞