firebase / firebase-android-sdk

Firebase Android SDK
https://firebase.google.com
Apache License 2.0
2.26k stars 572 forks source link

Initial task failed for action RecaptchaAction #6234

Closed saliousambadiao closed 1 day ago

saliousambadiao commented 1 week ago

Hi everyone, hope you are doing well, i'm working in an android studio mobile projet. I'm trying to create user with email and password and i'm facing this issue:

Creating user with saliou@gmail.com with empty reCAPTCHA token Ignoring header X-Firebase-Locale because its value was null. Initial task failed for action RecaptchaAction(action=signUpPassword)with exception - A network error (such as timeout, interrupted connection or unreachable host) has occurred.

I don't understand why i'm facing recaptcha when i don't even use it in my project and it is told in documentation that recaptcha is for web project.

google-oss-bot commented 1 week ago

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

lehcar09 commented 1 week ago

Hi @saliousambadiao, thank you for reaching out. I tried reproducing the issue, however, I wasn't able to reproduce the issue. Based on the error message, the issue is due to network connectivity. Have you tried using a different network?

About the warning Ignoring header X-Firebase-Locale because its value was null, there's an ongoing investigation related to locale in Firebase Auth. You can check on issue #5825 for future updates.

google-oss-bot commented 5 days ago

Hey @saliousambadiao. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

saliousambadiao commented 5 days ago

Hi, @lehcar09 and @google-oss-bot, i was working on this issue since. Until now, no fix. I can give you more details to try to reproduce this issue.

Environment : Android Studio Koala | 2024.1.1 Debuging Environment : Emulator Pixel 8 Pro API 35 Language : Kotlin an Java Dependencies : _

_dependencies { //androidx implementation 'androidx.appcompat:appcompat:1.7.0' implementation 'com.google.android.material:material:1.12.0' implementation 'androidx.constraintlayout:constraintlayout:2.1.4' implementation 'androidx.recyclerview:recyclerview:1.3.2' implementation 'androidx.core:core-ktx:1.13.1' implementation 'androidx.databinding:databinding-runtime:8.6.0' implementation 'androidx.legacy:legacy-support-v4:1.0.0' implementation 'androidx.multidex:multidex:2.0.1' androidTestImplementation 'androidx.test:core:1.6.1' androidTestImplementation 'androidx.test.ext:junit:1.2.1' implementation "androidx.lifecycle:lifecycle-viewmodel-compose:2.8.5" implementation "androidx.navigation:navigation-fragment-ktx:2.8.0" implementation "androidx.navigation:navigation-ui-ktx:2.8.0" implementation "androidx.work:work-runtime:2.9.1" implementation "androidx.datastore:datastore-preferences:1.1.1"

implementation 'com.airbnb.android:lottie:6.0.0'
testImplementation 'junit:junit:4.13.2'
implementation "org.jetbrains.kotlin:kotlin-reflect:1.9.20"
//kapt 'groupId:artifactId:version'
implementation 'com.github.bumptech.glide:glide:4.15.1'

// implementation 'com.android.support:multidex:2.0.1' implementation 'com.squareup.picasso:picasso:2.71828' implementation 'io.agora.rtc:full-sdk:4.2.6' implementation 'commons-codec:commons-codec:1.15' implementation 'com.squareup.okhttp3:okhttp:4.12.0' implementation 'de.hdodenhof:circleimageview:3.1.0' implementation "com.stripe:stripe-java:22.4.0" implementation 'com.stripe:stripe-android:17.2.0' implementation 'com.android.volley:volley:1.2.1' implementation 'com.mangopay:mangopay2-java-sdk:2.29.0' implementation 'com.google.code.gson:gson:2.10.1' implementation 'com.google.code.ksoap2-android:ksoap2-android:3.6.2' implementation 'com.google.android.gms:play-services-location:21.3.0' implementation 'com.google.android.gms:play-services-auth:21.2.0'

implementation 'com.google.android.play:integrity:1.4.0'

//firebase implementation platform('com.google.firebase:firebase-bom:33.2.0') implementation 'com.google.firebase:firebase-firestore' implementation 'com.google.firebase:firebase-auth' implementation 'com.google.firebase:firebase-database' implementation 'com.google.firebase:firebase-analytics-ktx' implementation 'com.google.firebase:firebase-analytics' implementation 'com.google.firebase:firebase-auth-ktx' implementation 'com.google.firebase:firebase-database-ktx' implementation 'com.google.firebase:firebase-functions' implementation 'com.firebaseui:firebase-ui-storage:8.0.0' implementation 'com.google.firebase:firebase-appcheck' implementation 'com.google.firebase:firebase-appcheck-debug' implementation 'com.google.firebase:firebase-appcheck-playintegrity'

implementation 'com.google.android.gms:play-services-auth'

}_

_

Here is all the log i have: Currently set values for: 2024-09-13 10:42:00.269 1718-1718 GraphicsEnvironment com.kampeky V angle_gl_driver_selection_pkgs=[] 2024-09-13 10:42:00.270 1718-1718 GraphicsEnvironment com.kampeky V angle_gl_driver_selection_values=[] 2024-09-13 10:42:00.271 1718-1718 GraphicsEnvironment com.kampeky V Global.Settings values are invalid: number of packages: 0, number of values: 0 2024-09-13 10:42:00.271 1718-1718 GraphicsEnvironment com.kampeky V Neither updatable production driver nor prerelease driver is supported. 2024-09-13 10:42:00.670 1718-1718 FirebaseApp com.kampeky I Device unlocked: initializing all Firebase APIs for app [DEFAULT] 2024-09-13 10:42:00.762 1718-1718 CompatChangeReporter com.kampeky D Compat change id reported: 3400644; UID 10201; state: ENABLED 2024-09-13 10:42:00.773 1718-1718 FirebaseInitProvider com.kampeky I FirebaseApp initialization successful 2024-09-13 10:42:00.820 1718-1718 WM-WrkMgrInitializer com.kampeky D Initializing WorkManager with default configuration. 2024-09-13 10:42:00.905 1718-2080 ziparchive com.kampeky W Unable to open '/data/user_de/0/com.google.android.gms/app_chimera/m/0000003b/DynamiteLoader.uncompressed.dm': No such file or directory 2024-09-13 10:42:00.905 1718-2080 ziparchive com.kampeky W Unable to open '/data/user_de/0/com.google.android.gms/app_chimera/m/0000003b/DynamiteLoader.uncompressed.dm': No such file or directory 2024-09-13 10:42:00.926 1718-2080 DynamiteModule com.kampeky I Considering local module com.google.android.gms.measurement.dynamite:122 and remote module com.google.android.gms.measurement.dynamite:121 2024-09-13 10:42:00.926 1718-2080 DynamiteModule com.kampeky I Selected local version of com.google.android.gms.measurement.dynamite 2024-09-13 10:42:00.960 1718-1718 WM-PackageManagerHelper com.kampeky D Skipping component enablement for androidx.work.impl.background.systemjob.SystemJobService 2024-09-13 10:42:00.960 1718-1718 WM-Schedulers com.kampeky D Created SystemJobScheduler and enabled SystemJobService 2024-09-13 10:42:02.103 1718-1718 AppCompatDelegate com.kampeky D Checking for metadata for AppLocalesMetadataHolderService : Service not found 2024-09-13 10:42:03.202 1718-1718 com.kampeky com.kampeky W Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (unsupported, reflection, allowed) 2024-09-13 10:42:03.226 1718-2113 FA com.kampeky I App measurement initialized, version: 102001 2024-09-13 10:42:03.227 1718-2113 FA com.kampeky I To enable debug logging run: adb shell setprop log.tag.FA VERBOSE 2024-09-13 10:42:03.228 1718-2113 FA com.kampeky I To enable faster debug mode event logging run: adb shell setprop debug.firebase.analytics.app com.kampeky 2024-09-13 10:42:03.283 1718-2211 com.google...ckProvider com.kampeky D Enter this debug secret into the allow list in the Firebase Console for your project: 760f89ca-7efa-4124-8927-afaa67d4f206 2024-09-13 10:42:04.081 1718-2246 TrafficStats com.kampeky D tagSocket(114) with statsTag=0x8003, statsUid=-1 2024-09-13 10:42:04.215 1718-1718 HWUI com.kampeky W Unknown dataspace 0 2024-09-13 10:42:04.317 1718-1718 Choreographer com.kampeky I Skipped 199 frames! The application may be doing too much work on its main thread. 2024-09-13 10:42:14.600 1718-2113 FA com.kampeky I Tag Manager is not found and thus will not be used 2024-09-13 10:42:14.805 1718-2115 EGL_emulation com.kampeky I Opening libGLESv1_CM_emulation.so 2024-09-13 10:42:14.808 1718-2115 EGL_emulation com.kampeky I Opening libGLESv2_emulation.so 2024-09-13 10:42:14.829 1718-2115 HWUI com.kampeky W Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without... 2024-09-13 10:42:14.829 1718-2115 HWUI com.kampeky W Failed to initialize 101010-2 format, error = EGL_SUCCESS 2024-09-13 10:42:14.863 1718-2115 Gralloc4 com.kampeky I mapper 4.x is not supported 2024-09-13 10:42:14.884 1718-1726 com.kampeky com.kampeky W Suspending all threads took: 9.267ms 2024-09-13 10:42:14.932 1718-1726 com.kampeky com.kampeky I Background concurrent mark compact GC freed 4144KB AllocSpace bytes, 21(740KB) LOS objects, 49% free, 5308KB/10MB, paused 10.828ms,2.745ms total 245.694ms 2024-09-13 10:42:15.618 1718-1718 Choreographer com.kampeky I Skipped 61 frames! The application may be doing too much work on its main thread. 2024-09-13 10:42:15.762 1718-1718 AssistStructure com.kampeky I Flattened final assist data: 3304 bytes, containing 1 windows, 22 views 2024-09-13 10:42:15.764 1718-1786 HWUI com.kampeky I Davey! duration=4376ms; Flags=1, FrameTimelineVsyncId=5928, IntendedVsync=43345592158, Vsync=46662258692, InputEventId=0, HandleInputStart=46673825347, AnimationStart=46673832499, PerformTraversalsStart=46673957112, DrawStart=47195089310, FrameDeadline=43362258824, FrameInterval=46671415102, FrameStartTime=16666666, SyncQueued=47245769890, SyncStart=47246006262, IssueDrawCommandsStart=47246622718, SwapBuffers=47693384033, FrameCompleted=47722820260, DequeueBufferDuration=832938, QueueBufferDuration=8198531, GpuCompleted=47721523006, SwapBuffersCompleted=47722820260, DisplayPresentTime=288234774265332736, CommandSubmissionCompleted=47693384033, 2024-09-13 10:42:15.765 1718-1786 HWUI com.kampeky I Davey! duration=1128ms; Flags=0, FrameTimelineVsyncId=6662, IntendedVsync=46728925356, Vsync=47745591982, InputEventId=0, HandleInputStart=47752147796, AnimationStart=47752160454, PerformTraversalsStart=47754776632, DrawStart=47843107325, FrameDeadline=47745591982, FrameInterval=47746322618, FrameStartTime=16666666, SyncQueued=47849796105, SyncStart=47849846723, IssueDrawCommandsStart=47852393250, SwapBuffers=47854625448, FrameCompleted=47857942373, DequeueBufferDuration=4760, QueueBufferDuration=495855, GpuCompleted=47857857573, SwapBuffersCompleted=47857942373, DisplayPresentTime=288234774265332736, CommandSubmissionCompleted=47854625448, 2024-09-13 10:42:17.114 1718-1725 com.kampeky com.kampeky I Compiler allocated 4219KB to compile void android.widget.TextView.(android.content.Context, android.util.AttributeSet, int, int) 2024-09-13 10:42:19.203 1718-1725 com.kampeky com.kampeky I Compiler allocated 4968KB to compile void android.view.ViewRootImpl.performTraversals() 2024-09-13 10:42:20.115 1718-2608 ProfileInstaller com.kampeky D Installing profile for com.kampeky 2024-09-13 10:42:53.054 1718-1718 ImeTracker com.kampeky I com.kampeky:1905e052: onRequestShow at ORIGIN_CLIENT reason SHOW_SOFT_INPUT fromUser true 2024-09-13 10:42:53.072 1718-1718 InputMethodManager com.kampeky D showSoftInput() view=com.google.android.material.textfield.TextInputEditText{e281702 VFED..CL. .F.P..ID 0,0-1056,167 aid=1073741824} flags=0 reason=SHOW_SOFT_INPUT 2024-09-13 10:42:53.080 1718-1718 Choreographer com.kampeky I Skipped 53 frames! The application may be doing too much work on its main thread. 2024-09-13 10:42:53.237 1718-1718 AssistStructure com.kampeky I Flattened final assist data: 3304 bytes, containing 1 windows, 22 views 2024-09-13 10:42:53.350 1718-2115 EGL_emulation com.kampeky D app_time_stats: avg=5345.59ms min=4.66ms max=36796.47ms count=7 2024-09-13 10:42:53.395 1718-1731 HWUI com.kampeky I Davey! duration=1165ms; Flags=0, FrameTimelineVsyncId=9990, IntendedVsync=84312257186, Vsync=85195590484, InputEventId=854808391, HandleInputStart=85212362855, AnimationStart=85212364967, PerformTraversalsStart=85213687893, DrawStart=85219340038, FrameDeadline=84328923852, FrameInterval=85208937991, FrameStartTime=16666666, SyncQueued=85255763360, SyncStart=85258994173, IssueDrawCommandsStart=85281439957, SwapBuffers=85436547451, FrameCompleted=85480935025, DequeueBufferDuration=13862, QueueBufferDuration=2066725, GpuCompleted=85479202676, SwapBuffersCompleted=85480935025, DisplayPresentTime=288234774265332736, CommandSubmissionCompleted=85436547451, 2024-09-13 10:42:54.831 1718-2115 EGL_emulation com.kampeky D app_time_stats: avg=369.70ms min=57.27ms max=500.82ms count=4 2024-09-13 10:42:55.766 1718-1718 InsetsController com.kampeky D show(ime(), fromIme=true) 2024-09-13 10:42:55.824 1718-4133 InteractionJankMonitor com.kampeky W Initializing without READ_DEVICE_CONFIG permission. enabled=false, interval=1, missedFrameThreshold=3, frameTimeThreshold=64, package=com.kampeky 2024-09-13 10:42:55.864 1718-2115 EGL_emulation com.kampeky D app_time_stats: avg=516.12ms min=515.21ms max=517.04ms count=2 2024-09-13 10:42:56.143 1718-1718 ImeTracker com.kampeky I com.kampeky:1905e052: onShown om.kampeky:677906fe: onRequestShow at ORIGIN_CLIENT reason SHOW_SOFT_INPUT fromUser true 2024-09-13 10:45:37.475 1718-1718 InputMethodManager com.kampeky D showSoftInput() view=com.google.android.material.textfield.TextInputEditText{e281702 VFED..CL. .F.P.... 0,0-1056,167 aid=1073741824} flags=0 reason=SHOW_SOFT_INPUT 2024-09-13 10:45:37.526 1718-1718 AssistStructure com.kampeky I Flattened final assist data: 3304 bytes, containing 1 windows, 22 views 2024-09-13 10:45:37.560 1718-1718 InsetsController com.kampeky D show(ime(), fromIme=true) 2024-09-13 10:45:37.561 1718-1718 ImeTracker com.kampeky I com.kampeky:677906fe: onCancelled at PHASE_CLIENT_APPLY_ANIMATION

