You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was able to fix it by: gcloud projects add-iam-policy-binding PROJECT_ID --member=serviceAccount:ext-firestore-algolia-search@PROJECT_ID.iam.gserviceaccount.com --role=roles/cloudfunctions.invoker
2.- I created a new API in Algolia key as recommended in the docs with the following permissions: “addObject”, “deleteObject”, “listIndexes”, “deleteIndex”, “editSettings”, and “settings”.
CF logs:
"Error: Unhandled error
at entryFromArgs (/workspace/node_modules/firebase-functions/lib/logger/index.js:130:19)
at Object.error (/workspace/node_modules/firebase-functions/lib/logger/index.js:116:11)
at /workspace/node_modules/firebase-functions/lib/common/providers/tasks.js:70:24
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)"
transporterStackTrace: [
0: {
host: {3}
request: {6}
response: {
content: "{"message":"Not enough rights to add an object near line:1 column:288","status":400}"
isTimedOut: false
status: 400
}
triesLeft: 3
}]}
Solution: had to add the Admin key.
The text was updated successfully, but these errors were encountered:
Hey @JFGHT I will look into this. The Admin key is powerful and should be used with caution. The scoped keys should have worked. Can you send me a screenshot of the scoped key details minus sensitive data for me to review.
Finally could make it work after 1.1.1 release but two problems appeared:
1.- Permission error from the schedule tasks. Pasting here the logs of the schedule directly:
I was able to fix it by:
gcloud projects add-iam-policy-binding PROJECT_ID --member=serviceAccount:ext-firestore-algolia-search@PROJECT_ID.iam.gserviceaccount.com --role=roles/cloudfunctions.invoker
2.- I created a new API in Algolia key as recommended in the docs with the following permissions: “addObject”, “deleteObject”, “listIndexes”, “deleteIndex”, “editSettings”, and “settings”.
CF logs:
Solution: had to add the Admin key.
The text was updated successfully, but these errors were encountered: