리뷰 Cloud Run 함수를 Firestore와 통합하기개

리뷰 7128개

Aurika T. · 대략 1년 전에 리뷰됨

Enrique Antonio S. · 대략 1년 전에 리뷰됨

Luiz T. · 대략 1년 전에 리뷰됨

Carlos Eduardo R. · 대략 1년 전에 리뷰됨

Upender T. · 대략 1년 전에 리뷰됨

Kiran K. · 대략 1년 전에 리뷰됨

Paige G. · 대략 1년 전에 리뷰됨

Vishakha Z. · 대략 1년 전에 리뷰됨

Michal S. · 대략 1년 전에 리뷰됨

no service account for cloud function and also cannot create one

Kai-Yuan H. · 대략 1년 전에 리뷰됨

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. · 대략 1년 전에 리뷰됨

It finally worked... I still don't know what was wrong before...

Aurélio C. · 대략 1년 전에 리뷰됨

Pratip B. · 대략 1년 전에 리뷰됨

Rizki F. · 대략 1년 전에 리뷰됨

Steffen P. · 대략 1년 전에 리뷰됨

no service account for cloud function and also cannot create one

Kai-Yuan H. · 대략 1년 전에 리뷰됨

Nikhil K. · 대략 1년 전에 리뷰됨

Mohd A. · 대략 1년 전에 리뷰됨

Luis G. · 대략 1년 전에 리뷰됨

Leontinus Y. · 대략 1년 전에 리뷰됨

Jet F. · 대략 1년 전에 리뷰됨

Jorge M. · 대략 1년 전에 리뷰됨

Luis Rafael M. · 대략 1년 전에 리뷰됨

Jorge Luis E. · 대략 1년 전에 리뷰됨

Jorge M. · 대략 1년 전에 리뷰됨

Google은 게시된 리뷰가 제품을 구매 또는 사용한 소비자에 의해 작성되었음을 보증하지 않습니다. 리뷰는 Google의 인증을 거치지 않습니다.