2024-09-13 10:45:55.881 1718-1718 ImeTracker com.kampeky I com.kampeky:b172f837: onRequestShow at ORIGIN_CLIENT reason SHOW_SOFT_INPUT fromUser true 2024-09-13 10:45:55.882 1718-1718 InputMethodManager com.kampeky D showSoftInput() view=com.google.android.material.textfield.TextInputEditText{84a14e VFED..CL. .F.P..ID 0,0-1056,167 aid=1073741825} flags=0 reason=SHOW_SOFT_INPUT 2024-09-13 10:45:55.891 1718-2115 EGL_emulation com.kampeky D app_time_stats: avg=288.09ms min=29.52ms max=498.30ms count=4 2024-09-13 10:45:55.919 1718-1718 RemoteInpu...ectionImpl com.kampeky W requestCursorUpdates on inactive InputConnection 2024-09-13 10:45:56.135 1718-1718 InsetsController com.kampeky D show(ime(), fromIme=true) 2024-09-13 10:45:56.135 1718-1718 ImeTracker com.kampeky I com.kampeky:e7558c90: onCancelled at PHASE_CLIENT_APPLY_ANIMATION 2024-09-13 10:45:56.140 1718-1718 InsetsController com.kampeky D show(ime(), fromIme=true) 2024-09-13 10:45:56.142 1718-1718 ImeTracker com.kampeky I com.kampeky:b172f837: onCancelled at PHASE_CLIENT_APPLY_ANIMATION

**2024-09-13 10:46:06.770 1718-1718 FirebaseAuth com.kampeky I Logging in as test1@gmail.com with empty reCAPTCHA token 2024-09-13 10:46:06.789 1718-5650 System com.kampeky W Ignoring header X-Firebase-Locale because its value was null.

2024-09-13 10:46:07.585 1718-1718 RecaptchaCallWrapper com.kampeky E Initial task failed for action RecaptchaAction(action=signInWithPassword)with exception - An internal error has occurred. [ Failed to connect to /192.168.1.14:4930 ] 2024-09-13 10:46:07.586 1718-1718 LOGINUSECASE-ERROR com.kampeky E Login failed: An internal error has occurred. [ Failed to connect to /192.168.1.14:4930 ]**

Now you have all informations about the projet to see that i am not using recaptcha and yet i have issue about it. Thanks for futur response to fix this issue.

lehcar09 commented 1 day ago

Firebase Auth utilizes Recaptcha to enhance security for your users.

The Creating user with <email> with empty reCAPTCHA token log is not an error. This line is just logs saying the user is logging in without reCAPTCHA verification.

As for the Initial task failed for action RecaptchaAction(action=signInWithPassword)with exception - An internal error has occurred. [ Failed to connect to /192.168.1.14:4930 ], it seems that you're using a custom domain, however, the system was unable to establish a connection to your server with the IP address 192.168.1.14 and port 4930. This could be caused by network connectivity issues and/ or server issues.

I suggest checking the troubleshooting steps below:

To get better help, it would be best to reach out to the Firebase support channel instead. We'd need access to your project settings (including projectID, SHA-1 etc) to troubleshoot this type of issue.