From 7bb16b32c9b0d4e18f9fc8835c4bd3ac5ab93cfb Mon Sep 17 00:00:00 2001 From: Nishal John Date: Sun, 17 Mar 2024 02:10:32 +0530 Subject: [PATCH 1/3] [FT] - Remove need for special notes dependency --- firebase-debug.log | 359 ++++++++++++++++++ functions/index.js | 67 +++- package-lock.json | 18 + package.json | 2 + src/App.js | 4 +- src/components/auth.js | 9 +- .../AnimationAssetLibraryModal.js | 16 +- src/pages/AssetLibrary/AssetLibrary.js | 22 +- src/pages/AssetLibrary/AssetLibraryModal.js | 30 +- src/pages/Home.js | 14 +- src/pages/ResourceLibrary/AddResource.js | 6 +- src/pages/ResourceLibrary/ResourceLibrary.js | 2 +- 12 files changed, 503 insertions(+), 46 deletions(-) create mode 100644 firebase-debug.log diff --git a/firebase-debug.log b/firebase-debug.log new file mode 100644 index 0000000..bdee458 --- /dev/null +++ b/firebase-debug.log @@ -0,0 +1,359 @@ +[debug] [2024-01-01T11:42:18.028Z] ---------------------------------------------------------------------- +[debug] [2024-01-01T11:42:18.030Z] Command: C:\Program Files\nodejs\node.exe C:\Users\nisha\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js deploy --only functions +[debug] [2024-01-01T11:42:18.030Z] CLI Version: 12.8.0 +[debug] [2024-01-01T11:42:18.030Z] Platform: win32 +[debug] [2024-01-01T11:42:18.030Z] Node Version: v21.5.0 +[debug] [2024-01-01T11:42:18.031Z] Time: Mon Jan 01 2024 17:12:18 GMT+0530 (India Standard Time) +[debug] [2024-01-01T11:42:18.031Z] ---------------------------------------------------------------------- +[debug] +[debug] [2024-01-01T11:42:18.082Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"] +[debug] [2024-01-01T11:42:18.083Z] > authorizing via signed-in user (john@revox.io) +[debug] [2024-01-01T11:42:18.083Z] [iam] checking project rundownstudiosportal for permissions ["cloudfunctions.functions.create","cloudfunctions.functions.delete","cloudfunctions.functions.get","cloudfunctions.functions.list","cloudfunctions.functions.update","cloudfunctions.operations.get","firebase.projects.get"] +[debug] [2024-01-01T11:42:18.084Z] >>> [apiv2][query] POST https://cloudresourcemanager.googleapis.com/v1/projects/rundownstudiosportal:testIamPermissions [none] +[debug] [2024-01-01T11:42:18.084Z] >>> [apiv2][(partial)header] POST https://cloudresourcemanager.googleapis.com/v1/projects/rundownstudiosportal:testIamPermissions x-goog-quota-user=projects/rundownstudiosportal +[debug] [2024-01-01T11:42:18.084Z] >>> [apiv2][body] POST https://cloudresourcemanager.googleapis.com/v1/projects/rundownstudiosportal:testIamPermissions {"permissions":["cloudfunctions.functions.create","cloudfunctions.functions.delete","cloudfunctions.functions.get","cloudfunctions.functions.list","cloudfunctions.functions.update","cloudfunctions.operations.get","firebase.projects.get"]} +[debug] [2024-01-01T11:42:19.833Z] <<< [apiv2][status] POST https://cloudresourcemanager.googleapis.com/v1/projects/rundownstudiosportal:testIamPermissions 200 +[debug] [2024-01-01T11:42:19.833Z] <<< [apiv2][body] POST https://cloudresourcemanager.googleapis.com/v1/projects/rundownstudiosportal:testIamPermissions {"permissions":["cloudfunctions.functions.create","cloudfunctions.functions.delete","cloudfunctions.functions.get","cloudfunctions.functions.list","cloudfunctions.functions.update","cloudfunctions.operations.get","firebase.projects.get"]} +[debug] [2024-01-01T11:42:19.834Z] >>> [apiv2][query] POST https://iam.googleapis.com/v1/projects/rundownstudiosportal/serviceAccounts/rundownstudiosportal@appspot.gserviceaccount.com:testIamPermissions [none] +[debug] [2024-01-01T11:42:19.834Z] >>> [apiv2][body] POST https://iam.googleapis.com/v1/projects/rundownstudiosportal/serviceAccounts/rundownstudiosportal@appspot.gserviceaccount.com:testIamPermissions {"permissions":["iam.serviceAccounts.actAs"]} +[debug] [2024-01-01T11:42:21.770Z] <<< [apiv2][status] POST https://iam.googleapis.com/v1/projects/rundownstudiosportal/serviceAccounts/rundownstudiosportal@appspot.gserviceaccount.com:testIamPermissions 404 +[debug] [2024-01-01T11:42:21.770Z] <<< [apiv2][body] POST https://iam.googleapis.com/v1/projects/rundownstudiosportal/serviceAccounts/rundownstudiosportal@appspot.gserviceaccount.com:testIamPermissions {"error":{"code":404,"message":"Unknown service account","status":"NOT_FOUND"}} +[debug] [2024-01-01T11:42:21.771Z] [functions] service account IAM check errored, deploy may fail: HTTP Error: 404, Unknown service account {"name":"FirebaseError","children":[],"context":{"body":{"error":{"code":404,"message":"Unknown service account","status":"NOT_FOUND"}},"response":{"statusCode":404}},"exit":1,"message":"HTTP Error: 404, Unknown service account","status":404} +[info] +[info] === Deploying to 'rundownstudiosportal'... +[info] +[info] i deploying functions +[debug] [2024-01-01T11:42:21.773Z] >>> [apiv2][query] GET https://firebase.googleapis.com/v1beta1/projects/rundownstudiosportal [none] +[debug] [2024-01-01T11:42:22.722Z] <<< [apiv2][status] GET https://firebase.googleapis.com/v1beta1/projects/rundownstudiosportal 200 +[debug] [2024-01-01T11:42:22.722Z] <<< [apiv2][body] GET https://firebase.googleapis.com/v1beta1/projects/rundownstudiosportal {"projectId":"rundownstudiosportal","projectNumber":"253506655744","displayName":"RundownStudiosPortal","name":"projects/rundownstudiosportal","resources":{"hostingSite":"rundownstudiosportal"},"state":"ACTIVE","etag":"1_6dd89348-c0aa-4794-89a2-dcf0ccc2699c"} +[info] i functions: preparing codebase default for deployment +[info] i functions: ensuring required API cloudfunctions.googleapis.com is enabled... +[info] i functions: ensuring required API cloudbuild.googleapis.com is enabled... +[info] i artifactregistry: ensuring required API artifactregistry.googleapis.com is enabled... +[debug] [2024-01-01T11:42:22.723Z] >>> [apiv2][query] GET https://serviceusage.googleapis.com/v1/projects/rundownstudiosportal/services/cloudfunctions.googleapis.com [none] +[debug] [2024-01-01T11:42:22.723Z] >>> [apiv2][(partial)header] GET https://serviceusage.googleapis.com/v1/projects/rundownstudiosportal/services/cloudfunctions.googleapis.com x-goog-quota-user=projects/rundownstudiosportal +[debug] [2024-01-01T11:42:22.724Z] >>> [apiv2][query] GET https://serviceusage.googleapis.com/v1/projects/rundownstudiosportal/services/runtimeconfig.googleapis.com [none] +[debug] [2024-01-01T11:42:22.724Z] >>> [apiv2][(partial)header] GET https://serviceusage.googleapis.com/v1/projects/rundownstudiosportal/services/runtimeconfig.googleapis.com x-goog-quota-user=projects/rundownstudiosportal +[debug] [2024-01-01T11:42:22.725Z] >>> [apiv2][query] GET https://serviceusage.googleapis.com/v1/projects/rundownstudiosportal/services/cloudbuild.googleapis.com [none] +[debug] [2024-01-01T11:42:22.725Z] >>> [apiv2][(partial)header] GET https://serviceusage.googleapis.com/v1/projects/rundownstudiosportal/services/cloudbuild.googleapis.com x-goog-quota-user=projects/rundownstudiosportal +[debug] [2024-01-01T11:42:22.725Z] >>> [apiv2][query] GET https://serviceusage.googleapis.com/v1/projects/rundownstudiosportal/services/artifactregistry.googleapis.com [none] +[debug] [2024-01-01T11:42:22.726Z] >>> [apiv2][(partial)header] GET https://serviceusage.googleapis.com/v1/projects/rundownstudiosportal/services/artifactregistry.googleapis.com x-goog-quota-user=projects/rundownstudiosportal +[debug] [2024-01-01T11:42:24.236Z] <<< [apiv2][status] GET https://serviceusage.googleapis.com/v1/projects/rundownstudiosportal/services/runtimeconfig.googleapis.com 200 +[debug] [2024-01-01T11:42:24.236Z] <<< [apiv2][body] GET https://serviceusage.googleapis.com/v1/projects/rundownstudiosportal/services/runtimeconfig.googleapis.com [omitted] +[debug] [2024-01-01T11:42:24.240Z] <<< [apiv2][status] GET https://serviceusage.googleapis.com/v1/projects/rundownstudiosportal/services/artifactregistry.googleapis.com 200 +[debug] [2024-01-01T11:42:24.240Z] <<< [apiv2][body] GET https://serviceusage.googleapis.com/v1/projects/rundownstudiosportal/services/artifactregistry.googleapis.com [omitted] +[info] + artifactregistry: required API artifactregistry.googleapis.com is enabled +[debug] [2024-01-01T11:42:24.251Z] <<< [apiv2][status] GET https://serviceusage.googleapis.com/v1/projects/rundownstudiosportal/services/cloudbuild.googleapis.com 200 +[debug] [2024-01-01T11:42:24.251Z] <<< [apiv2][body] GET https://serviceusage.googleapis.com/v1/projects/rundownstudiosportal/services/cloudbuild.googleapis.com [omitted] +[info] + functions: required API cloudbuild.googleapis.com is enabled +[debug] [2024-01-01T11:42:24.306Z] <<< [apiv2][status] GET https://serviceusage.googleapis.com/v1/projects/rundownstudiosportal/services/cloudfunctions.googleapis.com 200 +[debug] [2024-01-01T11:42:24.307Z] <<< [apiv2][body] GET https://serviceusage.googleapis.com/v1/projects/rundownstudiosportal/services/cloudfunctions.googleapis.com [omitted] +[info] + functions: required API cloudfunctions.googleapis.com is enabled +[debug] [2024-01-01T11:42:24.307Z] >>> [apiv2][query] GET https://firebase.googleapis.com/v1beta1/projects/rundownstudiosportal/adminSdkConfig [none] +[debug] [2024-01-01T11:42:24.825Z] <<< [apiv2][status] GET https://firebase.googleapis.com/v1beta1/projects/rundownstudiosportal/adminSdkConfig 200 +[debug] [2024-01-01T11:42:24.825Z] <<< [apiv2][body] GET https://firebase.googleapis.com/v1beta1/projects/rundownstudiosportal/adminSdkConfig {"projectId":"rundownstudiosportal","storageBucket":"rundownstudiosportal.appspot.com"} +[debug] [2024-01-01T11:42:24.825Z] >>> [apiv2][query] GET https://runtimeconfig.googleapis.com/v1beta1/projects/rundownstudiosportal/configs [none] +[debug] [2024-01-01T11:42:25.213Z] <<< [apiv2][status] GET https://runtimeconfig.googleapis.com/v1beta1/projects/rundownstudiosportal/configs 200 +[debug] [2024-01-01T11:42:25.213Z] <<< [apiv2][body] GET https://runtimeconfig.googleapis.com/v1beta1/projects/rundownstudiosportal/configs {} +[debug] [2024-01-01T11:42:25.214Z] Validating nodejs source +[debug] [2024-01-01T11:42:26.195Z] > [functions] package.json contents: { + "name": "functions", + "description": "Cloud Functions for Firebase", + "scripts": { + "serve": "firebase emulators:start --only functions", + "shell": "firebase functions:shell", + "start": "npm run shell", + "deploy": "firebase deploy --only functions", + "logs": "firebase functions:log" + }, + "engines": { + "node": "18" + }, + "main": "index.js", + "dependencies": { + "firebase-admin": "^11.8.0", + "firebase-functions": "^4.3.1" + }, + "devDependencies": { + "firebase-functions-test": "^3.1.0" + }, + "private": true +} +[debug] [2024-01-01T11:42:26.195Z] Building nodejs source +[info] i functions: Loading and analyzing source code for codebase default to determine what to deploy +[debug] [2024-01-01T11:42:26.196Z] Could not find functions.yaml. Must use http discovery +[debug] [2024-01-01T11:42:26.201Z] Found firebase-functions binary at 'E:\Version Controlled\React\rundown-portal\functions\node_modules\.bin\firebase-functions' +[info] Serving at port 8183 + +[error] (node:34088) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead. +(Use `node --trace-deprecation ...` to show where the warning was created) + +[debug] [2024-01-01T11:42:26.545Z] Got response from /__/functions.yaml {"endpoints":{"restrictunAuthUsers":{"availableMemoryMb":null,"timeoutSeconds":null,"minInstances":null,"maxInstances":null,"ingressSettings":null,"concurrency":null,"serviceAccountEmail":null,"vpc":null,"platform":"gcfv2","labels":{},"blockingTrigger":{"eventType":"providers/cloud.auth/eventTypes/user.beforeCreate","options":{"accessToken":false,"idToken":false,"refreshToken":false}},"entryPoint":"restrictunAuthUsers"},"scheduledFunctionCrontab":{"availableMemoryMb":null,"timeoutSeconds":null,"minInstances":null,"maxInstances":null,"ingressSettings":null,"concurrency":null,"serviceAccountEmail":null,"vpc":null,"platform":"gcfv2","labels":{},"scheduleTrigger":{"schedule":"*/30 * * * *","retryConfig":{"retryCount":null,"maxDoublings":null,"maxRetrySeconds":null,"minBackoffSeconds":null,"maxBackoffSeconds":null},"timeZone":null},"entryPoint":"scheduledFunctionCrontab"}},"specVersion":"v1alpha1","requiredAPIs":[{"api":"identitytoolkit.googleapis.com","reason":"Needed for auth blocking functions"},{"api":"cloudscheduler.googleapis.com","reason":"Needed for scheduled functions."}]} +[info] i functions: preparing functions directory for uploading... +[info] i functions: packaged E:\Version Controlled\React\rundown-portal\functions (67.52 KB) for uploading +[debug] [2024-01-01T11:42:31.592Z] >>> [apiv2][query] GET https://cloudfunctions.googleapis.com/v1/projects/rundownstudiosportal/locations/-/functions [none] +[debug] [2024-01-01T11:42:32.228Z] <<< [apiv2][status] GET https://cloudfunctions.googleapis.com/v1/projects/rundownstudiosportal/locations/-/functions 200 +[debug] [2024-01-01T11:42:32.228Z] <<< [apiv2][body] GET https://cloudfunctions.googleapis.com/v1/projects/rundownstudiosportal/locations/-/functions {} +[debug] [2024-01-01T11:42:32.229Z] >>> [apiv2][query] GET https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/-/functions filter=environment%3D%22GEN_2%22 +[debug] [2024-01-01T11:42:33.852Z] <<< [apiv2][status] GET https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/-/functions 200 +[debug] [2024-01-01T11:42:33.852Z] <<< [apiv2][body] GET https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/-/functions {"functions":[{"name":"projects/rundownstudiosportal/locations/us-central1/functions/restrictunAuthUsers","buildConfig":{"build":"projects/253506655744/locations/us-central1/builds/38867ba1-42b9-451b-a535-ab8aaf6a0e6a","runtime":"nodejs18","entryPoint":"restrictunAuthUsers","source":{"storageSource":{"bucket":"gcf-v2-sources-253506655744-us-central1","object":"restrictunAuthUsers/function-source.zip","generation":"1699092102543707"}},"environmentVariables":{"GOOGLE_NODE_RUN_SCRIPTS":""},"sourceProvenance":{"resolvedStorageSource":{"bucket":"gcf-v2-sources-253506655744-us-central1","object":"restrictunAuthUsers/function-source.zip","generation":"1699092102543707"}},"dockerRegistry":"ARTIFACT_REGISTRY"},"serviceConfig":{"service":"projects/rundownstudiosportal/locations/us-central1/services/restrictunauthusers","timeoutSeconds":60,"environmentVariables":{"FIREBASE_CONFIG":"{\"projectId\":\"rundownstudiosportal\",\"storageBucket\":\"rundownstudiosportal.appspot.com\"}","GCLOUD_PROJECT":"rundownstudiosportal","FIRESTORE_PREFER_REST":"true","EVENTARC_CLOUD_EVENT_SOURCE":"projects/rundownstudiosportal/locations/us-central1/services/restrictunAuthUsers","FUNCTION_TARGET":"restrictunAuthUsers"},"maxInstanceCount":100,"ingressSettings":"ALLOW_ALL","uri":"https://restrictunauthusers-sabx65cz4q-uc.a.run.app","serviceAccountEmail":"253506655744-compute@developer.gserviceaccount.com","availableMemory":"256Mi","allTrafficOnLatestRevision":true,"revision":"restrictunauthusers-00001-yiy","maxInstanceRequestConcurrency":80,"availableCpu":"1"},"state":"ACTIVE","updateTime":"2023-11-04T10:02:46.456954483Z","labels":{"deployment-tool":"cli-firebase","deployment-blocking":"before-create","firebase-functions-hash":"2108845f188a705ca1d6d08cc08b79e2df0b5caf"},"environment":"GEN_2","url":"https://us-central1-rundownstudiosportal.cloudfunctions.net/restrictunAuthUsers"}]} +[info] i functions: ensuring required API identitytoolkit.googleapis.com is enabled... +[info] i functions: ensuring required API cloudscheduler.googleapis.com is enabled... +[debug] [2024-01-01T11:42:33.854Z] >>> [apiv2][query] GET https://serviceusage.googleapis.com/v1/projects/rundownstudiosportal/services/identitytoolkit.googleapis.com [none] +[debug] [2024-01-01T11:42:33.854Z] >>> [apiv2][(partial)header] GET https://serviceusage.googleapis.com/v1/projects/rundownstudiosportal/services/identitytoolkit.googleapis.com x-goog-quota-user=projects/rundownstudiosportal +[debug] [2024-01-01T11:42:33.856Z] >>> [apiv2][query] GET https://serviceusage.googleapis.com/v1/projects/rundownstudiosportal/services/cloudscheduler.googleapis.com [none] +[debug] [2024-01-01T11:42:33.856Z] >>> [apiv2][(partial)header] GET https://serviceusage.googleapis.com/v1/projects/rundownstudiosportal/services/cloudscheduler.googleapis.com x-goog-quota-user=projects/rundownstudiosportal +[debug] [2024-01-01T11:42:35.363Z] <<< [apiv2][status] GET https://serviceusage.googleapis.com/v1/projects/rundownstudiosportal/services/cloudscheduler.googleapis.com 200 +[debug] [2024-01-01T11:42:35.363Z] <<< [apiv2][body] GET https://serviceusage.googleapis.com/v1/projects/rundownstudiosportal/services/cloudscheduler.googleapis.com [omitted] +[info] + functions: required API cloudscheduler.googleapis.com is enabled +[debug] [2024-01-01T11:42:35.366Z] <<< [apiv2][status] GET https://serviceusage.googleapis.com/v1/projects/rundownstudiosportal/services/identitytoolkit.googleapis.com 200 +[debug] [2024-01-01T11:42:35.366Z] <<< [apiv2][body] GET https://serviceusage.googleapis.com/v1/projects/rundownstudiosportal/services/identitytoolkit.googleapis.com [omitted] +[info] + functions: required API identitytoolkit.googleapis.com is enabled +[info] i functions: ensuring required API run.googleapis.com is enabled... +[info] i functions: ensuring required API eventarc.googleapis.com is enabled... +[info] i functions: ensuring required API pubsub.googleapis.com is enabled... +[info] i functions: ensuring required API storage.googleapis.com is enabled... +[debug] [2024-01-01T11:42:35.367Z] >>> [apiv2][query] GET https://serviceusage.googleapis.com/v1/projects/rundownstudiosportal/services/run.googleapis.com [none] +[debug] [2024-01-01T11:42:35.367Z] >>> [apiv2][(partial)header] GET https://serviceusage.googleapis.com/v1/projects/rundownstudiosportal/services/run.googleapis.com x-goog-quota-user=projects/rundownstudiosportal +[debug] [2024-01-01T11:42:35.367Z] >>> [apiv2][query] GET https://serviceusage.googleapis.com/v1/projects/rundownstudiosportal/services/eventarc.googleapis.com [none] +[debug] [2024-01-01T11:42:35.367Z] >>> [apiv2][(partial)header] GET https://serviceusage.googleapis.com/v1/projects/rundownstudiosportal/services/eventarc.googleapis.com x-goog-quota-user=projects/rundownstudiosportal +[debug] [2024-01-01T11:42:35.367Z] >>> [apiv2][query] GET https://serviceusage.googleapis.com/v1/projects/rundownstudiosportal/services/pubsub.googleapis.com [none] +[debug] [2024-01-01T11:42:35.367Z] >>> [apiv2][(partial)header] GET https://serviceusage.googleapis.com/v1/projects/rundownstudiosportal/services/pubsub.googleapis.com x-goog-quota-user=projects/rundownstudiosportal +[debug] [2024-01-01T11:42:35.368Z] >>> [apiv2][query] GET https://serviceusage.googleapis.com/v1/projects/rundownstudiosportal/services/storage.googleapis.com [none] +[debug] [2024-01-01T11:42:35.368Z] >>> [apiv2][(partial)header] GET https://serviceusage.googleapis.com/v1/projects/rundownstudiosportal/services/storage.googleapis.com x-goog-quota-user=projects/rundownstudiosportal +[debug] [2024-01-01T11:42:35.777Z] <<< [apiv2][status] GET https://serviceusage.googleapis.com/v1/projects/rundownstudiosportal/services/run.googleapis.com 200 +[debug] [2024-01-01T11:42:35.777Z] <<< [apiv2][body] GET https://serviceusage.googleapis.com/v1/projects/rundownstudiosportal/services/run.googleapis.com [omitted] +[info] + functions: required API run.googleapis.com is enabled +[debug] [2024-01-01T11:42:36.780Z] <<< [apiv2][status] GET https://serviceusage.googleapis.com/v1/projects/rundownstudiosportal/services/eventarc.googleapis.com 200 +[debug] [2024-01-01T11:42:36.780Z] <<< [apiv2][body] GET https://serviceusage.googleapis.com/v1/projects/rundownstudiosportal/services/eventarc.googleapis.com [omitted] +[info] + functions: required API eventarc.googleapis.com is enabled +[debug] [2024-01-01T11:42:36.916Z] <<< [apiv2][status] GET https://serviceusage.googleapis.com/v1/projects/rundownstudiosportal/services/pubsub.googleapis.com 200 +[debug] [2024-01-01T11:42:36.916Z] <<< [apiv2][body] GET https://serviceusage.googleapis.com/v1/projects/rundownstudiosportal/services/pubsub.googleapis.com [omitted] +[info] + functions: required API pubsub.googleapis.com is enabled +[debug] [2024-01-01T11:42:36.925Z] <<< [apiv2][status] GET https://serviceusage.googleapis.com/v1/projects/rundownstudiosportal/services/storage.googleapis.com 200 +[debug] [2024-01-01T11:42:36.925Z] <<< [apiv2][body] GET https://serviceusage.googleapis.com/v1/projects/rundownstudiosportal/services/storage.googleapis.com [omitted] +[info] + functions: required API storage.googleapis.com is enabled +[info] i functions: generating the service identity for pubsub.googleapis.com... +[info] i functions: generating the service identity for eventarc.googleapis.com... +[debug] [2024-01-01T11:42:36.926Z] >>> [apiv2][query] POST https://serviceusage.googleapis.com/v1beta1/projects/253506655744/services/pubsub.googleapis.com:generateServiceIdentity [none] +[debug] [2024-01-01T11:42:36.926Z] >>> [apiv2][query] POST https://serviceusage.googleapis.com/v1beta1/projects/253506655744/services/eventarc.googleapis.com:generateServiceIdentity [none] +[debug] [2024-01-01T11:42:37.564Z] <<< [apiv2][status] POST https://serviceusage.googleapis.com/v1beta1/projects/253506655744/services/pubsub.googleapis.com:generateServiceIdentity 200 +[debug] [2024-01-01T11:42:37.564Z] <<< [apiv2][body] POST https://serviceusage.googleapis.com/v1beta1/projects/253506655744/services/pubsub.googleapis.com:generateServiceIdentity {"name":"operations/finished.DONE_OPERATION","done":true,"response":{"@type":"type.googleapis.com/google.api.serviceusage.v1beta1.ServiceIdentity","email":"service-253506655744@gcp-sa-pubsub.iam.gserviceaccount.com","uniqueId":"107301363608160170634"}} +[debug] [2024-01-01T11:42:38.474Z] <<< [apiv2][status] POST https://serviceusage.googleapis.com/v1beta1/projects/253506655744/services/eventarc.googleapis.com:generateServiceIdentity 200 +[debug] [2024-01-01T11:42:38.474Z] <<< [apiv2][body] POST https://serviceusage.googleapis.com/v1beta1/projects/253506655744/services/eventarc.googleapis.com:generateServiceIdentity {"name":"operations/finished.DONE_OPERATION","done":true,"response":{"@type":"type.googleapis.com/google.api.serviceusage.v1beta1.ServiceIdentity","email":"service-253506655744@gcp-sa-eventarc.iam.gserviceaccount.com","uniqueId":"106748671713037377987"}} +[debug] [2024-01-01T11:42:38.475Z] >>> [apiv2][query] GET https://firebase.googleapis.com/v1beta1/projects/rundownstudiosportal [none] +[debug] [2024-01-01T11:42:39.428Z] <<< [apiv2][status] GET https://firebase.googleapis.com/v1beta1/projects/rundownstudiosportal 200 +[debug] [2024-01-01T11:42:39.428Z] <<< [apiv2][body] GET https://firebase.googleapis.com/v1beta1/projects/rundownstudiosportal {"projectId":"rundownstudiosportal","projectNumber":"253506655744","displayName":"RundownStudiosPortal","name":"projects/rundownstudiosportal","resources":{"hostingSite":"rundownstudiosportal"},"state":"ACTIVE","etag":"1_6dd89348-c0aa-4794-89a2-dcf0ccc2699c"} +[debug] [2024-01-01T11:42:39.429Z] >>> [apiv2][query] POST https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/functions:generateUploadUrl [none] +[debug] [2024-01-01T11:42:40.903Z] <<< [apiv2][status] POST https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/functions:generateUploadUrl 200 +[debug] [2024-01-01T11:42:40.903Z] <<< [apiv2][body] POST https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/functions:generateUploadUrl {"uploadUrl":"https://storage.googleapis.com/gcf-v2-uploads-253506655744-us-central1/bc43e2cd-59ca-48b7-82bd-1f73eb8cc789.zip?GoogleAccessId=service-253506655744@gcf-admin-robot.iam.gserviceaccount.com&Expires=1704111161&Signature=hYEb7AIgUhj7CtKJBfevBhe%2FDB%2Bvw9joCEJyeiIKFDwq3cXZt3i8%2B6kYLRpGVVbHuGjtklXeHCCdq1tcoZy9h4hfkwQ1kyGpthSgiGMM%2B4ycV3%2BRGIkfxoTnET8KdOWfZVq6CIypEORK4wX3iOu0MvmfiHm%2BTWzOhBWzCzVfTUP9GLA%2BF6qvWulT0WhYOlTHPXq7sE%2FWlfZ1E2g7zrhSlzSYd3CLm4wc3exGC5cX%2F4mqlboINA%2BIwwKhbGUc7%2BdgvPe0BjGADImHm8Uo4nzJtscYpX9yUdRvCdMwM%2FGKOom19AtpCAWKn2ZFfnACjBsgcZwda6q6dbYr5P1%2FMkBGeg%3D%3D","storageSource":{"bucket":"gcf-v2-uploads-253506655744-us-central1","object":"bc43e2cd-59ca-48b7-82bd-1f73eb8cc789.zip"}} +[debug] [2024-01-01T11:42:40.904Z] >>> [apiv2][query] PUT https://storage.googleapis.com/gcf-v2-uploads-253506655744-us-central1/bc43e2cd-59ca-48b7-82bd-1f73eb8cc789.zip GoogleAccessId=service-253506655744%40gcf-admin-robot.iam.gserviceaccount.com&Expires=1704111161&Signature=hYEb7AIgUhj7CtKJBfevBhe%2FDB%2Bvw9joCEJyeiIKFDwq3cXZt3i8%2B6kYLRpGVVbHuGjtklXeHCCdq1tcoZy9h4hfkwQ1kyGpthSgiGMM%2B4ycV3%2BRGIkfxoTnET8KdOWfZVq6CIypEORK4wX3iOu0MvmfiHm%2BTWzOhBWzCzVfTUP9GLA%2BF6qvWulT0WhYOlTHPXq7sE%2FWlfZ1E2g7zrhSlzSYd3CLm4wc3exGC5cX%2F4mqlboINA%2BIwwKhbGUc7%2BdgvPe0BjGADImHm8Uo4nzJtscYpX9yUdRvCdMwM%2FGKOom19AtpCAWKn2ZFfnACjBsgcZwda6q6dbYr5P1%2FMkBGeg%3D%3D +[debug] [2024-01-01T11:42:40.904Z] >>> [apiv2][body] PUT https://storage.googleapis.com/gcf-v2-uploads-253506655744-us-central1/bc43e2cd-59ca-48b7-82bd-1f73eb8cc789.zip [stream] +[debug] [2024-01-01T11:42:43.436Z] <<< [apiv2][status] PUT https://storage.googleapis.com/gcf-v2-uploads-253506655744-us-central1/bc43e2cd-59ca-48b7-82bd-1f73eb8cc789.zip 200 +[debug] [2024-01-01T11:42:43.436Z] <<< [apiv2][body] PUT https://storage.googleapis.com/gcf-v2-uploads-253506655744-us-central1/bc43e2cd-59ca-48b7-82bd-1f73eb8cc789.zip [omitted] +[info] + functions: functions folder uploaded successfully +[info] i functions: creating Node.js 18 (2nd Gen) function scheduledFunctionCrontab(us-central1)... +[info] i functions: updating Node.js 18 (2nd Gen) function restrictunAuthUsers(us-central1)... +[debug] [2024-01-01T11:42:43.440Z] >>> [apiv2][query] POST https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/functions functionId=scheduledFunctionCrontab +[debug] [2024-01-01T11:42:43.440Z] >>> [apiv2][body] POST https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/functions {"name":"projects/rundownstudiosportal/locations/us-central1/functions/scheduledFunctionCrontab","buildConfig":{"runtime":"nodejs18","entryPoint":"scheduledFunctionCrontab","source":{"storageSource":{"bucket":"gcf-v2-uploads-253506655744-us-central1","object":"bc43e2cd-59ca-48b7-82bd-1f73eb8cc789.zip"}},"environmentVariables":{"GOOGLE_NODE_RUN_SCRIPTS":""}},"serviceConfig":{"environmentVariables":{"FIREBASE_CONFIG":"{\"projectId\":\"rundownstudiosportal\",\"storageBucket\":\"rundownstudiosportal.appspot.com\"}","GCLOUD_PROJECT":"rundownstudiosportal","FIRESTORE_PREFER_REST":"true","EVENTARC_CLOUD_EVENT_SOURCE":"projects/rundownstudiosportal/locations/us-central1/services/scheduledFunctionCrontab","FUNCTION_TARGET":"scheduledFunctionCrontab"},"ingressSettings":null,"timeoutSeconds":null,"serviceAccountEmail":null,"availableMemory":"256Mi","minInstanceCount":null,"maxInstanceCount":null,"maxInstanceRequestConcurrency":80,"availableCpu":"1","vpcConnector":null,"vpcConnectorEgressSettings":null},"labels":{"deployment-tool":"cli-firebase","deployment-scheduled":"true","firebase-functions-hash":"4b8b6ff748bf90381eb52e5583016ceae047328d"}} +[debug] [2024-01-01T11:42:45.157Z] <<< [apiv2][status] POST https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/functions 200 +[debug] [2024-01-01T11:42:45.157Z] <<< [apiv2][body] POST https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/functions {"name":"projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109365364-60de0e161858c-9f934e56-1d54c039","metadata":{"@type":"type.googleapis.com/google.cloud.functions.v2.OperationMetadata","createTime":"2024-01-01T11:42:45.759250627Z","target":"projects/rundownstudiosportal/locations/us-central1/functions/scheduledFunctionCrontab","verb":"create","cancelRequested":false,"apiVersion":"v2"},"done":false} +[debug] [2024-01-01T11:42:45.157Z] >>> [apiv2][query] GET https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109365364-60de0e161858c-9f934e56-1d54c039 [none] +[debug] [2024-01-01T11:42:46.462Z] <<< [apiv2][status] GET https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109365364-60de0e161858c-9f934e56-1d54c039 200 +[debug] [2024-01-01T11:42:46.462Z] <<< [apiv2][body] GET https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109365364-60de0e161858c-9f934e56-1d54c039 {"name":"projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109365364-60de0e161858c-9f934e56-1d54c039","metadata":{"@type":"type.googleapis.com/google.cloud.functions.v2.OperationMetadata","createTime":"2024-01-01T11:42:45.759250627Z","target":"projects/rundownstudiosportal/locations/us-central1/functions/scheduledFunctionCrontab","verb":"create","cancelRequested":false,"apiVersion":"v2","requestResource":{"@type":"type.googleapis.com/google.cloud.functions.v2.Function","name":"projects/rundownstudiosportal/locations/us-central1/functions/scheduledFunctionCrontab","buildConfig":{"runtime":"nodejs18","entryPoint":"scheduledFunctionCrontab","source":{"storageSource":{"bucket":"gcf-v2-sources-253506655744-us-central1","object":"scheduledFunctionCrontab/function-source.zip","generation":"1704109365518680"}},"environmentVariables":{"GOOGLE_NODE_RUN_SCRIPTS":""}},"serviceConfig":{"service":"projects/rundownstudiosportal/locations/us-central1/services/scheduledfunctioncrontab","timeoutSeconds":60,"environmentVariables":{"FIREBASE_CONFIG":"{\"projectId\":\"rundownstudiosportal\",\"storageBucket\":\"rundownstudiosportal.appspot.com\"}","GCLOUD_PROJECT":"rundownstudiosportal","FIRESTORE_PREFER_REST":"true","EVENTARC_CLOUD_EVENT_SOURCE":"projects/rundownstudiosportal/locations/us-central1/services/scheduledFunctionCrontab","FUNCTION_TARGET":"scheduledFunctionCrontab"},"maxInstanceCount":100,"ingressSettings":"ALLOW_ALL","serviceAccountEmail":"253506655744-compute@developer.gserviceaccount.com","availableMemory":"256Mi","maxInstanceRequestConcurrency":80,"availableCpu":"1"},"labels":{"deployment-tool":"cli-firebase","deployment-scheduled":"true","firebase-functions-hash":"4b8b6ff748bf90381eb52e5583016ceae047328d"},"environment":"GEN_2"},"stages":[{"name":"BUILD","message":"Build in progress","state":"IN_PROGRESS","resource":"projects/253506655744/locations/us-central1/builds/8391471a-ab8a-44f0-ba09-eaa2e77e6050","resourceUri":"https://console.cloud.google.com/cloud-build/builds;region=us-central1/8391471a-ab8a-44f0-ba09-eaa2e77e6050?project=253506655744"},{"name":"SERVICE","state":"NOT_STARTED"}],"operationType":"CREATE_FUNCTION"},"done":false} +[debug] [2024-01-01T11:42:46.975Z] [create-default-us-central1-scheduledFunctionCrontab] Retrying task index 0 +[debug] [2024-01-01T11:42:46.975Z] >>> [apiv2][query] GET https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109365364-60de0e161858c-9f934e56-1d54c039 [none] +[debug] [2024-01-01T11:42:48.280Z] <<< [apiv2][status] GET https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109365364-60de0e161858c-9f934e56-1d54c039 200 +[debug] [2024-01-01T11:42:48.280Z] <<< [apiv2][body] GET https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109365364-60de0e161858c-9f934e56-1d54c039 {"name":"projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109365364-60de0e161858c-9f934e56-1d54c039","metadata":{"@type":"type.googleapis.com/google.cloud.functions.v2.OperationMetadata","createTime":"2024-01-01T11:42:45.759250627Z","target":"projects/rundownstudiosportal/locations/us-central1/functions/scheduledFunctionCrontab","verb":"create","cancelRequested":false,"apiVersion":"v2","requestResource":{"@type":"type.googleapis.com/google.cloud.functions.v2.Function","name":"projects/rundownstudiosportal/locations/us-central1/functions/scheduledFunctionCrontab","buildConfig":{"runtime":"nodejs18","entryPoint":"scheduledFunctionCrontab","source":{"storageSource":{"bucket":"gcf-v2-sources-253506655744-us-central1","object":"scheduledFunctionCrontab/function-source.zip","generation":"1704109365518680"}},"environmentVariables":{"GOOGLE_NODE_RUN_SCRIPTS":""}},"serviceConfig":{"service":"projects/rundownstudiosportal/locations/us-central1/services/scheduledfunctioncrontab","timeoutSeconds":60,"environmentVariables":{"FIREBASE_CONFIG":"{\"projectId\":\"rundownstudiosportal\",\"storageBucket\":\"rundownstudiosportal.appspot.com\"}","GCLOUD_PROJECT":"rundownstudiosportal","FIRESTORE_PREFER_REST":"true","EVENTARC_CLOUD_EVENT_SOURCE":"projects/rundownstudiosportal/locations/us-central1/services/scheduledFunctionCrontab","FUNCTION_TARGET":"scheduledFunctionCrontab"},"maxInstanceCount":100,"ingressSettings":"ALLOW_ALL","serviceAccountEmail":"253506655744-compute@developer.gserviceaccount.com","availableMemory":"256Mi","maxInstanceRequestConcurrency":80,"availableCpu":"1"},"labels":{"deployment-tool":"cli-firebase","deployment-scheduled":"true","firebase-functions-hash":"4b8b6ff748bf90381eb52e5583016ceae047328d"},"environment":"GEN_2"},"stages":[{"name":"BUILD","message":"Build in progress","state":"IN_PROGRESS","resource":"projects/253506655744/locations/us-central1/builds/8391471a-ab8a-44f0-ba09-eaa2e77e6050","resourceUri":"https://console.cloud.google.com/cloud-build/builds;region=us-central1/8391471a-ab8a-44f0-ba09-eaa2e77e6050?project=253506655744"},{"name":"SERVICE","state":"NOT_STARTED"}],"operationType":"CREATE_FUNCTION"},"done":false} +[debug] [2024-01-01T11:42:49.287Z] [create-default-us-central1-scheduledFunctionCrontab] Retrying task index 0 +[debug] [2024-01-01T11:42:49.287Z] >>> [apiv2][query] GET https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109365364-60de0e161858c-9f934e56-1d54c039 [none] +[debug] [2024-01-01T11:42:50.592Z] <<< [apiv2][status] GET https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109365364-60de0e161858c-9f934e56-1d54c039 200 +[debug] [2024-01-01T11:42:50.592Z] <<< [apiv2][body] GET https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109365364-60de0e161858c-9f934e56-1d54c039 {"name":"projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109365364-60de0e161858c-9f934e56-1d54c039","metadata":{"@type":"type.googleapis.com/google.cloud.functions.v2.OperationMetadata","createTime":"2024-01-01T11:42:45.759250627Z","target":"projects/rundownstudiosportal/locations/us-central1/functions/scheduledFunctionCrontab","verb":"create","cancelRequested":false,"apiVersion":"v2","requestResource":{"@type":"type.googleapis.com/google.cloud.functions.v2.Function","name":"projects/rundownstudiosportal/locations/us-central1/functions/scheduledFunctionCrontab","buildConfig":{"runtime":"nodejs18","entryPoint":"scheduledFunctionCrontab","source":{"storageSource":{"bucket":"gcf-v2-sources-253506655744-us-central1","object":"scheduledFunctionCrontab/function-source.zip","generation":"1704109365518680"}},"environmentVariables":{"GOOGLE_NODE_RUN_SCRIPTS":""}},"serviceConfig":{"service":"projects/rundownstudiosportal/locations/us-central1/services/scheduledfunctioncrontab","timeoutSeconds":60,"environmentVariables":{"FIREBASE_CONFIG":"{\"projectId\":\"rundownstudiosportal\",\"storageBucket\":\"rundownstudiosportal.appspot.com\"}","GCLOUD_PROJECT":"rundownstudiosportal","FIRESTORE_PREFER_REST":"true","EVENTARC_CLOUD_EVENT_SOURCE":"projects/rundownstudiosportal/locations/us-central1/services/scheduledFunctionCrontab","FUNCTION_TARGET":"scheduledFunctionCrontab"},"maxInstanceCount":100,"ingressSettings":"ALLOW_ALL","serviceAccountEmail":"253506655744-compute@developer.gserviceaccount.com","availableMemory":"256Mi","maxInstanceRequestConcurrency":80,"availableCpu":"1"},"labels":{"deployment-tool":"cli-firebase","deployment-scheduled":"true","firebase-functions-hash":"4b8b6ff748bf90381eb52e5583016ceae047328d"},"environment":"GEN_2"},"stages":[{"name":"BUILD","message":"Build in progress","state":"IN_PROGRESS","resource":"projects/253506655744/locations/us-central1/builds/8391471a-ab8a-44f0-ba09-eaa2e77e6050","resourceUri":"https://console.cloud.google.com/cloud-build/builds;region=us-central1/8391471a-ab8a-44f0-ba09-eaa2e77e6050?project=253506655744"},{"name":"SERVICE","state":"NOT_STARTED"}],"operationType":"CREATE_FUNCTION"},"done":false} +[debug] [2024-01-01T11:42:52.602Z] [create-default-us-central1-scheduledFunctionCrontab] Retrying task index 0 +[debug] [2024-01-01T11:42:52.603Z] >>> [apiv2][query] GET https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109365364-60de0e161858c-9f934e56-1d54c039 [none] +[debug] [2024-01-01T11:42:53.911Z] <<< [apiv2][status] GET https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109365364-60de0e161858c-9f934e56-1d54c039 200 +[debug] [2024-01-01T11:42:53.911Z] <<< [apiv2][body] GET https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109365364-60de0e161858c-9f934e56-1d54c039 {"name":"projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109365364-60de0e161858c-9f934e56-1d54c039","metadata":{"@type":"type.googleapis.com/google.cloud.functions.v2.OperationMetadata","createTime":"2024-01-01T11:42:45.759250627Z","target":"projects/rundownstudiosportal/locations/us-central1/functions/scheduledFunctionCrontab","verb":"create","cancelRequested":false,"apiVersion":"v2","requestResource":{"@type":"type.googleapis.com/google.cloud.functions.v2.Function","name":"projects/rundownstudiosportal/locations/us-central1/functions/scheduledFunctionCrontab","buildConfig":{"runtime":"nodejs18","entryPoint":"scheduledFunctionCrontab","source":{"storageSource":{"bucket":"gcf-v2-sources-253506655744-us-central1","object":"scheduledFunctionCrontab/function-source.zip","generation":"1704109365518680"}},"environmentVariables":{"GOOGLE_NODE_RUN_SCRIPTS":""}},"serviceConfig":{"service":"projects/rundownstudiosportal/locations/us-central1/services/scheduledfunctioncrontab","timeoutSeconds":60,"environmentVariables":{"FIREBASE_CONFIG":"{\"projectId\":\"rundownstudiosportal\",\"storageBucket\":\"rundownstudiosportal.appspot.com\"}","GCLOUD_PROJECT":"rundownstudiosportal","FIRESTORE_PREFER_REST":"true","EVENTARC_CLOUD_EVENT_SOURCE":"projects/rundownstudiosportal/locations/us-central1/services/scheduledFunctionCrontab","FUNCTION_TARGET":"scheduledFunctionCrontab"},"maxInstanceCount":100,"ingressSettings":"ALLOW_ALL","serviceAccountEmail":"253506655744-compute@developer.gserviceaccount.com","availableMemory":"256Mi","maxInstanceRequestConcurrency":80,"availableCpu":"1"},"labels":{"deployment-tool":"cli-firebase","deployment-scheduled":"true","firebase-functions-hash":"4b8b6ff748bf90381eb52e5583016ceae047328d"},"environment":"GEN_2"},"stages":[{"name":"BUILD","message":"Build in progress","state":"IN_PROGRESS","resource":"projects/253506655744/locations/us-central1/builds/8391471a-ab8a-44f0-ba09-eaa2e77e6050","resourceUri":"https://console.cloud.google.com/cloud-build/builds;region=us-central1/8391471a-ab8a-44f0-ba09-eaa2e77e6050?project=253506655744"},{"name":"SERVICE","state":"NOT_STARTED"}],"operationType":"CREATE_FUNCTION"},"done":false} +[debug] [2024-01-01T11:42:57.915Z] [create-default-us-central1-scheduledFunctionCrontab] Retrying task index 0 +[debug] [2024-01-01T11:42:57.915Z] >>> [apiv2][query] GET https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109365364-60de0e161858c-9f934e56-1d54c039 [none] +[debug] [2024-01-01T11:42:59.219Z] <<< [apiv2][status] GET https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109365364-60de0e161858c-9f934e56-1d54c039 200 +[debug] [2024-01-01T11:42:59.219Z] <<< [apiv2][body] GET https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109365364-60de0e161858c-9f934e56-1d54c039 {"name":"projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109365364-60de0e161858c-9f934e56-1d54c039","metadata":{"@type":"type.googleapis.com/google.cloud.functions.v2.OperationMetadata","createTime":"2024-01-01T11:42:45.759250627Z","target":"projects/rundownstudiosportal/locations/us-central1/functions/scheduledFunctionCrontab","verb":"create","cancelRequested":false,"apiVersion":"v2","requestResource":{"@type":"type.googleapis.com/google.cloud.functions.v2.Function","name":"projects/rundownstudiosportal/locations/us-central1/functions/scheduledFunctionCrontab","buildConfig":{"runtime":"nodejs18","entryPoint":"scheduledFunctionCrontab","source":{"storageSource":{"bucket":"gcf-v2-sources-253506655744-us-central1","object":"scheduledFunctionCrontab/function-source.zip","generation":"1704109365518680"}},"environmentVariables":{"GOOGLE_NODE_RUN_SCRIPTS":""}},"serviceConfig":{"service":"projects/rundownstudiosportal/locations/us-central1/services/scheduledfunctioncrontab","timeoutSeconds":60,"environmentVariables":{"FIREBASE_CONFIG":"{\"projectId\":\"rundownstudiosportal\",\"storageBucket\":\"rundownstudiosportal.appspot.com\"}","GCLOUD_PROJECT":"rundownstudiosportal","FIRESTORE_PREFER_REST":"true","EVENTARC_CLOUD_EVENT_SOURCE":"projects/rundownstudiosportal/locations/us-central1/services/scheduledFunctionCrontab","FUNCTION_TARGET":"scheduledFunctionCrontab"},"maxInstanceCount":100,"ingressSettings":"ALLOW_ALL","serviceAccountEmail":"253506655744-compute@developer.gserviceaccount.com","availableMemory":"256Mi","maxInstanceRequestConcurrency":80,"availableCpu":"1"},"labels":{"deployment-tool":"cli-firebase","deployment-scheduled":"true","firebase-functions-hash":"4b8b6ff748bf90381eb52e5583016ceae047328d"},"environment":"GEN_2"},"stages":[{"name":"BUILD","message":"Build in progress","state":"IN_PROGRESS","resource":"projects/253506655744/locations/us-central1/builds/8391471a-ab8a-44f0-ba09-eaa2e77e6050","resourceUri":"https://console.cloud.google.com/cloud-build/builds;region=us-central1/8391471a-ab8a-44f0-ba09-eaa2e77e6050?project=253506655744"},{"name":"SERVICE","state":"NOT_STARTED"}],"operationType":"CREATE_FUNCTION"},"done":false} +[debug] [2024-01-01T11:43:07.231Z] [create-default-us-central1-scheduledFunctionCrontab] Retrying task index 0 +[debug] [2024-01-01T11:43:07.232Z] >>> [apiv2][query] GET https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109365364-60de0e161858c-9f934e56-1d54c039 [none] +[debug] [2024-01-01T11:43:08.660Z] <<< [apiv2][status] GET https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109365364-60de0e161858c-9f934e56-1d54c039 200 +[debug] [2024-01-01T11:43:08.660Z] <<< [apiv2][body] GET https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109365364-60de0e161858c-9f934e56-1d54c039 {"name":"projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109365364-60de0e161858c-9f934e56-1d54c039","metadata":{"@type":"type.googleapis.com/google.cloud.functions.v2.OperationMetadata","createTime":"2024-01-01T11:42:45.759250627Z","target":"projects/rundownstudiosportal/locations/us-central1/functions/scheduledFunctionCrontab","verb":"create","cancelRequested":false,"apiVersion":"v2","requestResource":{"@type":"type.googleapis.com/google.cloud.functions.v2.Function","name":"projects/rundownstudiosportal/locations/us-central1/functions/scheduledFunctionCrontab","buildConfig":{"runtime":"nodejs18","entryPoint":"scheduledFunctionCrontab","source":{"storageSource":{"bucket":"gcf-v2-sources-253506655744-us-central1","object":"scheduledFunctionCrontab/function-source.zip","generation":"1704109365518680"}},"environmentVariables":{"GOOGLE_NODE_RUN_SCRIPTS":""}},"serviceConfig":{"service":"projects/rundownstudiosportal/locations/us-central1/services/scheduledfunctioncrontab","timeoutSeconds":60,"environmentVariables":{"FIREBASE_CONFIG":"{\"projectId\":\"rundownstudiosportal\",\"storageBucket\":\"rundownstudiosportal.appspot.com\"}","GCLOUD_PROJECT":"rundownstudiosportal","FIRESTORE_PREFER_REST":"true","EVENTARC_CLOUD_EVENT_SOURCE":"projects/rundownstudiosportal/locations/us-central1/services/scheduledFunctionCrontab","FUNCTION_TARGET":"scheduledFunctionCrontab"},"maxInstanceCount":100,"ingressSettings":"ALLOW_ALL","serviceAccountEmail":"253506655744-compute@developer.gserviceaccount.com","availableMemory":"256Mi","maxInstanceRequestConcurrency":80,"availableCpu":"1"},"labels":{"deployment-tool":"cli-firebase","deployment-scheduled":"true","firebase-functions-hash":"4b8b6ff748bf90381eb52e5583016ceae047328d"},"environment":"GEN_2"},"stages":[{"name":"BUILD","message":"Build in progress","state":"IN_PROGRESS","resource":"projects/253506655744/locations/us-central1/builds/8391471a-ab8a-44f0-ba09-eaa2e77e6050","resourceUri":"https://console.cloud.google.com/cloud-build/builds;region=us-central1/8391471a-ab8a-44f0-ba09-eaa2e77e6050?project=253506655744"},{"name":"SERVICE","state":"NOT_STARTED"}],"operationType":"CREATE_FUNCTION"},"done":false} +[debug] [2024-01-01T11:43:18.662Z] [create-default-us-central1-scheduledFunctionCrontab] Retrying task index 0 +[debug] [2024-01-01T11:43:18.662Z] >>> [apiv2][query] GET https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109365364-60de0e161858c-9f934e56-1d54c039 [none] +[debug] [2024-01-01T11:43:19.049Z] <<< [apiv2][status] GET https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109365364-60de0e161858c-9f934e56-1d54c039 200 +[debug] [2024-01-01T11:43:19.049Z] <<< [apiv2][body] GET https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109365364-60de0e161858c-9f934e56-1d54c039 {"name":"projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109365364-60de0e161858c-9f934e56-1d54c039","metadata":{"@type":"type.googleapis.com/google.cloud.functions.v2.OperationMetadata","createTime":"2024-01-01T11:42:45.759250627Z","target":"projects/rundownstudiosportal/locations/us-central1/functions/scheduledFunctionCrontab","verb":"create","cancelRequested":false,"apiVersion":"v2","requestResource":{"@type":"type.googleapis.com/google.cloud.functions.v2.Function","name":"projects/rundownstudiosportal/locations/us-central1/functions/scheduledFunctionCrontab","buildConfig":{"runtime":"nodejs18","entryPoint":"scheduledFunctionCrontab","source":{"storageSource":{"bucket":"gcf-v2-sources-253506655744-us-central1","object":"scheduledFunctionCrontab/function-source.zip","generation":"1704109365518680"}},"environmentVariables":{"GOOGLE_NODE_RUN_SCRIPTS":""}},"serviceConfig":{"service":"projects/rundownstudiosportal/locations/us-central1/services/scheduledfunctioncrontab","timeoutSeconds":60,"environmentVariables":{"FIREBASE_CONFIG":"{\"projectId\":\"rundownstudiosportal\",\"storageBucket\":\"rundownstudiosportal.appspot.com\"}","GCLOUD_PROJECT":"rundownstudiosportal","FIRESTORE_PREFER_REST":"true","EVENTARC_CLOUD_EVENT_SOURCE":"projects/rundownstudiosportal/locations/us-central1/services/scheduledFunctionCrontab","FUNCTION_TARGET":"scheduledFunctionCrontab"},"maxInstanceCount":100,"ingressSettings":"ALLOW_ALL","serviceAccountEmail":"253506655744-compute@developer.gserviceaccount.com","availableMemory":"256Mi","maxInstanceRequestConcurrency":80,"availableCpu":"1"},"labels":{"deployment-tool":"cli-firebase","deployment-scheduled":"true","firebase-functions-hash":"4b8b6ff748bf90381eb52e5583016ceae047328d"},"environment":"GEN_2"},"stages":[{"name":"BUILD","message":"Build in progress","state":"IN_PROGRESS","resource":"projects/253506655744/locations/us-central1/builds/8391471a-ab8a-44f0-ba09-eaa2e77e6050","resourceUri":"https://console.cloud.google.com/cloud-build/builds;region=us-central1/8391471a-ab8a-44f0-ba09-eaa2e77e6050?project=253506655744"},{"name":"SERVICE","state":"NOT_STARTED"}],"operationType":"CREATE_FUNCTION"},"done":false} +[debug] [2024-01-01T11:43:29.055Z] [create-default-us-central1-scheduledFunctionCrontab] Retrying task index 0 +[debug] [2024-01-01T11:43:29.055Z] >>> [apiv2][query] GET https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109365364-60de0e161858c-9f934e56-1d54c039 [none] +[debug] [2024-01-01T11:43:30.434Z] <<< [apiv2][status] GET https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109365364-60de0e161858c-9f934e56-1d54c039 200 +[debug] [2024-01-01T11:43:30.434Z] <<< [apiv2][body] GET https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109365364-60de0e161858c-9f934e56-1d54c039 {"name":"projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109365364-60de0e161858c-9f934e56-1d54c039","metadata":{"@type":"type.googleapis.com/google.cloud.functions.v2.OperationMetadata","createTime":"2024-01-01T11:42:45.759250627Z","target":"projects/rundownstudiosportal/locations/us-central1/functions/scheduledFunctionCrontab","verb":"create","cancelRequested":false,"apiVersion":"v2","requestResource":{"@type":"type.googleapis.com/google.cloud.functions.v2.Function","name":"projects/rundownstudiosportal/locations/us-central1/functions/scheduledFunctionCrontab","buildConfig":{"runtime":"nodejs18","entryPoint":"scheduledFunctionCrontab","source":{"storageSource":{"bucket":"gcf-v2-sources-253506655744-us-central1","object":"scheduledFunctionCrontab/function-source.zip","generation":"1704109365518680"}},"environmentVariables":{"GOOGLE_NODE_RUN_SCRIPTS":""}},"serviceConfig":{"service":"projects/rundownstudiosportal/locations/us-central1/services/scheduledfunctioncrontab","timeoutSeconds":60,"environmentVariables":{"FIREBASE_CONFIG":"{\"projectId\":\"rundownstudiosportal\",\"storageBucket\":\"rundownstudiosportal.appspot.com\"}","GCLOUD_PROJECT":"rundownstudiosportal","FIRESTORE_PREFER_REST":"true","EVENTARC_CLOUD_EVENT_SOURCE":"projects/rundownstudiosportal/locations/us-central1/services/scheduledFunctionCrontab","FUNCTION_TARGET":"scheduledFunctionCrontab"},"maxInstanceCount":100,"ingressSettings":"ALLOW_ALL","serviceAccountEmail":"253506655744-compute@developer.gserviceaccount.com","availableMemory":"256Mi","maxInstanceRequestConcurrency":80,"availableCpu":"1"},"labels":{"deployment-tool":"cli-firebase","deployment-scheduled":"true","firebase-functions-hash":"4b8b6ff748bf90381eb52e5583016ceae047328d"},"environment":"GEN_2"},"stages":[{"name":"BUILD","message":"Build finished","state":"COMPLETE","resource":"projects/253506655744/locations/us-central1/builds/8391471a-ab8a-44f0-ba09-eaa2e77e6050","resourceUri":"https://console.cloud.google.com/cloud-build/builds;region=us-central1/8391471a-ab8a-44f0-ba09-eaa2e77e6050?project=253506655744"},{"name":"SERVICE","message":"Creating Cloud Run service","state":"IN_PROGRESS","resource":"projects/rundownstudiosportal/locations/us-central1/services/scheduledfunctioncrontab","resourceUri":"https://console.cloud.google.com/run/detail/us-central1/scheduledfunctioncrontab?project=rundownstudiosportal"}],"sourceToken":"Cldwcm9qZWN0cy8yNTM1MDY2NTU3NDQvbG9jYXRpb25zL3VzLWNlbnRyYWwxL2J1aWxkcy84MzkxNDcxYS1hYjhhLTQ0ZjAtYmEwOS1lYWEyZTc3ZTYwNTASYnVzLWNlbnRyYWwxLWRvY2tlci5wa2cuZGV2L3J1bmRvd25zdHVkaW9zcG9ydGFsL2djZi1hcnRpZmFjdHMvc2NoZWR1bGVkX2Z1bmN0aW9uX2Nyb250YWI6dmVyc2lvbl8xGICssrGwByJWcHJvamVjdHMvcnVuZG93bnN0dWRpb3Nwb3J0YWwvbG9jYXRpb25zL3VzLWNlbnRyYWwxL2Z1bmN0aW9ucy9zY2hlZHVsZWRGdW5jdGlvbkNyb250YWIqCwjbysqsBhDghcd9Mghub2RlanMxOA==","operationType":"CREATE_FUNCTION"},"done":false} +[debug] [2024-01-01T11:43:30.434Z] Got source token Cldwcm9qZWN0cy8yNTM1MDY2NTU3NDQvbG9jYXRpb25zL3VzLWNlbnRyYWwxL2J1aWxkcy84MzkxNDcxYS1hYjhhLTQ0ZjAtYmEwOS1lYWEyZTc3ZTYwNTASYnVzLWNlbnRyYWwxLWRvY2tlci5wa2cuZGV2L3J1bmRvd25zdHVkaW9zcG9ydGFsL2djZi1hcnRpZmFjdHMvc2NoZWR1bGVkX2Z1bmN0aW9uX2Nyb250YWI6dmVyc2lvbl8xGICssrGwByJWcHJvamVjdHMvcnVuZG93bnN0dWRpb3Nwb3J0YWwvbG9jYXRpb25zL3VzLWNlbnRyYWwxL2Z1bmN0aW9ucy9zY2hlZHVsZWRGdW5jdGlvbkNyb250YWIqCwjbysqsBhDghcd9Mghub2RlanMxOA== for region us-central1 +[debug] [2024-01-01T11:43:30.435Z] >>> [apiv2][query] PATCH https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/functions/restrictunAuthUsers updateMask=name%2CbuildConfig.runtime%2CbuildConfig.entryPoint%2CbuildConfig.source.storageSource.bucket%2CbuildConfig.source.storageSource.object%2CbuildConfig.environmentVariables%2CbuildConfig.sourceToken%2CserviceConfig.environmentVariables%2CserviceConfig.ingressSettings%2CserviceConfig.timeoutSeconds%2CserviceConfig.serviceAccountEmail%2CserviceConfig.availableMemory%2CserviceConfig.minInstanceCount%2CserviceConfig.maxInstanceCount%2CserviceConfig.maxInstanceRequestConcurrency%2CserviceConfig.availableCpu%2CserviceConfig.vpcConnector%2CserviceConfig.vpcConnectorEgressSettings%2Clabels%2CbuildConfig.buildEnvironmentVariables +[debug] [2024-01-01T11:43:30.435Z] >>> [apiv2][body] PATCH https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/functions/restrictunAuthUsers {"name":"projects/rundownstudiosportal/locations/us-central1/functions/restrictunAuthUsers","buildConfig":{"runtime":"nodejs18","entryPoint":"restrictunAuthUsers","source":{"storageSource":{"bucket":"gcf-v2-uploads-253506655744-us-central1","object":"bc43e2cd-59ca-48b7-82bd-1f73eb8cc789.zip"}},"environmentVariables":{"GOOGLE_NODE_RUN_SCRIPTS":""},"sourceToken":"Cldwcm9qZWN0cy8yNTM1MDY2NTU3NDQvbG9jYXRpb25zL3VzLWNlbnRyYWwxL2J1aWxkcy84MzkxNDcxYS1hYjhhLTQ0ZjAtYmEwOS1lYWEyZTc3ZTYwNTASYnVzLWNlbnRyYWwxLWRvY2tlci5wa2cuZGV2L3J1bmRvd25zdHVkaW9zcG9ydGFsL2djZi1hcnRpZmFjdHMvc2NoZWR1bGVkX2Z1bmN0aW9uX2Nyb250YWI6dmVyc2lvbl8xGICssrGwByJWcHJvamVjdHMvcnVuZG93bnN0dWRpb3Nwb3J0YWwvbG9jYXRpb25zL3VzLWNlbnRyYWwxL2Z1bmN0aW9ucy9zY2hlZHVsZWRGdW5jdGlvbkNyb250YWIqCwjbysqsBhDghcd9Mghub2RlanMxOA=="},"serviceConfig":{"environmentVariables":{"FIREBASE_CONFIG":"{\"projectId\":\"rundownstudiosportal\",\"storageBucket\":\"rundownstudiosportal.appspot.com\"}","GCLOUD_PROJECT":"rundownstudiosportal","FIRESTORE_PREFER_REST":"true","EVENTARC_CLOUD_EVENT_SOURCE":"projects/rundownstudiosportal/locations/us-central1/services/restrictunAuthUsers","FUNCTION_TARGET":"restrictunAuthUsers"},"ingressSettings":null,"timeoutSeconds":null,"serviceAccountEmail":null,"availableMemory":"256Mi","minInstanceCount":null,"maxInstanceCount":null,"maxInstanceRequestConcurrency":80,"availableCpu":"1","vpcConnector":null,"vpcConnectorEgressSettings":null},"labels":{"deployment-tool":"cli-firebase","deployment-blocking":"before-create","firebase-functions-hash":"4b8b6ff748bf90381eb52e5583016ceae047328d"}} +[debug] [2024-01-01T11:43:32.503Z] <<< [apiv2][status] PATCH https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/functions/restrictunAuthUsers 200 +[debug] [2024-01-01T11:43:32.503Z] <<< [apiv2][body] PATCH https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/functions/restrictunAuthUsers {"name":"projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109412354-60de0e42e891a-fe0fcb1f-e037c02e","metadata":{"@type":"type.googleapis.com/google.cloud.functions.v2.OperationMetadata","createTime":"2024-01-01T11:43:33.101206623Z","target":"projects/rundownstudiosportal/locations/us-central1/functions/restrictunAuthUsers","verb":"update","cancelRequested":false,"apiVersion":"v2"},"done":false} +[debug] [2024-01-01T11:43:32.503Z] >>> [apiv2][query] GET https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109412354-60de0e42e891a-fe0fcb1f-e037c02e [none] +[debug] [2024-01-01T11:43:33.793Z] <<< [apiv2][status] GET https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109412354-60de0e42e891a-fe0fcb1f-e037c02e 200 +[debug] [2024-01-01T11:43:33.794Z] <<< [apiv2][body] GET https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109412354-60de0e42e891a-fe0fcb1f-e037c02e {"name":"projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109412354-60de0e42e891a-fe0fcb1f-e037c02e","metadata":{"@type":"type.googleapis.com/google.cloud.functions.v2.OperationMetadata","createTime":"2024-01-01T11:43:33.101206623Z","target":"projects/rundownstudiosportal/locations/us-central1/functions/restrictunAuthUsers","verb":"update","cancelRequested":false,"apiVersion":"v2","requestResource":{"@type":"type.googleapis.com/google.cloud.functions.v2.Function","name":"projects/rundownstudiosportal/locations/us-central1/functions/restrictunAuthUsers","buildConfig":{"runtime":"nodejs18","entryPoint":"restrictunAuthUsers","source":{"storageSource":{"bucket":"gcf-v2-sources-253506655744-us-central1","object":"restrictunAuthUsers/function-source.zip","generation":"1704109413052740"}},"environmentVariables":{"GOOGLE_NODE_RUN_SCRIPTS":""},"sourceProvenance":{"resolvedStorageSource":{"bucket":"gcf-v2-sources-253506655744-us-central1","object":"restrictunAuthUsers/function-source.zip","generation":"1699092102543707"}},"dockerRegistry":"ARTIFACT_REGISTRY","sourceToken":"Cldwcm9qZWN0cy8yNTM1MDY2NTU3NDQvbG9jYXRpb25zL3VzLWNlbnRyYWwxL2J1aWxkcy84MzkxNDcxYS1hYjhhLTQ0ZjAtYmEwOS1lYWEyZTc3ZTYwNTASYnVzLWNlbnRyYWwxLWRvY2tlci5wa2cuZGV2L3J1bmRvd25zdHVkaW9zcG9ydGFsL2djZi1hcnRpZmFjdHMvc2NoZWR1bGVkX2Z1bmN0aW9uX2Nyb250YWI6dmVyc2lvbl8xGICssrGwByJWcHJvamVjdHMvcnVuZG93bnN0dWRpb3Nwb3J0YWwvbG9jYXRpb25zL3VzLWNlbnRyYWwxL2Z1bmN0aW9ucy9zY2hlZHVsZWRGdW5jdGlvbkNyb250YWIqCwjbysqsBhDghcd9Mghub2RlanMxOA=="},"serviceConfig":{"service":"projects/rundownstudiosportal/locations/us-central1/services/restrictunauthusers","timeoutSeconds":60,"environmentVariables":{"FIREBASE_CONFIG":"{\"projectId\":\"rundownstudiosportal\",\"storageBucket\":\"rundownstudiosportal.appspot.com\"}","GCLOUD_PROJECT":"rundownstudiosportal","FIRESTORE_PREFER_REST":"true","EVENTARC_CLOUD_EVENT_SOURCE":"projects/rundownstudiosportal/locations/us-central1/services/restrictunAuthUsers","FUNCTION_TARGET":"restrictunAuthUsers","FUNCTION_SIGNATURE_TYPE":"http"},"maxInstanceCount":100,"ingressSettings":"ALLOW_ALL","uri":"https://restrictunauthusers-sabx65cz4q-uc.a.run.app","serviceAccountEmail":"253506655744-compute@developer.gserviceaccount.com","availableMemory":"256Mi","allTrafficOnLatestRevision":true,"revision":"restrictunauthusers-00001-yiy","maxInstanceRequestConcurrency":80,"availableCpu":"1"},"state":"ACTIVE","labels":{"deployment-tool":"cli-firebase","deployment-blocking":"before-create","firebase-functions-hash":"4b8b6ff748bf90381eb52e5583016ceae047328d"},"environment":"GEN_2","url":"https://us-central1-rundownstudiosportal.cloudfunctions.net/restrictunAuthUsers"},"stages":[{"name":"BUILD","message":"Reusing build","state":"COMPLETE","resource":"projects/253506655744/locations/us-central1/builds/8391471a-ab8a-44f0-ba09-eaa2e77e6050"},{"name":"SERVICE","message":"Updating Cloud Run service","state":"IN_PROGRESS","resource":"projects/rundownstudiosportal/locations/us-central1/services/restrictunauthusers","resourceUri":"https://console.cloud.google.com/run/detail/us-central1/restrictunauthusers?project=rundownstudiosportal","stateMessages":[{"severity":"INFO","type":"CloudRunServiceNewRevisionTrafficInfo","message":"A new revision will be deployed serving with 100% traffic."}]}],"sourceToken":"Cldwcm9qZWN0cy8yNTM1MDY2NTU3NDQvbG9jYXRpb25zL3VzLWNlbnRyYWwxL2J1aWxkcy84MzkxNDcxYS1hYjhhLTQ0ZjAtYmEwOS1lYWEyZTc3ZTYwNTASYnVzLWNlbnRyYWwxLWRvY2tlci5wa2cuZGV2L3J1bmRvd25zdHVkaW9zcG9ydGFsL2djZi1hcnRpZmFjdHMvc2NoZWR1bGVkX2Z1bmN0aW9uX2Nyb250YWI6dmVyc2lvbl8xGICssrGwByJWcHJvamVjdHMvcnVuZG93bnN0dWRpb3Nwb3J0YWwvbG9jYXRpb25zL3VzLWNlbnRyYWwxL2Z1bmN0aW9ucy9zY2hlZHVsZWRGdW5jdGlvbkNyb250YWIqCwjbysqsBhDghcd9Mghub2RlanMxOA==","operationType":"UPDATE_FUNCTION"},"done":false} +[debug] [2024-01-01T11:43:33.794Z] Got source token Cldwcm9qZWN0cy8yNTM1MDY2NTU3NDQvbG9jYXRpb25zL3VzLWNlbnRyYWwxL2J1aWxkcy84MzkxNDcxYS1hYjhhLTQ0ZjAtYmEwOS1lYWEyZTc3ZTYwNTASYnVzLWNlbnRyYWwxLWRvY2tlci5wa2cuZGV2L3J1bmRvd25zdHVkaW9zcG9ydGFsL2djZi1hcnRpZmFjdHMvc2NoZWR1bGVkX2Z1bmN0aW9uX2Nyb250YWI6dmVyc2lvbl8xGICssrGwByJWcHJvamVjdHMvcnVuZG93bnN0dWRpb3Nwb3J0YWwvbG9jYXRpb25zL3VzLWNlbnRyYWwxL2Z1bmN0aW9ucy9zY2hlZHVsZWRGdW5jdGlvbkNyb250YWIqCwjbysqsBhDghcd9Mghub2RlanMxOA== for region us-central1 +[debug] [2024-01-01T11:43:34.302Z] [update-default-us-central1-restrictunAuthUsers] Retrying task index 0 +[debug] [2024-01-01T11:43:34.302Z] >>> [apiv2][query] GET https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109412354-60de0e42e891a-fe0fcb1f-e037c02e [none] +[debug] [2024-01-01T11:43:35.618Z] <<< [apiv2][status] GET https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109412354-60de0e42e891a-fe0fcb1f-e037c02e 200 +[debug] [2024-01-01T11:43:35.618Z] <<< [apiv2][body] GET https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109412354-60de0e42e891a-fe0fcb1f-e037c02e {"name":"projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109412354-60de0e42e891a-fe0fcb1f-e037c02e","metadata":{"@type":"type.googleapis.com/google.cloud.functions.v2.OperationMetadata","createTime":"2024-01-01T11:43:33.101206623Z","target":"projects/rundownstudiosportal/locations/us-central1/functions/restrictunAuthUsers","verb":"update","cancelRequested":false,"apiVersion":"v2","requestResource":{"@type":"type.googleapis.com/google.cloud.functions.v2.Function","name":"projects/rundownstudiosportal/locations/us-central1/functions/restrictunAuthUsers","buildConfig":{"runtime":"nodejs18","entryPoint":"restrictunAuthUsers","source":{"storageSource":{"bucket":"gcf-v2-sources-253506655744-us-central1","object":"restrictunAuthUsers/function-source.zip","generation":"1704109413052740"}},"environmentVariables":{"GOOGLE_NODE_RUN_SCRIPTS":""},"sourceProvenance":{"resolvedStorageSource":{"bucket":"gcf-v2-sources-253506655744-us-central1","object":"restrictunAuthUsers/function-source.zip","generation":"1699092102543707"}},"dockerRegistry":"ARTIFACT_REGISTRY","sourceToken":"Cldwcm9qZWN0cy8yNTM1MDY2NTU3NDQvbG9jYXRpb25zL3VzLWNlbnRyYWwxL2J1aWxkcy84MzkxNDcxYS1hYjhhLTQ0ZjAtYmEwOS1lYWEyZTc3ZTYwNTASYnVzLWNlbnRyYWwxLWRvY2tlci5wa2cuZGV2L3J1bmRvd25zdHVkaW9zcG9ydGFsL2djZi1hcnRpZmFjdHMvc2NoZWR1bGVkX2Z1bmN0aW9uX2Nyb250YWI6dmVyc2lvbl8xGICssrGwByJWcHJvamVjdHMvcnVuZG93bnN0dWRpb3Nwb3J0YWwvbG9jYXRpb25zL3VzLWNlbnRyYWwxL2Z1bmN0aW9ucy9zY2hlZHVsZWRGdW5jdGlvbkNyb250YWIqCwjbysqsBhDghcd9Mghub2RlanMxOA=="},"serviceConfig":{"service":"projects/rundownstudiosportal/locations/us-central1/services/restrictunauthusers","timeoutSeconds":60,"environmentVariables":{"FIREBASE_CONFIG":"{\"projectId\":\"rundownstudiosportal\",\"storageBucket\":\"rundownstudiosportal.appspot.com\"}","GCLOUD_PROJECT":"rundownstudiosportal","FIRESTORE_PREFER_REST":"true","EVENTARC_CLOUD_EVENT_SOURCE":"projects/rundownstudiosportal/locations/us-central1/services/restrictunAuthUsers","FUNCTION_TARGET":"restrictunAuthUsers","FUNCTION_SIGNATURE_TYPE":"http"},"maxInstanceCount":100,"ingressSettings":"ALLOW_ALL","uri":"https://restrictunauthusers-sabx65cz4q-uc.a.run.app","serviceAccountEmail":"253506655744-compute@developer.gserviceaccount.com","availableMemory":"256Mi","allTrafficOnLatestRevision":true,"revision":"restrictunauthusers-00001-yiy","maxInstanceRequestConcurrency":80,"availableCpu":"1"},"state":"ACTIVE","labels":{"deployment-tool":"cli-firebase","deployment-blocking":"before-create","firebase-functions-hash":"4b8b6ff748bf90381eb52e5583016ceae047328d"},"environment":"GEN_2","url":"https://us-central1-rundownstudiosportal.cloudfunctions.net/restrictunAuthUsers"},"stages":[{"name":"BUILD","message":"Reusing build","state":"COMPLETE","resource":"projects/253506655744/locations/us-central1/builds/8391471a-ab8a-44f0-ba09-eaa2e77e6050"},{"name":"SERVICE","message":"Updating Cloud Run service","state":"IN_PROGRESS","resource":"projects/rundownstudiosportal/locations/us-central1/services/restrictunauthusers","resourceUri":"https://console.cloud.google.com/run/detail/us-central1/restrictunauthusers?project=rundownstudiosportal","stateMessages":[{"severity":"INFO","type":"CloudRunServiceNewRevisionTrafficInfo","message":"A new revision will be deployed serving with 100% traffic."}]}],"sourceToken":"Cldwcm9qZWN0cy8yNTM1MDY2NTU3NDQvbG9jYXRpb25zL3VzLWNlbnRyYWwxL2J1aWxkcy84MzkxNDcxYS1hYjhhLTQ0ZjAtYmEwOS1lYWEyZTc3ZTYwNTASYnVzLWNlbnRyYWwxLWRvY2tlci5wa2cuZGV2L3J1bmRvd25zdHVkaW9zcG9ydGFsL2djZi1hcnRpZmFjdHMvc2NoZWR1bGVkX2Z1bmN0aW9uX2Nyb250YWI6dmVyc2lvbl8xGICssrGwByJWcHJvamVjdHMvcnVuZG93bnN0dWRpb3Nwb3J0YWwvbG9jYXRpb25zL3VzLWNlbnRyYWwxL2Z1bmN0aW9ucy9zY2hlZHVsZWRGdW5jdGlvbkNyb250YWIqCwjbysqsBhDghcd9Mghub2RlanMxOA==","operationType":"UPDATE_FUNCTION"},"done":false} +[debug] [2024-01-01T11:43:35.618Z] Got source token Cldwcm9qZWN0cy8yNTM1MDY2NTU3NDQvbG9jYXRpb25zL3VzLWNlbnRyYWwxL2J1aWxkcy84MzkxNDcxYS1hYjhhLTQ0ZjAtYmEwOS1lYWEyZTc3ZTYwNTASYnVzLWNlbnRyYWwxLWRvY2tlci5wa2cuZGV2L3J1bmRvd25zdHVkaW9zcG9ydGFsL2djZi1hcnRpZmFjdHMvc2NoZWR1bGVkX2Z1bmN0aW9uX2Nyb250YWI6dmVyc2lvbl8xGICssrGwByJWcHJvamVjdHMvcnVuZG93bnN0dWRpb3Nwb3J0YWwvbG9jYXRpb25zL3VzLWNlbnRyYWwxL2Z1bmN0aW9ucy9zY2hlZHVsZWRGdW5jdGlvbkNyb250YWIqCwjbysqsBhDghcd9Mghub2RlanMxOA== for region us-central1 +[debug] [2024-01-01T11:43:36.630Z] [update-default-us-central1-restrictunAuthUsers] Retrying task index 0 +[debug] [2024-01-01T11:43:36.630Z] >>> [apiv2][query] GET https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109412354-60de0e42e891a-fe0fcb1f-e037c02e [none] +[debug] [2024-01-01T11:43:37.942Z] <<< [apiv2][status] GET https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109412354-60de0e42e891a-fe0fcb1f-e037c02e 200 +[debug] [2024-01-01T11:43:37.942Z] <<< [apiv2][body] GET https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109412354-60de0e42e891a-fe0fcb1f-e037c02e {"name":"projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109412354-60de0e42e891a-fe0fcb1f-e037c02e","metadata":{"@type":"type.googleapis.com/google.cloud.functions.v2.OperationMetadata","createTime":"2024-01-01T11:43:33.101206623Z","target":"projects/rundownstudiosportal/locations/us-central1/functions/restrictunAuthUsers","verb":"update","cancelRequested":false,"apiVersion":"v2","requestResource":{"@type":"type.googleapis.com/google.cloud.functions.v2.Function","name":"projects/rundownstudiosportal/locations/us-central1/functions/restrictunAuthUsers","buildConfig":{"runtime":"nodejs18","entryPoint":"restrictunAuthUsers","source":{"storageSource":{"bucket":"gcf-v2-sources-253506655744-us-central1","object":"restrictunAuthUsers/function-source.zip","generation":"1704109413052740"}},"environmentVariables":{"GOOGLE_NODE_RUN_SCRIPTS":""},"sourceProvenance":{"resolvedStorageSource":{"bucket":"gcf-v2-sources-253506655744-us-central1","object":"restrictunAuthUsers/function-source.zip","generation":"1699092102543707"}},"dockerRegistry":"ARTIFACT_REGISTRY","sourceToken":"Cldwcm9qZWN0cy8yNTM1MDY2NTU3NDQvbG9jYXRpb25zL3VzLWNlbnRyYWwxL2J1aWxkcy84MzkxNDcxYS1hYjhhLTQ0ZjAtYmEwOS1lYWEyZTc3ZTYwNTASYnVzLWNlbnRyYWwxLWRvY2tlci5wa2cuZGV2L3J1bmRvd25zdHVkaW9zcG9ydGFsL2djZi1hcnRpZmFjdHMvc2NoZWR1bGVkX2Z1bmN0aW9uX2Nyb250YWI6dmVyc2lvbl8xGICssrGwByJWcHJvamVjdHMvcnVuZG93bnN0dWRpb3Nwb3J0YWwvbG9jYXRpb25zL3VzLWNlbnRyYWwxL2Z1bmN0aW9ucy9zY2hlZHVsZWRGdW5jdGlvbkNyb250YWIqCwjbysqsBhDghcd9Mghub2RlanMxOA=="},"serviceConfig":{"service":"projects/rundownstudiosportal/locations/us-central1/services/restrictunauthusers","timeoutSeconds":60,"environmentVariables":{"FIREBASE_CONFIG":"{\"projectId\":\"rundownstudiosportal\",\"storageBucket\":\"rundownstudiosportal.appspot.com\"}","GCLOUD_PROJECT":"rundownstudiosportal","FIRESTORE_PREFER_REST":"true","EVENTARC_CLOUD_EVENT_SOURCE":"projects/rundownstudiosportal/locations/us-central1/services/restrictunAuthUsers","FUNCTION_TARGET":"restrictunAuthUsers","FUNCTION_SIGNATURE_TYPE":"http"},"maxInstanceCount":100,"ingressSettings":"ALLOW_ALL","uri":"https://restrictunauthusers-sabx65cz4q-uc.a.run.app","serviceAccountEmail":"253506655744-compute@developer.gserviceaccount.com","availableMemory":"256Mi","allTrafficOnLatestRevision":true,"revision":"restrictunauthusers-00001-yiy","maxInstanceRequestConcurrency":80,"availableCpu":"1"},"state":"ACTIVE","labels":{"deployment-tool":"cli-firebase","deployment-blocking":"before-create","firebase-functions-hash":"4b8b6ff748bf90381eb52e5583016ceae047328d"},"environment":"GEN_2","url":"https://us-central1-rundownstudiosportal.cloudfunctions.net/restrictunAuthUsers"},"stages":[{"name":"BUILD","message":"Reusing build","state":"COMPLETE","resource":"projects/253506655744/locations/us-central1/builds/8391471a-ab8a-44f0-ba09-eaa2e77e6050"},{"name":"SERVICE","message":"Updating Cloud Run service","state":"IN_PROGRESS","resource":"projects/rundownstudiosportal/locations/us-central1/services/restrictunauthusers","resourceUri":"https://console.cloud.google.com/run/detail/us-central1/restrictunauthusers?project=rundownstudiosportal","stateMessages":[{"severity":"INFO","type":"CloudRunServiceNewRevisionTrafficInfo","message":"A new revision will be deployed serving with 100% traffic."}]}],"sourceToken":"Cldwcm9qZWN0cy8yNTM1MDY2NTU3NDQvbG9jYXRpb25zL3VzLWNlbnRyYWwxL2J1aWxkcy84MzkxNDcxYS1hYjhhLTQ0ZjAtYmEwOS1lYWEyZTc3ZTYwNTASYnVzLWNlbnRyYWwxLWRvY2tlci5wa2cuZGV2L3J1bmRvd25zdHVkaW9zcG9ydGFsL2djZi1hcnRpZmFjdHMvc2NoZWR1bGVkX2Z1bmN0aW9uX2Nyb250YWI6dmVyc2lvbl8xGICssrGwByJWcHJvamVjdHMvcnVuZG93bnN0dWRpb3Nwb3J0YWwvbG9jYXRpb25zL3VzLWNlbnRyYWwxL2Z1bmN0aW9ucy9zY2hlZHVsZWRGdW5jdGlvbkNyb250YWIqCwjbysqsBhDghcd9Mghub2RlanMxOA==","operationType":"UPDATE_FUNCTION"},"done":false} +[debug] [2024-01-01T11:43:37.942Z] Got source token Cldwcm9qZWN0cy8yNTM1MDY2NTU3NDQvbG9jYXRpb25zL3VzLWNlbnRyYWwxL2J1aWxkcy84MzkxNDcxYS1hYjhhLTQ0ZjAtYmEwOS1lYWEyZTc3ZTYwNTASYnVzLWNlbnRyYWwxLWRvY2tlci5wa2cuZGV2L3J1bmRvd25zdHVkaW9zcG9ydGFsL2djZi1hcnRpZmFjdHMvc2NoZWR1bGVkX2Z1bmN0aW9uX2Nyb250YWI6dmVyc2lvbl8xGICssrGwByJWcHJvamVjdHMvcnVuZG93bnN0dWRpb3Nwb3J0YWwvbG9jYXRpb25zL3VzLWNlbnRyYWwxL2Z1bmN0aW9ucy9zY2hlZHVsZWRGdW5jdGlvbkNyb250YWIqCwjbysqsBhDghcd9Mghub2RlanMxOA== for region us-central1 +[debug] [2024-01-01T11:43:39.951Z] [update-default-us-central1-restrictunAuthUsers] Retrying task index 0 +[debug] [2024-01-01T11:43:39.951Z] >>> [apiv2][query] GET https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109412354-60de0e42e891a-fe0fcb1f-e037c02e [none] +[debug] [2024-01-01T11:43:40.435Z] [create-default-us-central1-scheduledFunctionCrontab] Retrying task index 0 +[debug] [2024-01-01T11:43:40.435Z] >>> [apiv2][query] GET https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109365364-60de0e161858c-9f934e56-1d54c039 [none] +[debug] [2024-01-01T11:43:41.284Z] <<< [apiv2][status] GET https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109412354-60de0e42e891a-fe0fcb1f-e037c02e 200 +[debug] [2024-01-01T11:43:41.284Z] <<< [apiv2][body] GET https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109412354-60de0e42e891a-fe0fcb1f-e037c02e {"name":"projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109412354-60de0e42e891a-fe0fcb1f-e037c02e","metadata":{"@type":"type.googleapis.com/google.cloud.functions.v2.OperationMetadata","createTime":"2024-01-01T11:43:33.101206623Z","target":"projects/rundownstudiosportal/locations/us-central1/functions/restrictunAuthUsers","verb":"update","cancelRequested":false,"apiVersion":"v2","requestResource":{"@type":"type.googleapis.com/google.cloud.functions.v2.Function","name":"projects/rundownstudiosportal/locations/us-central1/functions/restrictunAuthUsers","buildConfig":{"runtime":"nodejs18","entryPoint":"restrictunAuthUsers","source":{"storageSource":{"bucket":"gcf-v2-sources-253506655744-us-central1","object":"restrictunAuthUsers/function-source.zip","generation":"1704109413052740"}},"environmentVariables":{"GOOGLE_NODE_RUN_SCRIPTS":""},"sourceProvenance":{"resolvedStorageSource":{"bucket":"gcf-v2-sources-253506655744-us-central1","object":"restrictunAuthUsers/function-source.zip","generation":"1699092102543707"}},"dockerRegistry":"ARTIFACT_REGISTRY","sourceToken":"Cldwcm9qZWN0cy8yNTM1MDY2NTU3NDQvbG9jYXRpb25zL3VzLWNlbnRyYWwxL2J1aWxkcy84MzkxNDcxYS1hYjhhLTQ0ZjAtYmEwOS1lYWEyZTc3ZTYwNTASYnVzLWNlbnRyYWwxLWRvY2tlci5wa2cuZGV2L3J1bmRvd25zdHVkaW9zcG9ydGFsL2djZi1hcnRpZmFjdHMvc2NoZWR1bGVkX2Z1bmN0aW9uX2Nyb250YWI6dmVyc2lvbl8xGICssrGwByJWcHJvamVjdHMvcnVuZG93bnN0dWRpb3Nwb3J0YWwvbG9jYXRpb25zL3VzLWNlbnRyYWwxL2Z1bmN0aW9ucy9zY2hlZHVsZWRGdW5jdGlvbkNyb250YWIqCwjbysqsBhDghcd9Mghub2RlanMxOA=="},"serviceConfig":{"service":"projects/rundownstudiosportal/locations/us-central1/services/restrictunauthusers","timeoutSeconds":60,"environmentVariables":{"FIREBASE_CONFIG":"{\"projectId\":\"rundownstudiosportal\",\"storageBucket\":\"rundownstudiosportal.appspot.com\"}","GCLOUD_PROJECT":"rundownstudiosportal","FIRESTORE_PREFER_REST":"true","EVENTARC_CLOUD_EVENT_SOURCE":"projects/rundownstudiosportal/locations/us-central1/services/restrictunAuthUsers","FUNCTION_TARGET":"restrictunAuthUsers","FUNCTION_SIGNATURE_TYPE":"http"},"maxInstanceCount":100,"ingressSettings":"ALLOW_ALL","uri":"https://restrictunauthusers-sabx65cz4q-uc.a.run.app","serviceAccountEmail":"253506655744-compute@developer.gserviceaccount.com","availableMemory":"256Mi","allTrafficOnLatestRevision":true,"revision":"restrictunauthusers-00001-yiy","maxInstanceRequestConcurrency":80,"availableCpu":"1"},"state":"ACTIVE","labels":{"deployment-tool":"cli-firebase","deployment-blocking":"before-create","firebase-functions-hash":"4b8b6ff748bf90381eb52e5583016ceae047328d"},"environment":"GEN_2","url":"https://us-central1-rundownstudiosportal.cloudfunctions.net/restrictunAuthUsers"},"stages":[{"name":"BUILD","message":"Reusing build","state":"COMPLETE","resource":"projects/253506655744/locations/us-central1/builds/8391471a-ab8a-44f0-ba09-eaa2e77e6050"},{"name":"SERVICE","message":"Updating Cloud Run service","state":"IN_PROGRESS","resource":"projects/rundownstudiosportal/locations/us-central1/services/restrictunauthusers","resourceUri":"https://console.cloud.google.com/run/detail/us-central1/restrictunauthusers?project=rundownstudiosportal","stateMessages":[{"severity":"INFO","type":"CloudRunServiceNewRevisionTrafficInfo","message":"A new revision will be deployed serving with 100% traffic."}]}],"sourceToken":"Cldwcm9qZWN0cy8yNTM1MDY2NTU3NDQvbG9jYXRpb25zL3VzLWNlbnRyYWwxL2J1aWxkcy84MzkxNDcxYS1hYjhhLTQ0ZjAtYmEwOS1lYWEyZTc3ZTYwNTASYnVzLWNlbnRyYWwxLWRvY2tlci5wa2cuZGV2L3J1bmRvd25zdHVkaW9zcG9ydGFsL2djZi1hcnRpZmFjdHMvc2NoZWR1bGVkX2Z1bmN0aW9uX2Nyb250YWI6dmVyc2lvbl8xGICssrGwByJWcHJvamVjdHMvcnVuZG93bnN0dWRpb3Nwb3J0YWwvbG9jYXRpb25zL3VzLWNlbnRyYWwxL2Z1bmN0aW9ucy9zY2hlZHVsZWRGdW5jdGlvbkNyb250YWIqCwjbysqsBhDghcd9Mghub2RlanMxOA==","operationType":"UPDATE_FUNCTION"},"done":false} +[debug] [2024-01-01T11:43:41.284Z] Got source token Cldwcm9qZWN0cy8yNTM1MDY2NTU3NDQvbG9jYXRpb25zL3VzLWNlbnRyYWwxL2J1aWxkcy84MzkxNDcxYS1hYjhhLTQ0ZjAtYmEwOS1lYWEyZTc3ZTYwNTASYnVzLWNlbnRyYWwxLWRvY2tlci5wa2cuZGV2L3J1bmRvd25zdHVkaW9zcG9ydGFsL2djZi1hcnRpZmFjdHMvc2NoZWR1bGVkX2Z1bmN0aW9uX2Nyb250YWI6dmVyc2lvbl8xGICssrGwByJWcHJvamVjdHMvcnVuZG93bnN0dWRpb3Nwb3J0YWwvbG9jYXRpb25zL3VzLWNlbnRyYWwxL2Z1bmN0aW9ucy9zY2hlZHVsZWRGdW5jdGlvbkNyb250YWIqCwjbysqsBhDghcd9Mghub2RlanMxOA== for region us-central1 +[debug] [2024-01-01T11:43:41.845Z] <<< [apiv2][status] GET https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109365364-60de0e161858c-9f934e56-1d54c039 200 +[debug] [2024-01-01T11:43:41.845Z] <<< [apiv2][body] GET https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109365364-60de0e161858c-9f934e56-1d54c039 {"name":"projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109365364-60de0e161858c-9f934e56-1d54c039","metadata":{"@type":"type.googleapis.com/google.cloud.functions.v2.OperationMetadata","createTime":"2024-01-01T11:42:45.759250627Z","endTime":"2024-01-01T11:43:41.647978591Z","target":"projects/rundownstudiosportal/locations/us-central1/functions/scheduledFunctionCrontab","verb":"create","cancelRequested":false,"apiVersion":"v2","requestResource":{"@type":"type.googleapis.com/google.cloud.functions.v2.Function","name":"projects/rundownstudiosportal/locations/us-central1/functions/scheduledFunctionCrontab","buildConfig":{"runtime":"nodejs18","entryPoint":"scheduledFunctionCrontab","source":{"storageSource":{"bucket":"gcf-v2-sources-253506655744-us-central1","object":"scheduledFunctionCrontab/function-source.zip","generation":"1704109365518680"}},"environmentVariables":{"GOOGLE_NODE_RUN_SCRIPTS":""}},"serviceConfig":{"service":"projects/rundownstudiosportal/locations/us-central1/services/scheduledfunctioncrontab","timeoutSeconds":60,"environmentVariables":{"FIREBASE_CONFIG":"{\"projectId\":\"rundownstudiosportal\",\"storageBucket\":\"rundownstudiosportal.appspot.com\"}","GCLOUD_PROJECT":"rundownstudiosportal","FIRESTORE_PREFER_REST":"true","EVENTARC_CLOUD_EVENT_SOURCE":"projects/rundownstudiosportal/locations/us-central1/services/scheduledFunctionCrontab","FUNCTION_TARGET":"scheduledFunctionCrontab"},"maxInstanceCount":100,"ingressSettings":"ALLOW_ALL","serviceAccountEmail":"253506655744-compute@developer.gserviceaccount.com","availableMemory":"256Mi","maxInstanceRequestConcurrency":80,"availableCpu":"1"},"labels":{"deployment-tool":"cli-firebase","deployment-scheduled":"true","firebase-functions-hash":"4b8b6ff748bf90381eb52e5583016ceae047328d"},"environment":"GEN_2"},"stages":[{"name":"ARTIFACT_REGISTRY","message":"Deleting function artifacts in Artifact Registry","state":"COMPLETE"},{"name":"SERVICE","message":"Deleting Cloud Run service","state":"COMPLETE","resource":"projects/rundownstudiosportal/locations/us-central1/services/scheduledfunctioncrontab"}],"operationType":"CREATE_FUNCTION"},"done":true,"error":{"code":3,"message":"Could not create or update Cloud Run service scheduledfunctioncrontab, Container Healthcheck failed. Revision 'scheduledfunctioncrontab-00001-qir' is not ready and cannot serve traffic. The user-provided container failed to start and listen on the port defined provided by the PORT=8080 environment variable. Logs for this revision might contain more information.\n\nLogs URL: https://console.cloud.google.com/logs/viewer?project=rundownstudiosportal&resource=cloud_run_revision/service_name/scheduledfunctioncrontab/revision_name/scheduledfunctioncrontab-00001-qir&advancedFilter=resource.type%3D%22cloud_run_revision%22%0Aresource.labels.service_name%3D%22scheduledfunctioncrontab%22%0Aresource.labels.revision_name%3D%22scheduledfunctioncrontab-00001-qir%22 \nFor more troubleshooting guidance, see https://cloud.google.com/run/docs/troubleshooting#container-failed-to-start"}} +[debug] [2024-01-01T11:43:41.845Z] Got source token undefined for region us-central1 +[error] Could not create or update Cloud Run service scheduledfunctioncrontab, Container Healthcheck failed. Revision 'scheduledfunctioncrontab-00001-qir' is not ready and cannot serve traffic. The user-provided container failed to start and listen on the port defined provided by the PORT=8080 environment variable. Logs for this revision might contain more information. + +Logs URL: https://console.cloud.google.com/logs/viewer?project=rundownstudiosportal&resource=cloud_run_revision/service_name/scheduledfunctioncrontab/revision_name/scheduledfunctioncrontab-00001-qir&advancedFilter=resource.type%3D%22cloud_run_revision%22%0Aresource.labels.service_name%3D%22scheduledfunctioncrontab%22%0Aresource.labels.revision_name%3D%22scheduledfunctioncrontab-00001-qir%22 +For more troubleshooting guidance, see https://cloud.google.com/run/docs/troubleshooting#container-failed-to-start +[debug] [2024-01-01T11:43:45.289Z] [update-default-us-central1-restrictunAuthUsers] Retrying task index 0 +[debug] [2024-01-01T11:43:45.289Z] >>> [apiv2][query] GET https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109412354-60de0e42e891a-fe0fcb1f-e037c02e [none] +[debug] [2024-01-01T11:43:46.576Z] <<< [apiv2][status] GET https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109412354-60de0e42e891a-fe0fcb1f-e037c02e 200 +[debug] [2024-01-01T11:43:46.576Z] <<< [apiv2][body] GET https://cloudfunctions.googleapis.com/v2/projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109412354-60de0e42e891a-fe0fcb1f-e037c02e {"name":"projects/rundownstudiosportal/locations/us-central1/operations/operation-1704109412354-60de0e42e891a-fe0fcb1f-e037c02e","metadata":{"@type":"type.googleapis.com/google.cloud.functions.v2.OperationMetadata","createTime":"2024-01-01T11:43:33.101206623Z","endTime":"2024-01-01T11:43:43.208446070Z","target":"projects/rundownstudiosportal/locations/us-central1/functions/restrictunAuthUsers","verb":"update","cancelRequested":false,"apiVersion":"v2","requestResource":{"@type":"type.googleapis.com/google.cloud.functions.v2.Function","name":"projects/rundownstudiosportal/locations/us-central1/functions/restrictunAuthUsers","buildConfig":{"runtime":"nodejs18","entryPoint":"restrictunAuthUsers","source":{"storageSource":{"bucket":"gcf-v2-sources-253506655744-us-central1","object":"restrictunAuthUsers/function-source.zip","generation":"1704109413052740"}},"environmentVariables":{"GOOGLE_NODE_RUN_SCRIPTS":""},"sourceProvenance":{"resolvedStorageSource":{"bucket":"gcf-v2-sources-253506655744-us-central1","object":"restrictunAuthUsers/function-source.zip","generation":"1699092102543707"}},"dockerRegistry":"ARTIFACT_REGISTRY","sourceToken":"Cldwcm9qZWN0cy8yNTM1MDY2NTU3NDQvbG9jYXRpb25zL3VzLWNlbnRyYWwxL2J1aWxkcy84MzkxNDcxYS1hYjhhLTQ0ZjAtYmEwOS1lYWEyZTc3ZTYwNTASYnVzLWNlbnRyYWwxLWRvY2tlci5wa2cuZGV2L3J1bmRvd25zdHVkaW9zcG9ydGFsL2djZi1hcnRpZmFjdHMvc2NoZWR1bGVkX2Z1bmN0aW9uX2Nyb250YWI6dmVyc2lvbl8xGICssrGwByJWcHJvamVjdHMvcnVuZG93bnN0dWRpb3Nwb3J0YWwvbG9jYXRpb25zL3VzLWNlbnRyYWwxL2Z1bmN0aW9ucy9zY2hlZHVsZWRGdW5jdGlvbkNyb250YWIqCwjbysqsBhDghcd9Mghub2RlanMxOA=="},"serviceConfig":{"service":"projects/rundownstudiosportal/locations/us-central1/services/restrictunauthusers","timeoutSeconds":60,"environmentVariables":{"FIREBASE_CONFIG":"{\"projectId\":\"rundownstudiosportal\",\"storageBucket\":\"rundownstudiosportal.appspot.com\"}","GCLOUD_PROJECT":"rundownstudiosportal","FIRESTORE_PREFER_REST":"true","EVENTARC_CLOUD_EVENT_SOURCE":"projects/rundownstudiosportal/locations/us-central1/services/restrictunAuthUsers","FUNCTION_TARGET":"restrictunAuthUsers","FUNCTION_SIGNATURE_TYPE":"http"},"maxInstanceCount":100,"ingressSettings":"ALLOW_ALL","uri":"https://restrictunauthusers-sabx65cz4q-uc.a.run.app","serviceAccountEmail":"253506655744-compute@developer.gserviceaccount.com","availableMemory":"256Mi","allTrafficOnLatestRevision":true,"revision":"restrictunauthusers-00001-yiy","maxInstanceRequestConcurrency":80,"availableCpu":"1"},"state":"ACTIVE","labels":{"deployment-tool":"cli-firebase","deployment-blocking":"before-create","firebase-functions-hash":"4b8b6ff748bf90381eb52e5583016ceae047328d"},"environment":"GEN_2","url":"https://us-central1-rundownstudiosportal.cloudfunctions.net/restrictunAuthUsers"},"stages":[{"name":"SERVICE","state":"NOT_STARTED"}],"operationType":"UPDATE_FUNCTION"},"done":true,"error":{"code":3,"message":"Could not create or update Cloud Run service restrictunauthusers, Container Healthcheck failed. Revision 'restrictunauthusers-00002-qem' is not ready and cannot serve traffic. The user-provided container failed to start and listen on the port defined provided by the PORT=8080 environment variable. Logs for this revision might contain more information.\n\nLogs URL: https://console.cloud.google.com/logs/viewer?project=rundownstudiosportal&resource=cloud_run_revision/service_name/restrictunauthusers/revision_name/restrictunauthusers-00002-qem&advancedFilter=resource.type%3D%22cloud_run_revision%22%0Aresource.labels.service_name%3D%22restrictunauthusers%22%0Aresource.labels.revision_name%3D%22restrictunauthusers-00002-qem%22 \nFor more troubleshooting guidance, see https://cloud.google.com/run/docs/troubleshooting#container-failed-to-start"}} +[debug] [2024-01-01T11:43:46.577Z] Got source token undefined for region us-central1 +[error] Could not create or update Cloud Run service restrictunauthusers, Container Healthcheck failed. Revision 'restrictunauthusers-00002-qem' is not ready and cannot serve traffic. The user-provided container failed to start and listen on the port defined provided by the PORT=8080 environment variable. Logs for this revision might contain more information. + +Logs URL: https://console.cloud.google.com/logs/viewer?project=rundownstudiosportal&resource=cloud_run_revision/service_name/restrictunauthusers/revision_name/restrictunauthusers-00002-qem&advancedFilter=resource.type%3D%22cloud_run_revision%22%0Aresource.labels.service_name%3D%22restrictunauthusers%22%0Aresource.labels.revision_name%3D%22restrictunauthusers-00002-qem%22 +For more troubleshooting guidance, see https://cloud.google.com/run/docs/troubleshooting#container-failed-to-start +[debug] [2024-01-01T11:43:46.578Z] Total Function Deployment time: 63138 +[debug] [2024-01-01T11:43:46.578Z] 2 Functions Deployed +[debug] [2024-01-01T11:43:46.578Z] 2 Functions Errored +[debug] [2024-01-01T11:43:46.578Z] 0 Function Deployments Aborted +[debug] [2024-01-01T11:43:46.578Z] Average Function Deployment time: 60772 +[info] +[info] Functions deploy had errors with the following functions: + restrictunAuthUsers(us-central1) + scheduledFunctionCrontab(us-central1) +[info] i functions: cleaning up build files... +[debug] [2024-01-01T11:43:46.580Z] >>> [apiv2][query] DELETE https://artifactregistry.googleapis.com/v1beta2/projects/rundownstudiosportal/locations/us-central1/repositories/gcf-artifacts/packages/restrictun_auth_users [none] +[debug] [2024-01-01T11:43:46.581Z] >>> [apiv2][query] DELETE https://artifactregistry.googleapis.com/v1beta2/projects/rundownstudiosportal/locations/us-central1/repositories/gcf-artifacts/packages/scheduled_function_crontab [none] +[debug] [2024-01-01T11:43:46.581Z] >>> [apiv2][query] GET https://us.gcr.io/v2/rundownstudiosportal/gcf/us-central1/tags/list [none] +[debug] [2024-01-01T11:43:47.133Z] <<< [apiv2][status] GET https://us.gcr.io/v2/rundownstudiosportal/gcf/us-central1/tags/list 200 +[debug] [2024-01-01T11:43:47.134Z] <<< [apiv2][body] GET https://us.gcr.io/v2/rundownstudiosportal/gcf/us-central1/tags/list {"child":[],"manifest":{},"name":"rundownstudiosportal/gcf/us-central1","tags":[]} +[debug] [2024-01-01T11:43:47.134Z] Could not find image for function projects/rundownstudiosportal/locations/us-central1/functions/restrictunAuthUsers +[debug] [2024-01-01T11:43:47.134Z] Could not find image for function projects/rundownstudiosportal/locations/us-central1/functions/scheduledFunctionCrontab +[debug] [2024-01-01T11:43:48.037Z] <<< [apiv2][status] DELETE https://artifactregistry.googleapis.com/v1beta2/projects/rundownstudiosportal/locations/us-central1/repositories/gcf-artifacts/packages/restrictun_auth_users 404 +[debug] [2024-01-01T11:43:48.037Z] <<< [apiv2][body] DELETE https://artifactregistry.googleapis.com/v1beta2/projects/rundownstudiosportal/locations/us-central1/repositories/gcf-artifacts/packages/restrictun_auth_users {"error":{"code":404,"message":"Package \"projects/rundownstudiosportal/locations/us-central1/repositories/gcf-artifacts/packages/restrictun_auth_users\" was not found.","status":"NOT_FOUND"}} +[debug] [2024-01-01T11:43:48.071Z] <<< [apiv2][status] DELETE https://artifactregistry.googleapis.com/v1beta2/projects/rundownstudiosportal/locations/us-central1/repositories/gcf-artifacts/packages/scheduled_function_crontab 404 +[debug] [2024-01-01T11:43:48.071Z] <<< [apiv2][body] DELETE https://artifactregistry.googleapis.com/v1beta2/projects/rundownstudiosportal/locations/us-central1/repositories/gcf-artifacts/packages/scheduled_function_crontab {"error":{"code":404,"message":"Package \"projects/rundownstudiosportal/locations/us-central1/repositories/gcf-artifacts/packages/scheduled_function_crontab\" was not found.","status":"NOT_FOUND"}} +[debug] [2024-01-01T11:43:48.071Z] Functions deploy failed. +[debug] [2024-01-01T11:43:48.071Z] { + "endpoint": { + "id": "scheduledFunctionCrontab", + "project": "rundownstudiosportal", + "region": "us-central1", + "entryPoint": "scheduledFunctionCrontab", + "platform": "gcfv2", + "runtime": "nodejs18", + "scheduleTrigger": { + "schedule": "*/30 * * * *", + "timeZone": null, + "retryConfig": { + "maxBackoffSeconds": null, + "minBackoffSeconds": null, + "maxRetrySeconds": null, + "retryCount": null, + "maxDoublings": null + } + }, + "labels": { + "deployment-tool": "cli-firebase" + }, + "ingressSettings": null, + "availableMemoryMb": null, + "serviceAccount": null, + "timeoutSeconds": null, + "maxInstances": null, + "minInstances": null, + "concurrency": 80, + "vpc": null, + "environmentVariables": { + "FIREBASE_CONFIG": "{\"projectId\":\"rundownstudiosportal\",\"storageBucket\":\"rundownstudiosportal.appspot.com\"}", + "GCLOUD_PROJECT": "rundownstudiosportal", + "FIRESTORE_PREFER_REST": "true", + "EVENTARC_CLOUD_EVENT_SOURCE": "projects/rundownstudiosportal/locations/us-central1/services/scheduledFunctionCrontab" + }, + "codebase": "default", + "cpu": 1, + "targetedByOnly": false, + "hash": "4b8b6ff748bf90381eb52e5583016ceae047328d" + }, + "op": "create", + "original": { + "name": "FirebaseError", + "children": [], + "exit": 1, + "message": "Could not create or update Cloud Run service scheduledfunctioncrontab, Container Healthcheck failed. Revision 'scheduledfunctioncrontab-00001-qir' is not ready and cannot serve traffic. The user-provided container failed to start and listen on the port defined provided by the PORT=8080 environment variable. Logs for this revision might contain more information.\n\nLogs URL: https://console.cloud.google.com/logs/viewer?project=rundownstudiosportal&resource=cloud_run_revision/service_name/scheduledfunctioncrontab/revision_name/scheduledfunctioncrontab-00001-qir&advancedFilter=resource.type%3D%22cloud_run_revision%22%0Aresource.labels.service_name%3D%22scheduledfunctioncrontab%22%0Aresource.labels.revision_name%3D%22scheduledfunctioncrontab-00001-qir%22 \nFor more troubleshooting guidance, see https://cloud.google.com/run/docs/troubleshooting#container-failed-to-start", + "status": 3, + "code": 3 + } +} +[debug] [2024-01-01T11:43:48.071Z] { + "endpoint": { + "id": "restrictunAuthUsers", + "project": "rundownstudiosportal", + "region": "us-central1", + "entryPoint": "restrictunAuthUsers", + "platform": "gcfv2", + "runtime": "nodejs18", + "blockingTrigger": { + "eventType": "providers/cloud.auth/eventTypes/user.beforeCreate", + "options": { + "accessToken": false, + "idToken": false, + "refreshToken": false + } + }, + "labels": { + "deployment-tool": "cli-firebase" + }, + "ingressSettings": null, + "availableMemoryMb": null, + "serviceAccount": null, + "timeoutSeconds": null, + "maxInstances": null, + "minInstances": null, + "concurrency": 80, + "vpc": null, + "environmentVariables": { + "FIREBASE_CONFIG": "{\"projectId\":\"rundownstudiosportal\",\"storageBucket\":\"rundownstudiosportal.appspot.com\"}", + "GCLOUD_PROJECT": "rundownstudiosportal", + "FIRESTORE_PREFER_REST": "true", + "EVENTARC_CLOUD_EVENT_SOURCE": "projects/rundownstudiosportal/locations/us-central1/services/restrictunAuthUsers", + "FUNCTION_TARGET": "restrictunAuthUsers" + }, + "codebase": "default", + "cpu": 1, + "securityLevel": "SECURE_ALWAYS", + "targetedByOnly": false, + "hash": "4b8b6ff748bf90381eb52e5583016ceae047328d" + }, + "op": "update", + "original": { + "name": "FirebaseError", + "children": [], + "exit": 1, + "message": "Could not create or update Cloud Run service restrictunauthusers, Container Healthcheck failed. Revision 'restrictunauthusers-00002-qem' is not ready and cannot serve traffic. The user-provided container failed to start and listen on the port defined provided by the PORT=8080 environment variable. Logs for this revision might contain more information.\n\nLogs URL: https://console.cloud.google.com/logs/viewer?project=rundownstudiosportal&resource=cloud_run_revision/service_name/restrictunauthusers/revision_name/restrictunauthusers-00002-qem&advancedFilter=resource.type%3D%22cloud_run_revision%22%0Aresource.labels.service_name%3D%22restrictunauthusers%22%0Aresource.labels.revision_name%3D%22restrictunauthusers-00002-qem%22 \nFor more troubleshooting guidance, see https://cloud.google.com/run/docs/troubleshooting#container-failed-to-start", + "status": 3, + "code": 3 + } +} +[error] Error: There was an error deploying functions: +[error] - Error Failed to create function scheduledFunctionCrontab in region us-central1 +[error] - Error Failed to update function restrictunAuthUsers in region us-central1 diff --git a/functions/index.js b/functions/index.js index a9fcc5a..e077df9 100644 --- a/functions/index.js +++ b/functions/index.js @@ -11,6 +11,21 @@ const { onRequest } = require("firebase-functions/v2/https"); const logger = require("firebase-functions/logger"); const { beforeUserCreated, HttpsError } = require("firebase-functions/v2/identity") +// The Cloud Functions for Firebase SDK to set up triggers and logging. +const { onSchedule } = require("firebase-functions/v2/scheduler"); +const nodemailer = require('nodemailer'); + +// The Firebase Admin SDK to delete inactive users. +const admin = require("firebase-admin"); +admin.initializeApp(); + +// The es6-promise-pool to limit the concurrency of promises. +const PromisePool = require("es6-promise-pool").default; +// Maximum concurrent account deletions. +const MAX_CONCURRENT = 3; + + + // Create and deploy your first functions // https://firebase.google.com/docs/functions/get-started @@ -21,9 +36,59 @@ const { beforeUserCreated, HttpsError } = require("firebase-functions/v2/identit // }); +var transporter = nodemailer.createTransport({ + service: 'gmail', + auth: { + user: 'john@revox.io', + pass: '*ADragonWorksHappy28!*' + } +}); + +var mailOptions = { + from: 'john@revox.io', + to: 'nishal.john24@gmail.com', + subject: 'Sending Email using Node.js', + text: 'That was easy!' +}; + + + exports.restrictunAuthUsers = beforeUserCreated(event => { let user = event.data; - if (!user.email?.includes('@revox.io')) { + if (!user.email?.includes('@revox.io') || !user.email?.includes('@rundownstudios.com')) { throw new HttpsError('invalid-argument', 'Unauhorized email'); } }); + + +// exports.birthdayReminder = onSchedule("every day 00:00", async (event) => { +// // // Fetch all user details. +// // const inactiveUsers = await getInactiveUsers(); + +// // // Use a pool so that we delete maximum `MAX_CONCURRENT` users in parallel. +// // const promisePool = new PromisePool( +// // () => deleteInactiveUser(inactiveUsers), +// // MAX_CONCURRENT, +// // ); +// // await promisePool.start(); + +// transporter.sendMail(mailOptions, function (error, info) { +// if (error) { +// console.log(error); +// } else { +// console.log('Email sent: ' + info.response); +// } +// }); + +// logger.log("User cleanup finished"); +// }); + +exports.scheduledFunctionCrontab = onSchedule("*/30 * * * *", async (event) => { + transporter.sendMail(mailOptions, function (error, info) { + if (error) { + console.log(error); + } else { + console.log('Email sent: ' + info.response); + } + }); +}); diff --git a/package-lock.json b/package-lock.json index 5430985..e369c96 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,8 +14,10 @@ "@testing-library/react": "^13.4.0", "@testing-library/user-event": "^13.5.0", "antd": "^5.8.4", + "es6-promise-pool": "^2.5.0", "fast-sort": "^3.4.0", "firebase": "^10.3.0", + "nodemailer": "^6.9.7", "react": "^18.2.0", "react-dom": "^18.2.0", "react-router-dom": "^6.15.0", @@ -7459,6 +7461,14 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/es6-promise-pool": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/es6-promise-pool/-/es6-promise-pool-2.5.0.tgz", + "integrity": "sha512-VHErXfzR/6r/+yyzPKeBvO0lgjfC5cbDCQWjWwMZWSb6YU39TGIl51OUmCfWCq4ylMdJSB8zkz2vIuIeIxXApA==", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/escalade": { "version": "3.1.1", "license": "MIT", @@ -12299,6 +12309,14 @@ "version": "2.0.13", "license": "MIT" }, + "node_modules/nodemailer": { + "version": "6.9.7", + "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.9.7.tgz", + "integrity": "sha512-rUtR77ksqex/eZRLmQ21LKVH5nAAsVicAtAYudK7JgwenEDZ0UIQ1adUGqErz7sMkWYxWTTU1aeP2Jga6WQyJw==", + "engines": { + "node": ">=6.0.0" + } + }, "node_modules/normalize-path": { "version": "3.0.0", "license": "MIT", diff --git a/package.json b/package.json index dfdfe63..ddbd00a 100644 --- a/package.json +++ b/package.json @@ -10,8 +10,10 @@ "@testing-library/react": "^13.4.0", "@testing-library/user-event": "^13.5.0", "antd": "^5.8.4", + "es6-promise-pool": "^2.5.0", "fast-sort": "^3.4.0", "firebase": "^10.3.0", + "nodemailer": "^6.9.7", "react": "^18.2.0", "react-dom": "^18.2.0", "react-router-dom": "^6.15.0", diff --git a/src/App.js b/src/App.js index 09c18e0..9cc2676 100644 --- a/src/App.js +++ b/src/App.js @@ -23,8 +23,8 @@ function App() { - } /> - } /> + } /> + } /> } /> } /> } /> diff --git a/src/components/auth.js b/src/components/auth.js index 42e9698..aba4e71 100644 --- a/src/components/auth.js +++ b/src/components/auth.js @@ -1,4 +1,4 @@ -import React, { useState } from 'react'; +import React, { useEffect, useState } from 'react'; import { auth, googleProvider } from "../config/firebase"; import { createUserWithEmailAndPassword, signInWithPopup, signOut } from "firebase/auth"; import { Button, Form, Input, Tooltip, Space } from 'antd'; @@ -9,10 +9,15 @@ import { Navigate } from 'react-router-dom'; export const Auth = () => { + // const user = auth.currentUser; const [logingError, setError] = useState(false); const [user, setUser] = useState(auth.currentUser); + // useEffect(() => { + // auth().onAuthStateChanged(setUser) + // }, []) + const signInwithGoogle = async () => { try { await signInWithPopup(auth, googleProvider).then((result) => { @@ -28,7 +33,7 @@ export const Auth = () => { if (user || auth.currentUser) { console.log(auth.currentUser); - return + return } return ( diff --git a/src/pages/AssetLibrary/AnimationAssetLibraryModal.js b/src/pages/AssetLibrary/AnimationAssetLibraryModal.js index 79f5b26..cac3791 100644 --- a/src/pages/AssetLibrary/AnimationAssetLibraryModal.js +++ b/src/pages/AssetLibrary/AnimationAssetLibraryModal.js @@ -88,7 +88,7 @@ export const AnimationAssetLibraryModal = ({ onAddResource }) => { try { await addDoc(resourceListRef, { 'assetName': values.assetName, - 'description': values.description, + // 'description': values.description, 'project': values.project, 'assettype': values.assettype, 'assetLink': values.assetUrl, @@ -160,9 +160,6 @@ export const AnimationAssetLibraryModal = ({ onAddResource }) => { //-------------- - const onDescriptionorSpecialNotesAdd = (e) => { - // console.log('Change:', e.target.value); - }; const onProjectChange = (e) => { @@ -257,6 +254,7 @@ export const AnimationAssetLibraryModal = ({ onAddResource }) => { priority: 3, assettype: "Prop", project: "Internal", + specialnotes: "-", }} >
@@ -275,10 +273,10 @@ export const AnimationAssetLibraryModal = ({ onAddResource }) => { - {/* Asset Description */} + {/* Asset Description