Closed freqq68 closed 4 months ago
Hey sorry. I've not updated this in a long time.
@freqq68, I'm getting these errors in my Vercel logs:
firebase-error [FirebaseError: Missing or insufficient permissions.] {
code: 'permission-denied',
customData: undefined,
toString: [Function (anonymous)]
}
getDocFromFirestore-error [FirebaseError: Missing or insufficient permissions.] {
code: 'permission-denied',
customData: undefined,
toString: [Function (anonymous)]
}
In all likelihood, you're seeing the same problem. It appears that the contemporary default Firebase permissions do not allow access. Not being overly familiar with Firebase these days, I'm currently digging into what the correct Rules for Firebase would look like versus the default:
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if false;
}
}
}
Whilst people on the web and various LLMs will tell you to allow read, write
or similar, this allows anybody to read and write the database, which is obviously bad from a security perspective, but also one of potentially getting an astronomically high bill for someone's abuse of your database.
@freqq68, looking at your screenshot, I can see the problem you're facing:
projectId
should be FIREBASE_PROJECT_ID
apiKey
should be FIREBASE_API_KEY
I'm out of the project now :/ Maybe I retry later. Thank's 🥇
Hello @balsimpson
I get this
I dunno if it's me i'm wrong or is it completly broken ...
here how Iv'e read the credetials
thks