javascriptgoogle-cloud-platformgoogle-cloud-functionsgoogle-cloud-tasks

firebase Cloud task permissioned denied although giving all permissions to service accounts


I'm creating cloud tasks whenever new documentation got added to my firestore but cloud task invocation is failing with error permission denied "message: 'PERMISSION_DENIED(7): HTTP status code 403'"

Here is what I have done: 1- submitting new task (works) enter image description here

2- task is failing with following error: enter image description here

3- I have given all principles mentioned in the internet to selected below: enter image description here

still failing!! any idea what I have missed ?

Thanks!!


Solution

  • After struggling days I found the issue.

    Basically, the URL of the cloud task creation was not correct. I created the cloud function URL based on my firebase location (say europe-central2), however, the cloud function URL trigger should be taken from the cloud platform itself :) as following (as you can see it us-central link):

    enter image description here