question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Some errors being swallowed

See original GitHub issue

Firebase UI appears to swallow some errors, making it frustrating to debug. For example, it has been failing at this line and no error is shown in console. The signin process works without problems until completion where it shows a progress bar, the progress bar then disappears, and the app does nothing. It just sits there, not signed in, but not showing any errors.

After putting a try block around the problem, it reports:

{code: "auth/argument-error", message: "signInWithCredential failed: First argument "credential" must be a valid credential."}

Then inspecting the credential, it is:

xg {Db: "user@domain", td: "password", providerId: "password"}

I assume uglify has made Firebase UI out of sync with Firebase, but I don’t know which is the cause, or how to resolve. Any ideas much appreciated, but making this issue because Firebase UI should have thrown the error rather than swallowing it (causing me hours of debugging fun 😞).

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
nicolasgarniercommented, Aug 30, 2018

FYI firebase is now a peer dependency rather than a dependency so the double import issues shouldn’t happen because of firebaseui anymore.

Assigning to @bojeil-google regarding the error swallowing issue.

0reactions
bojeil-googlecommented, Aug 30, 2018

This should be fixed now. Please re-open if you have any problems.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error hiding - Wikipedia
When errors are swallowed, these purposes can't be accomplished. Information about the error is lost, which makes it very hard to track down...
Read more >
Errors being swallowed? · Issue #307 · aws/aws-sdk-js - GitHub
The following code hangs for me (after outputting done): var AWS = require('aws-sdk') var ec2 = new AWS.EC2() ec2.
Read more >
Why do programmers sometimes silently swallow exceptions?
I'm very unlikely to just silently swallow the base Exception class though, for any reason. I'd at least try to log the error....
Read more >
How to prevent promises swallowing errors ? - GeeksforGeeks
In this article, we will try to understand how we may prevent the promises swallowing errors using several predefined techniques provided by ...
Read more >
Swallowed Exceptions: The Silent Killer of Java Applications
In this post, we're looking at understanding the negative impact of swallowed exceptions and learning how to fix them.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found