Integrate Cloud Run Functions with Firestore Reviews
6901 reviews
Paige G. · Reviewed about 1 year ago
Vishakha Z. · Reviewed about 1 year ago
Michal S. · Reviewed about 1 year ago
no service account for cloud function and also cannot create one
Kai-Yuan H. · Reviewed about 1 year ago
There is an error in the code: student_01_5acd89804cdb@cloudshell:~/firestore_functions (qwiklabs-gcp-00-d0351ee6b8d4)$ gcloud functions deploy newCustomer --gen2 --runtime=nodejs20 --region=us-west1 --trigger-location=us-west1 --source=. --entry-point=newCustomer --trigger-event-filters=type=google.cloud.firestore.document.v1.created --trigger-event-filters=database='(default)' --trigger-event-filters-path-pattern=document='customers/{name}' --set-secrets '/etc/secrets/api_cred/latest=api-cred:latest' Preparing function...done. X Updating function (may take a while)... - [Build] Build in progress... Logs are available at [https://console.cloud.google.com/cloud-build/builds;region=us-west1/03239f01-b6da-4c2a-a44d-2fc6e6553374?project=950238 279318] . [Service] . [Trigger] . [ArtifactRegistry] . [Healthcheck] . [Triggercheck] Failed. ERROR: (gcloud.functions.deploy) OperationError: code=3, message=Build failed with status: FAILURE and message: /workspace/index.js:62 const secret = await fs.readFile('/etc/secrets/api_cred/latest', { encoding: 'utf8' }); ^^^^^ SyntaxError: await is only valid in async functions and the top level bodies of modules at wrapSafe (node:internal/modules/cjs/loader:1281:20) at checkSyntax (node:internal/main/check_syntax:78:3) Node.js v20.16.0. For more details see the logs at https://console.cloud.google.com/cloud-build/builds;region=us-west1/03239f01-b6da-4c2a-a44d-2fc6e6553374?project=950238279318. student_01_5acd89804cdb@cloudshell:~/firestore_functions (qwiklabs-gcp-00-d0351ee6b8d4)$
Marlon C. · Reviewed about 1 year ago
It finally worked... I still don't know what was wrong before...
Aurélio C. · Reviewed about 1 year ago
Pratip B. · Reviewed about 1 year ago
Rizki F. · Reviewed about 1 year ago
Steffen P. · Reviewed about 1 year ago
no service account for cloud function and also cannot create one
Kai-Yuan H. · Reviewed about 1 year ago
Nikhil K. · Reviewed about 1 year ago
Mohd A. · Reviewed about 1 year ago
Luis G. · Reviewed about 1 year ago
Leontinus Y. · Reviewed about 1 year ago
Jet F. · Reviewed about 1 year ago
Jorge M. · Reviewed about 1 year ago
Luis Rafael M. · Reviewed about 1 year ago
Jorge Luis E. · Reviewed about 1 year ago
Jorge M. · Reviewed about 1 year ago
90311034 Mariana A. · Reviewed about 1 year ago
Daniel Alejandro P. · Reviewed about 1 year ago
Claudio C. · Reviewed about 1 year ago
Baptiste B. · Reviewed about 1 year ago
Luca F. · Reviewed about 1 year ago
Luis G. · Reviewed about 1 year ago
We do not ensure the published reviews originate from consumers who have purchased or used the products. Reviews are not verified by Google.