google-recaptcha
google-recaptcha copied to clipboard
incorrect-captcha-sol
Describe the bug This bug doesn't always appear, it only happens for a while
To Reproduce Describe steps to reproduce the behavior. Code examples.
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Additional context
Recaptcha Exception GoogleRecaptchaException: Unexpected error. Please submit issue to @nestlab/google-recaptcha. at GoogleRecaptchaGuard.canActivate (/app/node_modules/@nestlab/google-recaptcha/guards/google-recaptcha.guard.js:48:15) at runMicrotasks (<anonymous>) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async GuardsConsumer.tryActivate (/app/node_modules/@nestjs/core/guards/guards-consumer.js:16:17) at async canActivateFn (/app/node_modules/@nestjs/core/router/router-execution-context.js:134:33) at async /app/node_modules/@nestjs/core/router/router-execution-context.js:42:31 at async Object.<anonymous> (/app/node_modules/@nestjs/core/router/router-proxy.js:9:17) { response: 'Unexpected error. Please submit issue to @nestlab/google-recaptcha.', status: 500, errorCodes: [ 'incorrect-captcha-sol' ] } Recaptcha Host ExecutionContextHost { args: [ Request { id: 'req-ehd', context: [Context], params: {}, raw: [IncomingMessage], query: [Object: null prototype] {}, log: [Object], body: [Object], corsPreflightEnabled: false, recaptchaValidationResult: [Object], [Symbol(fastify.RequestPayloadStream)]: [IncomingMessage] }, Reply { raw: [ServerResponse], request: [Request], log: [Object], compress: [Function (anonymous)], [Symbol(fastify.reply.isError)]: false, [Symbol(fastify.reply.errorHandlerCalled)]: false, [Symbol(fastify.reply.sent)]: false, [Symbol(fastify.reply.sentOverwritten)]: false, [Symbol(fastify.reply.serializer)]: null, [Symbol(fastify.reply.headers)]: [Object], [Symbol(fastify.reply.startTime)]: undefined, [Symbol(fastify.reply.endTime)]: undefined }, undefined ], constructorRef: null, handler: null, contextType: 'http' }
Hi @whydnxx , I not found this error code in google doc and couldn't reproduce it.
As temporary solution added error code for this error. (available since v3.1.2)
Found some questions about this error, but not found any solutions.
Which recaptcha version do you use v2/v3?
To see information about request/response you can set module option debug: true
.
I'm using V3
Does it happen all the time or sometimes?
Looks like it's something with client side or recaptcha token.
Could you sent debug: true
option to provide more information?