firebaseui-web icon indicating copy to clipboard operation
firebaseui-web copied to clipboard

Error: INTERNAL ASSERTION FAILED: Pending promise was never set

Open jonathon-love opened this issue 2 years ago • 45 comments

[REQUIRED] Describe your environment

  • Operating System version: Ubuntu 20.04
  • Browser version: numerous
  • Firebase UI version: 6.0.1
  • Firebase SDK version: numerous

[REQUIRED] Describe the problem

when using the web demo (the demo from this repo), logging in using the microsoft login provider does not complete correctly. the signInSuccessWithAuthResult() callback is never called. instead an error is thrown:

Error: INTERNAL ASSERTION FAILED: Pending promise was never set

Screen Shot 2022-04-06 at 14 33 06

jonathon-love avatar Apr 06 '22 04:04 jonathon-love

here's the problem occuring with the project's online demo:

https://youtu.be/sK7IctXsDC4

in the firebaseui demo, onAuthEvent() is never called. however, if you run the firebase quickstart microsoft demo, that same error is thrown, however the onAuthEvent() is called. see here:

https://youtu.be/pRidN38YQps

i'll add that the firebaseui-web sometimes does work ... often the first time i interact with it, it "just works", but in any sort of log back out, open a private window, try again, testing dev workflow ... it stops working. you see this in the js quickstart demo ... the first time i try it, it works, but the second time it fails. this error is more common in firefox too ... i still do get it to happen in chrome though.

jonathon-love avatar Apr 08 '22 00:04 jonathon-love

Hi, thanks for filing this issue! We are unable to promise any timeline for this, but if others also have this issue, adding a +1 on this issue can help us prioritize adding this to the roadmap.

(Googler-only internal tracking bug: b/228618898)

lisajian avatar Apr 08 '22 18:04 lisajian

+1

ArturVRSampaio avatar Apr 10 '22 00:04 ArturVRSampaio

+1

dropmann avatar Apr 15 '22 23:04 dropmann

hi,

i think it's important for the firebaseui project to be more upfront about this limitation ... that the microsoft login only works intermittently ... i think many people will see the promise of firebaseui -- a project that allows easy log in to all providers -- as compelling, invest the hours into incorporating it into their project, only to find that it doesn't live up to that promise.

the caveat that it doesn't really work with microsoft log in needs to be front and center in the documentation, along with communicating that addressing this short-coming isn't really a priority:

We are unable to promise any timeline for this

we would never have spent the time incorporating firebaseui had we understood this limitation.

jonathon-love avatar Apr 25 '22 00:04 jonathon-love

FWIW I'm not able to reproduce in Chrome v100, MacOS. What flavor of microsoft accounts are you experiencing this with?

jamesdaniels avatar Apr 25 '22 17:04 jamesdaniels

i just reproduced (first attempt) using one of those @outlook.com accounts ... i think it's more common in ff than chrome, but i've definitely seen it in chrome.

jonathon-love avatar Apr 25 '22 23:04 jonathon-love

+1. This happens for me in Firefox - login with Facebook.

Sydney-o9 avatar Apr 26 '22 15:04 Sydney-o9

+1 in Firefox

MuhammadM1998 avatar Jun 05 '22 16:06 MuhammadM1998

+1 in chrome mobile version 101.0.4951

aizaiz avatar Jun 06 '22 07:06 aizaiz

+1

9jaGuy avatar Jun 10 '22 13:06 9jaGuy

+1

gopak avatar Jun 29 '22 08:06 gopak

+1

vinaya-kloudle avatar Jul 01 '22 14:07 vinaya-kloudle

+1

Gamewise avatar Jul 23 '22 00:07 Gamewise

It would be great if this could be fixed or the limitation made clearer in the documentation

Gamewise avatar Jul 23 '22 00:07 Gamewise

+1

michi88 avatar Sep 15 '22 12:09 michi88

+1

crazould avatar Sep 16 '22 17:09 crazould

+1

johanrd avatar Sep 28 '22 15:09 johanrd

+1

AdrianC47 avatar Sep 28 '22 22:09 AdrianC47

I had this problem on FireFox with the sign in with Google as well.

Ayodelearog avatar Oct 04 '22 09:10 Ayodelearog

+1 in chrome mobile version 99.0.4844

0xindiebruh avatar Oct 23 '22 05:10 0xindiebruh

+1 on Android 13, Chrome Mobile 106.0.5249.126

lukasvan3l avatar Oct 25 '22 13:10 lukasvan3l

+1

jordankkk avatar Nov 01 '22 11:11 jordankkk

+1

ismaelprzc avatar Nov 02 '22 07:11 ismaelprzc

+1

pbilka46 avatar Nov 07 '22 09:11 pbilka46

+1

Running Chrome v107.0.5304.110 on LinuxMint 10.3

Happened once trying to login via Google Login, using custom firebase login (not firebaseui package). Works fine on Windows machine

trwinowiecki avatar Dec 04 '22 19:12 trwinowiecki

Same problem on Chrome 108.0.0 Mac os 10.15.7

andirsun avatar Dec 21 '22 14:12 andirsun

I have this problem with SignInWithPopup (Firebase Web SDK v9). The popup pops and 3s later it closes with this error message:

Uncaught (in promise) FirebaseError: Firebase: Error (auth/popup-closed-by-user).

then about 8s later on this error message shows in the console:

@firebase/auth: Auth (9.15.0): INTERNAL ASSERTION FAILED: Pending promise was never set

What's weird is that the Sign in seems to work as I am able to catch the user information in the onAuthStateChanged listener. But is not persisted between refreshes.

vdegenne avatar Dec 27 '22 23:12 vdegenne

I have this problem with SignInWithPopup (Firebase Web SDK v9). The popup pops and 3s later it closes with this error message:

Uncaught (in promise) FirebaseError: Firebase: Error (auth/popup-closed-by-user).

then about 8s later on this error message shows in the console:

@firebase/auth: Auth (9.15.0): INTERNAL ASSERTION FAILED: Pending promise was never set

What's weird is that the Sign in seems to work as I am able to catch the user information in the onAuthStateChanged listener. But is not persisted between refreshes.

I had a similar problem, and it was because I was using the ip 127.0.0.1 and it did not belong to an authorized domain. I changed to localhost and it worked again. You can go to the firebase configuration, and check the authorized domains. Hope this can help you

jonduttweiler avatar Dec 30 '22 14:12 jonduttweiler

Any updates on this? seeing same error on Google login running on Firefox Really hoping I don't have spend time undoing all the Firebase integration...

My use started happening similar to Jonathon's where I cleared the cache data on signout.

mikku489 avatar Dec 31 '22 02:12 mikku489