Closed RiverTwilight closed 1 year ago
Hi @RiverTwilight,
Thanks for reaching out. I understand that you're facing an internal error from the Unity editor. I've tried the code you provided, and I was able to anonymously sign in without any issue.
You mentioned that the issue persisted in a new Firebase project. Is this under the same account as the previous one? If so, could you try if a Firebase project from a different account makes any difference? I'm suspecting that the cause of the internal error may be related to your account.
@paulinon
Thanks for your help. I switched to another google account and create a new firebase project. Then I replace the google-service.plist in my Unity project and reimport the Auth SDK. Unfortunately the problem persist:
It always took around 4 minutes to thorw the same error:
Additionaly, this error will throw even I stopped the game in Unity simulator.
@RiverTwilight I notice that you show unity console logs, and mention that the Unity editor is crashing.
Can you confirm whether you are testing this in the Unity editor's play mode (implying you are running the code on a Mac), or are you building for iOS and then testing on an iOS device? I ask this because Auth has different internal implementations for desktop vs mobile.
Additionally, to help us determine what is happening prior to the error, can you set the log level to debug and then share the logs leading up to the issue?
Firebase.FirebaseApp.LogLevel = Firebase.LogLevel.Debug;
@AlmostMatt
Thanks for your help. I finally tried use Cloudflare's WARP and solve this issue, and my Unity editor doesn't crash anymore.
Sounds rediculous but WARP actually helps. All issue came back once I turn off WARP.
Previously I'm using ClashX as my proxy tool, and the realtime database just works fine, which make me believe the network is fine.
Anyway, thank you all for focusing this issue.
[REQUIRED] Please fill in the following fields:
[REQUIRED] Please describe the issue here:
When trying to use
auth.SignInAnonymouslyAsync()
, an error was thrown after a very very long time, from the screenshot you can see it take 4 minutes to show the error:I'm sure I enabled the Anymonous auth method in the console, correctly set the bundle identifier, and has normal network.
Besides, the realtime component worked fine in the same project.
Steps to reproduce:
It has 100% issue repro rate, just set up in normal way.
GoogleService-Info.plist
file under assets folder.Relevant Code:
It will throw the error mentioned before.
What puzzles me is that my application is still able to read from and write to the Firebase Realtime Database. This leads me to believe that the issue is not network-related.
Furthermore, I have attempted several troubleshooting methods:
Given the consistency of the problem across different setups and projects, I suspect there might be a broader issue at play. I have searched extensively online but have been unable to find a solution. Any assistance in this matter would be greatly appreciated.