Skip to content
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

Permission Denied #2

Open
marcodeluca opened this issue Jan 20, 2018 · 2 comments
Open

Permission Denied #2

marcodeluca opened this issue Jan 20, 2018 · 2 comments

Comments

@marcodeluca
Copy link

Hey there,

Curious to check out the app just for fun. I'm getting a permission denied, something to do with the firebase connection. Your setup instructions:

Rename src/firebase/settings.js.sample to src/firebase/settings.js and paste it the firebase configuration project

You don't have a firebase dir, "settings.js.sample" is located in the /api folder. I've never used firebase before but Im pretty sure I've set things up properly. My specific errors:

FIREBASE WARNING: set at /boards/-L3JvCzYKK6M-bEfSzES failed: permission_denied

Uncaught (in promise) Error: PERMISSION_DENIED: Permission denied
at eval (Repo.js?6ebd:510)
at Object.exports.exceptionGuard (util.js?54b5:556)
at Repo.callOnCompleteCallback (Repo.js?6ebd:501)

etc

Any suggestions?

@lgortm
Copy link

lgortm commented May 8, 2018

Hi,
I'm also new to Firebase and had the same error, but i managed to resolve it.

In the firebase console, you have to select database from left sidebar and choose "Realtime database" from top dropdown menu (Default is Cloud firestore).

Next select Rules tab and change the contents to
{
"rules": {
".read": true,
".write": true
}
}

It will make the database writable, but open to anyone.

@gonzaloserrano
Copy link

@lgortm fix worked for me, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants