Skip to content

[FR] Better debug message when sign-in method is not enabled from Firebase console #38

Open
@personalnadir

Description

@personalnadir

I am seeing a consistent errors when trying to create or sign in users in the Unity Editor and on iOS device (Android not attempted yet). Both CreateUserWithEmailAndPasswordAsync and SignInWithEmailAndPasswordAsync throw errors caused by internal errors.

No doubt I am doing something wrong, but I'm struggling to dig out what the underlying issues are.

The bug report as such is that the exceptions should contain more detail of the fault so that developers can fix the issues

CreateUserWithEmailAndPasswordAsync encountered an error: System.AggregateException: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> Firebase.FirebaseException: An internal error has occurred.
   --- End of inner exception stack trace ---
   --- End of inner exception stack trace ---
---> (Inner Exception #0) System.AggregateException: One or more errors occurred. ---> Firebase.FirebaseException: An internal error has occurred.
   --- End of inner exception stack trace ---
---> (Inner Exception #0) Firebase.FirebaseException: An internal error has occurred.<---
<---

 #0 GetStacktrace(int)
 #1 DebugStringToFile(DebugStringToFileData const&)
 #2 DebugLogHandler_CUSTOM_Internal_Log(LogType, LogOption, ScriptingBackendNativeStringPtrOpaque*, ScriptingBackendNativeObjectPtrOpaque*)
 #3  (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
 #4  (Mono JIT Code) [Z:\tmp\tmp.SQ3tdXfbub\firebase\app\client\unity\src\Platform\ExceptionAggregator.cs:113] Firebase.ExceptionAggregator:Wrap (System.Action)
 #5  (Mono JIT Code) [Z:\tmp\tmp.SQ3tdXfbub\firebase\app\client\unity\src\Platform\Dispatcher.cs:123] Firebase.Dispatcher:PollJobs ()
 #6  (Mono JIT Code) [Z:\tmp\tmp.SQ3tdXfbub\firebase\app\client\unity\src\Unity\FirebaseHandler.cs:208] Firebase.Platform.FirebaseHandler:Update ()
 #7 mono_jit_runtime_invoke
 #8 do_runtime_invoke
 #9 mono_runtime_invoke
 #10 scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool)
 #11 ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool)
 #12 MonoBehaviour::CallMethodIfAvailable(int)
 #13 MonoBehaviour::CallUpdateMethod(int)
 #14 void BaseBehaviourManager::CommonUpdate<BehaviourManager>()
 #15 BehaviourManager::Update()
 #16 InitPlayerLoopCallbacks()::UpdateScriptRunBehaviourUpdateRegistrator::Forward()
 #17 ExecutePlayerLoop(NativePlayerLoopSystem*)

SignInWithEmailAndPasswordAsync:

SignInWithEmailAndPasswordAsync encountered an error: System.AggregateException: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> Firebase.FirebaseException: An internal error has occurred.
   --- End of inner exception stack trace ---
   --- End of inner exception stack trace ---
---> (Inner Exception #0) System.AggregateException: One or more errors occurred. ---> Firebase.FirebaseException: An internal error has occurred.
   --- End of inner exception stack trace ---
---> (Inner Exception #0) Firebase.FirebaseException: An internal error has occurred.<---
<---

 #0 GetStacktrace(int)
 #1 DebugStringToFile(DebugStringToFileData const&)
 #2 DebugLogHandler_CUSTOM_Internal_Log(LogType, LogOption, ScriptingBackendNativeStringPtrOpaque*, ScriptingBackendNativeObjectPtrOpaque*)
 #3  (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
 #4  (Mono JIT Code) [Z:\tmp\tmp.5N3Xss3REC\firebase\app\client\unity\task-extension\TaskExtension.cs:128] Firebase.Extensions.TaskExtension/<ContinueWithOnMainThread>c__AnonStorey8`1/<ContinueWithOnMainThread>c__AnonStorey9<T_REF>:<>m__0 ()
 #5  (Mono JIT Code) [Z:\tmp\tmp.SQ3tdXfbub\firebase\app\client\unity\src\Platform\ExceptionAggregator.cs:113] Firebase.ExceptionAggregator:Wrap (System.Action)
 #6  (Mono JIT Code) [Z:\tmp\tmp.SQ3tdXfbub\firebase\app\client\unity\src\Platform\Dispatcher.cs:123] Firebase.Dispatcher:PollJobs ()
 #7  (Mono JIT Code) [Z:\tmp\tmp.SQ3tdXfbub\firebase\app\client\unity\src\Unity\FirebaseHandler.cs:208] Firebase.Platform.FirebaseHandler:Update ()
 #8 mono_jit_runtime_invoke
 #9 do_runtime_invoke
 #10 mono_runtime_invoke
 #11 scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool)
 #12 ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool)
 #13 MonoBehaviour::CallMethodIfAvailable(int)
 #14 MonoBehaviour::CallUpdateMethod(int)
 #15 void BaseBehaviourManager::CommonUpdate<BehaviourManager>()
 #16 BehaviourManager::Update()
 #17 InitPlayerLoopCallbacks()::UpdateScriptRunBehaviourUpdateRegistrator::Forward()
 #18 ExecutePlayerLoop(NativePlayerLoopSystem*)
 #19 ExecutePlayerLoop(NativePlayerLoopSystem*)
 #20 PlayerLoop()
 #21 PlayerLoopController::UpdateScene(bool)
 #22 PlayerLoopController::UpdateSceneIfNeeded()
 #23 Application::TickTimer()
 #24 -[EditorApplication TickTimer]
 #25 __NSFireTimer
 #26 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__
 #27 __CFRunLoopDoTimer
 #28 __CFRunLoopDoTimers
 #29 __CFRunLoopRun
 #30 CFRunLoopRunSpecific
 #31 RunCurrentEventLoopInMode
 #32 ReceiveNextEventCommon
 #33 _BlockUntilNextEventMatchingListInModeWithFilter
 #34 _DPSNextEvent
 #35 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]
 #36 -[NSApplication run]
 #37 NSApplicationMain
 #38 EditorMain(int, char const**)
 #39 main
 #40 start

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