Skip to content

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

Merged
merged 2 commits into from
Aug 5, 2019

Conversation

schmidt-sebastian
Copy link
Contributor

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.

@googlebot googlebot added the cla: yes Override cla label Aug 5, 2019
@schmidt-sebastian schmidt-sebastian force-pushed the mrschmidt/errormsg branch 2 times, most recently from a7402dc to 5662b50 Compare August 5, 2019 16:22
@schmidt-sebastian
Copy link
Contributor Author

cc @katowulf

@schmidt-sebastian
Copy link
Contributor Author

/test device-check-changed

Copy link
Contributor

@mikelehen mikelehen left a 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";
Copy link
Contributor

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" 😛

Copy link
Contributor Author

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";
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added

@schmidt-sebastian schmidt-sebastian merged commit f064044 into master Aug 5, 2019
@schmidt-sebastian schmidt-sebastian deleted the mrschmidt/errormsg branch August 5, 2019 18:51
@firebase firebase locked and limited conversation to collaborators Oct 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants