Skip to content
This repository was archived by the owner on Sep 4, 2020. It is now read-only.
This repository was 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

@warphick

Description

@warphick

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions