Integrate Cloud Run Functions with Firestore Rezensionen
7916 Rezensionen
Erick O. · Vor mehr als ein Jahr überprüft
Jose Fernando E. · Vor mehr als ein Jahr überprüft
Estefanía A. · Vor mehr als ein Jahr überprüft
Boris Ricardo M. · Vor mehr als ein Jahr überprüft
Aurika T. · Vor mehr als ein Jahr überprüft
Enrique Antonio S. · Vor mehr als ein Jahr überprüft
Luiz T. · Vor mehr als ein Jahr überprüft
Carlos Eduardo R. · Vor mehr als ein Jahr überprüft
Upender T. · Vor mehr als ein Jahr überprüft
Kiran K. · Vor mehr als ein Jahr überprüft
Paige G. · Vor mehr als ein Jahr überprüft
Vishakha Z. · Vor mehr als ein Jahr überprüft
Michal S. · Vor mehr als ein Jahr überprüft
no service account for cloud function and also cannot create one
Kai-Yuan H. · Vor mehr als ein Jahr überprüft
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. · Vor mehr als ein Jahr überprüft
It finally worked... I still don't know what was wrong before...
Aurélio C. · Vor mehr als ein Jahr überprüft
Pratip B. · Vor mehr als ein Jahr überprüft
Rizki F. · Vor mehr als ein Jahr überprüft
Steffen P. · Vor mehr als ein Jahr überprüft
no service account for cloud function and also cannot create one
Kai-Yuan H. · Vor mehr als ein Jahr überprüft
Nikhil K. · Vor mehr als ein Jahr überprüft
Mohd A. · Vor mehr als ein Jahr überprüft
Luis G. · Vor mehr als ein Jahr überprüft
Leontinus Y. · Vor mehr als ein Jahr überprüft
Jet F. · Vor mehr als ein Jahr überprüft
Wir können nicht garantieren, dass die veröffentlichten Rezensionen von Verbrauchern stammen, die die Produkte gekauft oder genutzt haben. Die Rezensionen werden von Google nicht überprüft.