Unity iOS - Getting System.AggregateException during SignInWithCredentialAsync

476 views
Skip to first unread message

t...@bigtalestudios.com

unread,
Jun 21, 2017, 10:49:10 AM6/21/17
to Firebase Google Group

Here is stack log from xcode, any ideas?


SignInWithCredentialAsync encountered an error: Exception of type 'System.AggregateException' was thrown.

UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])

UnityEngine.Logger:Log(LogType, Object)

UnityEngine.Debug:LogError(Object)

GooglePlayLogin:<FirebaseAuth>m__0(Task`1)

System.Threading.Tasks.<ContinueWith>c__AnonStorey0:<>m__0(Task)

System.Threading.Tasks.<ContinueWith>c__AnonStorey2:<>m__0(Task)

System.Threading.Tasks.<ContinueWith>c__AnonStorey1:<>m__0()

System.Threading.Tasks.Task:<immediateExecutor>m__1(Action)

System.Threading.Tasks.Task`1:RunContinuations()

System.Threading.Tasks.Task`1:TrySetException(AggregateException)

System.Threading.Tasks.TaskCompletionSource`1:TrySetException(Exception)

System.Threading.Tasks.TaskCompletionSource`1:SetException(Exception)

Firebase.Auth.<GetTask>c__AnonStorey0:<>m__0()

Firebase.Auth.Future_User:SWIG_CompletionDispatcher(Int32)

Firebase.AppUtil:PollCallbacks()

Firebase.FirebaseHandler:Update()

Anthony Maurice

unread,
Jun 21, 2017, 6:42:07 PM6/21/17
to fireba...@googlegroups.com
If you don't mind, could you share some of the code around this, such as how you get the Credential that you pass into it?

As for getting more useful information out of the exception, when you get the exception could try something along the lines of:
foreach (var e in task.Exception.Flatten().InnerExceptions) {
  LogError(e);
}

AggregateExceptions are basically wrappers around other exceptions as they are thrown, so to get useful information out of them, you need to look at the InnerException(s).

Please let me know what you see, so we can help debug your issue.

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/0ab6e703-3c36-4634-af60-3123897c5b64%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages