Firebase Cloud Functions Firestore Trigger produces: Error: 7 PERMISSION_DENIED: Missing or insufficient permissions

后端 未结 6 614
囚心锁ツ
囚心锁ツ 2020-12-29 13:48

I\'m trying to use a Firebase Cloud Function to update a document within my Firestore database, when one of my documents has been updated using a trigger. The trigger is cal

6条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-29 14:12

    I've met the same error and have not found the solution anywhere so I post it here if it can help someone...

    We use 2 firebase projects (DEV, PROD) and deploy the same functions on both. The PERMISSION_DENIED appears also when you specify a wrong projectId in :

    admin.initializeApp({projectId: 'your_project_id'});
    

提交回复
热议问题