Replies: 1 comment
-
Same error, noone? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a Flutter application that uses FirebaseAuth. I encountered this error:
The AsyncFrameError is thrown at the line:
FirebaseAuth.instance.signInWithEmailAndPassword()
and the execution hits an internal breakpoint and pauses at that line.
Minimalistic code to reproduce the above error:
Explanation: The calling function
crashIt()
is async. It deliberately raises an exception.From within
crashIt()
, FirebaseAuth methodsignInWithEmailAndPassword()
is invoked through another async function call. This should normally throw the exception at the exact line containing thethrow()
. But it stops execution at the linesignInWithEmailAndPassword()
and raises the error 'Expression evaluation in async frames is not supported'.As another experiment, remove the async keyword and modify the calling function to be synchronous. Now the AsyncFrameError error vanishes; the exception is thrown from the correct place.
Can someone please explain this behavior?
Beta Was this translation helpful? Give feedback.
All reactions