-
Notifications
You must be signed in to change notification settings - Fork 872
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
Error handlers no longer being called for reference listeners, permission denied causes crash #4818
Labels
Comments
joekrill
changed the title
Error handlers no longer being called for reference listeners, permission causes crash
Error handlers no longer being called for reference listeners, permission denied causes crash
Apr 21, 2021
Hi @joekrill, thanks for the report. I was able to replicate the behavior where the error could no longer be caught in the callback using SDK version 8.4.1. I've filed an internal bug for this issue. Please use the working version for the meantime. |
We will get this fixed in the next release. |
Merged
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe your environment
Describe the problem
Attempting to read from a ref with no read permission results in an error:
Uncaught TypeError: Cannot read property 'hasCancelCallback' of undefined
. Stack trace I'm seeing is:The
cancelCallbackOrContext
is no longer being called, either.Previously the error was effectively ignored (and certainly didn't cause the running script to crash), and if a
cancelCallbackOrContext
parameter was provided, it was called.I confirmed this works in SDK v8.3.3.
Steps to reproduce:
[email protected]
.child_added
event listener to a path in which the authenticated user does not have read accessRelevant Code:
The text was updated successfully, but these errors were encountered: