Integrar funções do Cloud Run ao Firestore avaliações
7082 avaliações
Boris Ricardo M. · Revisado há about 1 year
Aurika T. · Revisado há about 1 year
Enrique Antonio S. · Revisado há about 1 year
Luiz T. · Revisado há about 1 year
Carlos Eduardo R. · Revisado há about 1 year
Upender T. · Revisado há about 1 year
Kiran K. · Revisado há about 1 year
Paige G. · Revisado há about 1 year
Vishakha Z. · Revisado há about 1 year
Michal S. · Revisado há about 1 year
no service account for cloud function and also cannot create one
Kai-Yuan H. · Revisado há about 1 year
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. · Revisado há about 1 year
It finally worked... I still don't know what was wrong before...
Aurélio C. · Revisado há about 1 year
Pratip B. · Revisado há about 1 year
Rizki F. · Revisado há about 1 year
Steffen P. · Revisado há about 1 year
no service account for cloud function and also cannot create one
Kai-Yuan H. · Revisado há about 1 year
Nikhil K. · Revisado há about 1 year
Mohd A. · Revisado há about 1 year
Luis G. · Revisado há about 1 year
Leontinus Y. · Revisado há about 1 year
Jet F. · Revisado há about 1 year
Jorge M. · Revisado há about 1 year
Luis Rafael M. · Revisado há about 1 year
Jorge Luis E. · Revisado há about 1 year
Não garantimos que as avaliações publicadas sejam de consumidores que compraram ou usaram os produtos. As avaliações não são verificadas pelo Google.