ERROR FirebaseError: Missing or insufficient permissions. #4599
Unanswered
mulkrajsingh
asked this question in
Q&A
Replies: 2 comments 3 replies
-
Ok, I'm just guessing here. But without having more information I would say that when you query for the first time on load, your user might not be authenticated and thus your request is failing (maybe |
Beta Was this translation helpful? Give feedback.
1 reply
-
Are you using the alpha SDK, or the production SDK? What version number is it? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Now, before you suggest to change the rules.
It's an angular app and when the page is first loaded it shows the following error. But if I route to another tab and come back to the initial tab the data is fetched without any errors.
ERROR FirebaseError: Missing or insufficient permissions.
at new n (http://localhost:4200/vendor.js:116763:23)
at http://localhost:4200/vendor.js:125903:28
at http://localhost:4200/vendor.js:125904:18
at n.onMessage (http://localhost:4200/vendor.js:125937:10)
at http://localhost:4200/vendor.js:125843:26
at http://localhost:4200/vendor.js:125874:37
at http://localhost:4200/vendor.js:121470:31
at ZoneDelegate.invoke (http://localhost:4200/polyfills.js:377:30)
at Zone.run (http://localhost:4200/polyfills.js:136:47)
at http://localhost:4200/polyfills.js:870:40
I have browsed stackoverflow and youtube in search of an possible explanation and solution but everywhere the answer is same. That is to change the rules. But I am getting this error in both staging and production.
Thanks in advance for your time and effort.
[Edit]: Also when I route back to the initial tab, subscribe is called twice, thus making the total number of objects twice as original.
Beta Was this translation helpful? Give feedback.
All reactions