Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

1.6K
Vistas
Recaptcha V3 error incorrect-captcha-sol randomly

I'm getting incorrect-captcha-sol error code sometime while using Google reCAPTCHA server side verification api.

I have integrated google recaptcha validation to some of my apis.

To do so, I pass recaptcha token on these api requests from client side and then verify it on server side by following server side validation of recaptcha.

I am getting recaptcha token by executing below code and pass this token to my api request header:

const getRecaptchaToken = () => {
  return new Promise((resolve, reject) => {
    try {
      if (window.grecaptcha && typeof window.grecaptcha.execute === "function") {
        grecaptchaExecute(window.grecaptcha.execute);
      } else {
        window.grecaptcha.ready(async () => {
          grecaptchaExecute(window.grecaptcha.execute);
        });
      }

      // grecaptcha execute action
      async function grecaptchaExecute(ExecuteAction) {
        const captchaToken = await ExecuteAction(
          xxxxxx, // my recaptcha site key
          {
            action: "submit",
          }
        );
        return resolve(captchaToken);
      }
    } catch (error) {
      return reject(error);
    }
  });
};

Then, on server side I call:

`https://www.google.com/recaptcha/api/siteverify?secret=${secret_key}&response=${captchaToken}`;

Most of time it is working fine, but some of calls randomly fail and return incorrect-captcha-sol error code.

Since it's happening randomly, I don't have a good idea when it is occurring and why. Also, I can't find the any details about this error code in the recaptcha documentations.

Any Ideas?

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

I have found other forums talking about how it can occur if you validate a token twice. But I haven't been able to test that or confirm that.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda