DEV Community

Murphy Randle
Murphy Randle

Posted on

2 2

Firestore permissions error and what to do about it

While writing a "cloud function" on Firebase, my computer couldn't write to firestore while my co-worker's computer could. No matter how many times I logged out and logged in, I got this error:

error: { Error: Missing or insufficient permissions.
    at /.../functions/node_modules/grpc/src/client.js:554:15 code: 7, metadata: Metadata { _internal_repr: {} } }
Enter fullscreen mode Exit fullscreen mode

The problem turned out to be related to using firebase logout and firebase login again. This reply to the GitHub issue provides a workaround:

https://github.com/firebase/firebase-tools/issues/344#issuecomment-303848830

Specifically:

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs