Skip to content

[Bug] Failed to read user data for app (__FIRAPP_DEFAULT).  #1148

Open
@MephestoKhaan

Description

@MephestoKhaan

Description

Hey there, I upgraded my Meta Quest Unity Project from using Firebase 10.5 to 12.3 and 12.4 recently and now Auth totally hangs in the
SignInWithEmailAndPasswordAsync call.

This just happens in my Windows Editor, not in Android Build. And surprisingly this does not happens (same repo and everything) in my Mac Editor (connected to the same network).

I have tried with #1048, and also the VPN solution suggested in #1098.
I have also tried nuking the Library and Temp folders.

I have been using this project for a few years now, and never had trouble.

Reproducing the issue

Open Unity in Windows.
Check Firebase Dependencies.
Initialize Firebase.

The console will output:

Failed to read user data for app (__FIRAPP_DEFAULT). This could happen if the current user doesn't have access to the keystore, the keystore has been corrupted or the app intentionally deleted the stored data.

Call SignInWithEmailAndPasswordAsync.
It will never finish that async call.

After stopping Unity I get:

SignInWithEmailAndPasswordAsync encountered an error: System.AggregateException: One or more errors occurred. (An internal error has occurred.) ---> Firebase.FirebaseException: An internal error has occurred.
  at Firebase.Auth.FirebaseAuth.SignInWithEmailAndPasswordAsync (System.String email, System.String password) [0x00038] in /Users/runner/work/firebase-unity-sdk/firebase-unity-sdk/android_unity/armeabi-v7a/auth/swig/Firebase.Auth_fixed.cs:3840 
   --- End of inner exception stack trace ---
---> (Inner Exception #0) Firebase.FirebaseException: An internal error has occurred.
  at Firebase.Auth.FirebaseAuth.SignInWithEmailAndPasswordAsync (System.String email, System.String password) [0x00038] in /Users/runner/work/firebase-unity-sdk/firebase-unity-sdk/android_unity/armeabi-v7a/auth/swig/Firebase.Auth_fixed.cs:3840 <---

Firebase Unity SDK Version

12.3.0

Unity editor version

2022.3.51

Installation Method

Unity Package Manager

Problematic Firebase Component(s)

Authentication

Other Firebase Component(s) in use

Analytics, Crashlytics, Firestore, Functions

Additional SDKs you are using

No response

Targeted Platform(s)

Android

Unity editor platform

Windows

Scripting Runtime

IL2CPP

Release Distribution Type

Pre-built SDK from https://firebase.google.com/download/unity

Relevant Log Output

Failed to read user data for app (__FIRAPP_DEFAULT). This could happen if the current user doesn't have access to the keystore, the keystore has been corrupted or the app intentionally deleted the stored data.

If using CocoaPods for Apple platforms, the project's Podfile.lock

Expand Podfile.lock snippet
👀 Replace this line with the contents of your Podfile.lock!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions