New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught (in promise) FirebaseError: Missing or insufficient permissions. #369
Comments
When you look at your Firestore rules, they should match:
If you do not allow read, you may see this issue in the client. |
That seems to be a separate issue, unrelated to Firebase permissions, and may be related to an error on the server-side implementation that is causing the server to fail early so that it is not adding the CORS header to the response. |
and you think you can help me solve this ?? |
Are you noticing any errors in the server? |
What is 'smart-home-nodejs/frontend/functions'? This project is designed to use App Engine, not cloud functions. |
Looking at the left-hand of the screen, the issue may be not including the smart-home-key.json while also running the service through ngrok (#366). |
1+ #370 where is the solution? |
It seems like there is an issue in your server-side App Engine implementation that is causing the implementation to crash. |
and this problem is on our side? or is it something that is wrong in the example? |
Without seeing what logs are being sent in your server, it is hard to identify why it is crashing. |
Where can I go to get this log? |
If it's hosted on App Engine, you can go to http://console.cloud.google.com/logs/viewer |
I use Firebase and the sample servers. How can I solve the problem? and where can I get the log? |
If you go to the link above you should be able to view server logs. |
is there, do you think you can help me? |
None of the included logs contain an error |
So why on my smart home node server js (NGROk) do not seem like devices that I create on the smart frontend server at home? |
You're using ngrok for the server? |
yes it is my local server. and I want to simulate (add) devices on it |
Okay. In that case, the problem is happening because the API calls are being made to a URL that does not exist. You'll need to follow a few steps as described in #366 to update your database connections, and update the API endpoint to your ngrok URL. |
is always giving error |
It seems the error is related to the command |
This my error
|
Can you help me out |
I don't know if this is the issue here, but when creating a new database in firebase, the default permissions are set to "allow everything for 1 week after creation". This looks something like this:
You can extend the permitted time by modifying |
I had the same error, And after reading everything in the comments section, all i did was change it from
to this
so basically allow read and write indefinitely, and my database showed up |
rules_version = '2';
//this code underneath is the thing. go change the date, i change mine 2020 to 2021 |
This is only applicable for development and not advisable for production. I have the same issue when changing rules with auth even though I detached the listener upon logout. edit: I got mine working turns out the error was because of the useEffect in my context provider. This rule below works for me rules_version = '2'; |
@Taaseen71 Hi! :) Where should it be added please? So, which file please? |
@alirehman726 its works thanks man |
@Rian1010 login to https://console.firebase.google.com/, access Cloud Firestore. Thanks @alirehman726 it worked. |
I had the same error, But all i did was changing the rule that works with the date and it worked perfectly. The current request.time was "<" the timestamp.date which invalidates the rule once the date/time elapse the date of the default rule. rules_version = '2'; rules_version = '2'; |
Hi, |
Hi all, I've changed my rules to be more liberal but I still have the same error when I try to
Previously, |
Thanks a lot |
@imadelcass be careful using those rules. They're very insecure and it's not recommended. |
this worked for me thanks for the suggestion |
In firebase -> Cloud Firestore ->Rules, rules_version = '2'; Change To, rules_version = '2'; |
|
I have the same error with firebase store and I don't know how to fix it |
its work to me.. thanks guys |
Hi, can anyone help me fix this error, I'm having a lot of trouble with firebase
The text was updated successfully, but these errors were encountered: