firebase ui error debugging

39 views
Skip to first unread message

Ryan Brown

unread,
Feb 22, 2018, 5:59:17 PM2/22/18
to Firebase Google Group
I'm trying to use FirebaseUI in an ionic app and I'm getting a strange exception after the signin redirect:

Is there some way I can build a debug version of firebase.js so I can get a readable stack trace to debug what's going on? The instructions at https://github.com/firebase/firebase-js-sdk aren't super helpful.
I ran yarn dev and it built some .js files, but it seems like they're still compiled.

Kato Richardson

unread,
Feb 23, 2018, 11:43:07 AM2/23/18
to Firebase Google Group
Hi Ryan,

You can turn on debug logging to see what's happening at the socket level:

JS:  firebase.database.enableLogging(true);
iOS:  [FIRDatabase setLoggingEnabled:YES];
Android:  FirebaseDatabase.getInstance().setLogLevel(Logger.Level.DEBUG);

Most likely, you're establishing a listener (which opens the socket connection) and then the socket is getting severed when the page redirects. So it's likely a benign error. But I'm not that savvy on Ionic so there could be more here.

☼, Kato


--
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-tal...@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/5565da9c-8f52-4e30-ac8c-b88550f342c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--

Kato Richardson | Developer Programs Eng | kato...@google.com | 775-235-8398

Kato Richardson

unread,
Feb 23, 2018, 11:43:42 AM2/23/18
to Firebase Google Group
Also note that the Firebase JS SDK is open sourced.
Reply all
Reply to author
Forward
0 new messages