Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

hanging after Uncaught (in promise): Error: PERMISSION_DENIED: Permission denied Error: #80

Open
warphick opened this issue Oct 25, 2017 · 0 comments

Comments

@warphick
Copy link

Hi,

When attempting to update a database element, I get the above error. The error is correct in that the update fails the validation that has been set in the firebase rules, which prevents updates unless the item's timestamps follows a certain rule.

The failed write, though, hangs the app. I have tried putting a 'reset' to recover but no success:
const promise = this.afoDatabase.object(this.path).update(self);
promise.then(() => {
console.log('data saved to Firebase!')
},
(error) => {
debugger;
this.afoDatabase.reset();
}
);

Page reloads trigger from the write is tried encounter the same error.

Is this an issue with library or my implementation?

thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant