-
Notifications
You must be signed in to change notification settings - Fork 625
Update RTDB Error message to point to GitHub #684
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
a7402dc
to
5662b50
Compare
5662b50
to
73e784a
Compare
cc @katowulf |
/test device-check-changed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
YEEEES
return "A symbol that the Firebase Database SDK depends on failed to load. This usually " | ||
+ "indicates that your project includes an incompatible version of another Firebase " | ||
+ "dependency. If updating your dependencies to the latest version does not resolve " | ||
+ "this issue, please file a report at https://github.com/firebase/firebase-android-sdk"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want to be more helpful, change these URLs to https://github.com/firebase/firebase-android-sdk/issues/new?template=bug.md
If you want to be less helpful, change it to "on github" 😛
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left it as is for now. I deem it to be the right level of helpfulness :)
} else if (t instanceof DatabaseException) { | ||
// Exception should be self-explanatory and they shouldn't contact support. | ||
return ""; | ||
} else { | ||
return "Uncaught exception in Firebase Database runloop (" | ||
+ FirebaseDatabase.getSdkVersion() | ||
+ "). Please report to [email protected]"; | ||
+ "). If this is not a problem with your app, please file an issue at " | ||
+ " https://github.com/firebase/firebase-android-sdk"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW- You could add something about "make sure you're using the latest version of the SDK" if you want to potentially decrease noise level a little more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added
This PR updates the public facing error message that the RTDB shows when all else fails.
It special-cases NoClassDefFoundErrors as these are very common lately (due to the changes in Auth integration) and generally recommends GitHub over our email for any other issues.