I am using Recaptcha Enterprise client in Android and making these calls:
val client = Recaptcha.fetchClient(
context.applicationContext as Application,
BuildConfig.RECAPTCHA_SITE_KEY,
)
and
val result = client.execute(action, timeout = 10000L) // in IO thread
I am getting quite a few instances of com.google.android.recaptcha.RecaptchaException - Internal Error from one of these two calls (or from both). I don't see any documentation on this exception/error code. What could cause this "internal error"?
Stack trace doesn't help me much.
com.google.android.recaptcha.internal.zzip.zza (com.google.android.recaptcha:recaptcha@@18.8.0:7)
com.google.android.recaptcha.internal.zzio.invokeSuspend (com.google.android.recaptcha:recaptcha@@18.8.0:13)
kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith (ContinuationImpl.kt:33)
kotlinx.coroutines.internal.ScopeCoroutine.afterResume (Scopes.kt:35)
kotlinx.coroutines.AbstractCoroutine.resumeWith (AbstractCoroutine.kt:101)
kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith (ContinuationImpl.kt:46)
kotlinx.coroutines.DispatchedTaskKt.resumeWithStackTrace (DispatchedTask.kt:204)
kotlinx.coroutines.DispatchedTask.run (DispatchedTask.kt:95)
kotlinx.coroutines.internal.LimitedDispatcher$Worker.run (LimitedDispatcher.kt:124)
kotlinx.coroutines.scheduling.TaskImpl.run (Tasks.kt:89)
kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely (CoroutineScheduler.kt:586)
kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask (CoroutineScheduler.kt:820)
kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker (CoroutineScheduler.kt:717)
kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run (CoroutineScheduler.kt:704)
The problem was resolved once I ensured there were no simultaneous calls made to
client.execute()