Search code examples
javascripterror-handlingreact-reduxsingle-page-applicationreact-redux-firebase

PERMISSION_DENIED: Permission denied


I am developing a single page application using react, redux and firebase. When a user logged in he gets an error.

PERMISSION_DENIED: Permission denied
▼ 5 stack frames were expanded.
(anonymous function)
E:/React/React Projects-2/src/core/Repo.ts:632
exceptionGuard
E:/React/React Projects-2/src/core/util/util.ts:585
Repo.callOnCompleteCallback
E:/React/React Projects-2/src/core/Repo.ts:624
(anonymous function)
E:/React/React Projects-2/src/core/Repo.ts:476
(anonymous function)
E:/React/React Projects-2/src/core/PersistentConnection.ts:444
▲ 5 stack frames were expanded.
This screen is visible only in development. It will not appear if the app crashes in production.
Open your browser’s developer console to further inspect this error.  Click the 'X' or hit ESC to dismiss this message.

Solution

  • This error is due to the firebase realtime database rules. You can get rid of this just by changing the rules.