ERROR Error: permission_denied at /items: Client doesn't have permission to access the desired data.
at G (database.js:209)
at Object.G (database.js:213)
at database.js:173
at Ag.webpackJsonp.../../../../firebase/database.js.g.wd (database.js:178)
at og.webpackJsonp.../../../../firebase/database.js.og.wd (database.js:168)
at Yf.Xf (database.js:166)
at ag (database.js:150)
at WebSocket.Ia.onmessage (database.js:149)
at WebSocket.wrapFn [as __zone_symbol___onmessage] (zone.js:1056)
at ZoneDelegate.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:424)
Looks like your firebase database rules are set to .read/write = false. Go to your firebase console > realtime database > rules. You can manually change them here. For additional information also see: https://firebase.google.com/docs/database/security/
Hey @amitsinghv! What @lehrenberg is the cast. You likely have your default rules set to authenticated only. For development you can change it to read true and write true.
Better, you should keep steps for that as well. Its will be great for new
people.
On Fri, Jul 7, 2017 at 9:52 PM, David East notifications@github.com wrote:
Hey @amitsinghv https://github.com/amitsinghv! What @lehrenberg
https://github.com/lehrenberg is the cast. You likely have your default
rules set to authenticated only. For development you can change it to read
true and write true.—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/angular/angularfire2/issues/1059#issuecomment-313728145,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ATMdxmU1Ioqxd1t5Vw4rn35O2JIdOd-cks5sLls5gaJpZM4OPN3U
.
--
Regards,
Amit Kumar Singh
Software Engineer, Voonik
+91 8095709110
Also, this has happened to me. I was logged in with the incorrect Google account at the time, the moment I swapped to the correct one and reloaded, it all started working again. Hope it helps.
Context: Ionic / Firebase project
For anyone else having this issue, try logging out and then back in with the same account. Your session could have expired.
I have the same issue except I am logged in to my only google account and read/write are enabled.
I have tried logging in and out several times.
Any other suggestions?
Most helpful comment
Looks like your firebase database rules are set to .read/write = false. Go to your firebase console > realtime database > rules. You can manually change them here. For additional information also see: https://firebase.google.com/docs/database/security/