firebase / firebase/firebase-unity-sdk

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

Open
#1,148 5 comments 0 reactions 0 assignees View on GitHub
api: auth type: feature request
Dominant language
C#
Stars
320
Forks
60
Avg merge
11h 15m
Merged PRs (30d)
11

Description

### 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

```shell
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

```yml

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

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.