diff --git a/.gitignore b/.gitignore index 92b6b80..3e4b070 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,4 @@ functions/__pycache__/* firestore-debug.log ui-debug.log ServiceAccountKey.json -firebase-debug +firebase-debug.log diff --git a/firebase-debug.log b/firebase-debug.log deleted file mode 100644 index 42a9473..0000000 --- a/firebase-debug.log +++ /dev/null @@ -1,369 +0,0 @@ -[debug] [2024-01-27T20:59:53.338Z] ---------------------------------------------------------------------- -[debug] [2024-01-27T20:59:53.342Z] Command: /opt/homebrew/Cellar/node/21.5.0/bin/node /opt/homebrew/bin/firebase deploy -[debug] [2024-01-27T20:59:53.343Z] CLI Version: 13.1.0 -[debug] [2024-01-27T20:59:53.343Z] Platform: darwin -[debug] [2024-01-27T20:59:53.343Z] Node Version: v21.5.0 -[debug] [2024-01-27T20:59:53.343Z] Time: Sat Jan 27 2024 20:59:53 GMT+0000 (Greenwich Mean Time) -[debug] [2024-01-27T20:59:53.343Z] ---------------------------------------------------------------------- -[debug] -[debug] [2024-01-27T20:59:53.379Z] > 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-27T20:59:53.379Z] > authorizing via signed-in user (raghavawasthi2005@gmail.com) -[debug] [2024-01-27T20:59:53.379Z] [iam] checking project playo-913ea for permissions ["cloudfunctions.functions.create","cloudfunctions.functions.delete","cloudfunctions.functions.get","cloudfunctions.functions.list","cloudfunctions.functions.update","cloudfunctions.operations.get","datastore.indexes.create","datastore.indexes.delete","datastore.indexes.list","datastore.indexes.update","firebase.projects.get"] -[debug] [2024-01-27T20:59:53.380Z] >>> [apiv2][query] POST https://cloudresourcemanager.googleapis.com/v1/projects/playo-913ea:testIamPermissions [none] -[debug] [2024-01-27T20:59:53.380Z] >>> [apiv2][(partial)header] POST https://cloudresourcemanager.googleapis.com/v1/projects/playo-913ea:testIamPermissions x-goog-quota-user=projects/playo-913ea -[debug] [2024-01-27T20:59:53.380Z] >>> [apiv2][body] POST https://cloudresourcemanager.googleapis.com/v1/projects/playo-913ea:testIamPermissions {"permissions":["cloudfunctions.functions.create","cloudfunctions.functions.delete","cloudfunctions.functions.get","cloudfunctions.functions.list","cloudfunctions.functions.update","cloudfunctions.operations.get","datastore.indexes.create","datastore.indexes.delete","datastore.indexes.list","datastore.indexes.update","firebase.projects.get"]} -[debug] [2024-01-27T20:59:54.150Z] <<< [apiv2][status] POST https://cloudresourcemanager.googleapis.com/v1/projects/playo-913ea:testIamPermissions 200 -[debug] [2024-01-27T20:59:54.150Z] <<< [apiv2][body] POST https://cloudresourcemanager.googleapis.com/v1/projects/playo-913ea:testIamPermissions {"permissions":["cloudfunctions.functions.create","cloudfunctions.functions.delete","cloudfunctions.functions.get","cloudfunctions.functions.list","cloudfunctions.functions.update","cloudfunctions.operations.get","datastore.indexes.create","datastore.indexes.delete","datastore.indexes.list","datastore.indexes.update","firebase.projects.get"]} -[debug] [2024-01-27T20:59:54.150Z] >>> [apiv2][query] POST https://iam.googleapis.com/v1/projects/playo-913ea/serviceAccounts/playo-913ea@appspot.gserviceaccount.com:testIamPermissions [none] -[debug] [2024-01-27T20:59:54.151Z] >>> [apiv2][body] POST https://iam.googleapis.com/v1/projects/playo-913ea/serviceAccounts/playo-913ea@appspot.gserviceaccount.com:testIamPermissions {"permissions":["iam.serviceAccounts.actAs"]} -[debug] [2024-01-27T20:59:55.258Z] <<< [apiv2][status] POST https://iam.googleapis.com/v1/projects/playo-913ea/serviceAccounts/playo-913ea@appspot.gserviceaccount.com:testIamPermissions 200 -[debug] [2024-01-27T20:59:55.258Z] <<< [apiv2][body] POST https://iam.googleapis.com/v1/projects/playo-913ea/serviceAccounts/playo-913ea@appspot.gserviceaccount.com:testIamPermissions {"permissions":["iam.serviceAccounts.actAs"]} -[info] -[info] === Deploying to 'playo-913ea'... -[info] -[info] i deploying firestore, functions -[info] i firestore: reading indexes from firestore.indexes.json... -[info] i cloud.firestore: checking firestore.rules for compilation errors... -[debug] [2024-01-27T20:59:55.268Z] >>> [apiv2][query] POST https://firebaserules.googleapis.com/v1/projects/playo-913ea:test [none] -[debug] [2024-01-27T20:59:55.268Z] >>> [apiv2][body] POST https://firebaserules.googleapis.com/v1/projects/playo-913ea:test [omitted] -[debug] [2024-01-27T20:59:56.129Z] <<< [apiv2][status] POST https://firebaserules.googleapis.com/v1/projects/playo-913ea:test 200 -[debug] [2024-01-27T20:59:56.129Z] <<< [apiv2][body] POST https://firebaserules.googleapis.com/v1/projects/playo-913ea:test {} -[info] ✔ cloud.firestore: rules file firestore.rules compiled successfully -[debug] [2024-01-27T20:59:56.131Z] >>> [apiv2][query] GET https://firebase.googleapis.com/v1beta1/projects/playo-913ea [none] -[debug] [2024-01-27T20:59:56.436Z] <<< [apiv2][status] GET https://firebase.googleapis.com/v1beta1/projects/playo-913ea 200 -[debug] [2024-01-27T20:59:56.436Z] <<< [apiv2][body] GET https://firebase.googleapis.com/v1beta1/projects/playo-913ea {"projectId":"playo-913ea","projectNumber":"365603463757","displayName":"PLAYO","name":"projects/playo-913ea","resources":{"hostingSite":"playo-913ea","storageBucket":"playo-913ea.appspot.com","locationId":"europe-west"},"state":"ACTIVE","etag":"1_64d88615-a0a5-4ff0-b048-6efc50a621fd"} -[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-27T20:59:56.437Z] >>> [apiv2][query] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/cloudfunctions.googleapis.com [none] -[debug] [2024-01-27T20:59:56.437Z] >>> [apiv2][(partial)header] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/cloudfunctions.googleapis.com x-goog-quota-user=projects/playo-913ea -[debug] [2024-01-27T20:59:56.439Z] >>> [apiv2][query] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/runtimeconfig.googleapis.com [none] -[debug] [2024-01-27T20:59:56.439Z] >>> [apiv2][(partial)header] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/runtimeconfig.googleapis.com x-goog-quota-user=projects/playo-913ea -[debug] [2024-01-27T20:59:56.441Z] >>> [apiv2][query] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/cloudbuild.googleapis.com [none] -[debug] [2024-01-27T20:59:56.441Z] >>> [apiv2][(partial)header] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/cloudbuild.googleapis.com x-goog-quota-user=projects/playo-913ea -[debug] [2024-01-27T20:59:56.443Z] >>> [apiv2][query] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/artifactregistry.googleapis.com [none] -[debug] [2024-01-27T20:59:56.443Z] >>> [apiv2][(partial)header] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/artifactregistry.googleapis.com x-goog-quota-user=projects/playo-913ea -[debug] [2024-01-27T20:59:57.437Z] <<< [apiv2][status] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/artifactregistry.googleapis.com 200 -[debug] [2024-01-27T20:59:57.437Z] <<< [apiv2][body] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/artifactregistry.googleapis.com [omitted] -[info] ✔ artifactregistry: required API artifactregistry.googleapis.com is enabled -[debug] [2024-01-27T20:59:57.438Z] <<< [apiv2][status] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/cloudfunctions.googleapis.com 200 -[debug] [2024-01-27T20:59:57.439Z] <<< [apiv2][body] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/cloudfunctions.googleapis.com [omitted] -[info] ✔ functions: required API cloudfunctions.googleapis.com is enabled -[debug] [2024-01-27T20:59:57.439Z] <<< [apiv2][status] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/cloudbuild.googleapis.com 200 -[debug] [2024-01-27T20:59:57.439Z] <<< [apiv2][body] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/cloudbuild.googleapis.com [omitted] -[info] ✔ functions: required API cloudbuild.googleapis.com is enabled -[debug] [2024-01-27T20:59:57.455Z] <<< [apiv2][status] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/runtimeconfig.googleapis.com 200 -[debug] [2024-01-27T20:59:57.455Z] <<< [apiv2][body] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/runtimeconfig.googleapis.com [omitted] -[debug] [2024-01-27T20:59:57.456Z] >>> [apiv2][query] GET https://firebase.googleapis.com/v1beta1/projects/playo-913ea/adminSdkConfig [none] -[debug] [2024-01-27T20:59:57.749Z] <<< [apiv2][status] GET https://firebase.googleapis.com/v1beta1/projects/playo-913ea/adminSdkConfig 200 -[debug] [2024-01-27T20:59:57.749Z] <<< [apiv2][body] GET https://firebase.googleapis.com/v1beta1/projects/playo-913ea/adminSdkConfig {"projectId":"playo-913ea","storageBucket":"playo-913ea.appspot.com","locationId":"europe-west"} -[debug] [2024-01-27T20:59:57.750Z] >>> [apiv2][query] GET https://runtimeconfig.googleapis.com/v1beta1/projects/playo-913ea/configs [none] -[debug] [2024-01-27T20:59:58.777Z] <<< [apiv2][status] GET https://runtimeconfig.googleapis.com/v1beta1/projects/playo-913ea/configs 200 -[debug] [2024-01-27T20:59:58.777Z] <<< [apiv2][body] GET https://runtimeconfig.googleapis.com/v1beta1/projects/playo-913ea/configs {} -[debug] [2024-01-27T20:59:58.778Z] Customer code is not Node -[debug] [2024-01-27T20:59:58.779Z] Validating python source -[debug] [2024-01-27T20:59:58.779Z] Building python source -[info] i functions: Loading and analyzing source code for codebase default to determine what to deploy -[debug] [2024-01-27T20:59:58.780Z] Could not find functions.yaml. Must use http discovery -[debug] [2024-01-27T20:59:58.790Z] Running command with virtualenv: command=., args=["\"/Users/raghav/Library/CloudStorage/OneDrive-Personal/Hackathons/E-acc-2024/e-acc-playo/functions/venv/bin/activate\"","&&","python3.11","-c","\"import firebase_functions; import os; print(os.path.dirname(firebase_functions.__file__))\""] -[debug] [2024-01-27T20:59:58.871Z] stdout: /Users/raghav/Library/CloudStorage/OneDrive-Personal/Hackathons/E-acc-2024/e-acc-playo/functions/venv/lib/python3.11/site-packages/firebase_functions - -[debug] [2024-01-27T20:59:58.873Z] Running admin server with args: ["python3.11","\"/Users/raghav/Library/CloudStorage/OneDrive-Personal/Hackathons/E-acc-2024/e-acc-playo/functions/venv/lib/python3.11/site-packages/firebase_functions/private/serving.py\""] and env: {"FIREBASE_CONFIG":"{\"projectId\":\"playo-913ea\",\"storageBucket\":\"playo-913ea.appspot.com\",\"locationId\":\"europe-west\"}","GCLOUD_PROJECT":"playo-913ea","GOOGLE_CLOUD_QUOTA_PROJECT":"playo-913ea","ADMIN_PORT":"8081"} in /Users/raghav/Library/CloudStorage/OneDrive-Personal/Hackathons/E-acc-2024/e-acc-playo/functions -[debug] [2024-01-27T20:59:58.873Z] Running command with virtualenv: command=., args=["\"/Users/raghav/Library/CloudStorage/OneDrive-Personal/Hackathons/E-acc-2024/e-acc-playo/functions/venv/bin/activate\"","&&","python3.11","\"/Users/raghav/Library/CloudStorage/OneDrive-Personal/Hackathons/E-acc-2024/e-acc-playo/functions/venv/lib/python3.11/site-packages/firebase_functions/private/serving.py\""] -[info] * Serving Flask app 'serving' - * Debug mode: off - -[error] WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. - * Running on http://127.0.0.1:8081 - -[error] Press CTRL+C to quit - -[error] 127.0.0.1 - - [27/Jan/2024 21:00:00] "GET /__/functions.yaml HTTP/1.1" 200 - - -[debug] [2024-01-27T21:00:00.100Z] Got response from /__/functions.yaml endpoints: - generate_narration: - availableMemoryMb: null - concurrency: null - entryPoint: generate_narration - httpsTrigger: {} - ingressSettings: null - labels: {} - maxInstances: null - minInstances: null - platform: gcfv2 - secretEnvironmentVariables: [] - serviceAccountEmail: null - timeoutSeconds: null - generate_story: - availableMemoryMb: null - concurrency: null - entryPoint: generate_story - httpsTrigger: {} - ingressSettings: null - labels: {} - maxInstances: null - minInstances: null - platform: gcfv2 - secretEnvironmentVariables: [] - serviceAccountEmail: null - timeoutSeconds: null -params: [] -requiredAPIs: [] -specVersion: v1alpha1 - -[error] 127.0.0.1 - - [27/Jan/2024 21:00:00] "GET /__/quitquitquit HTTP/1.1" 200 - - -[error] /bin/sh: line 1: 34757 Terminated: 15 python3.11 "/Users/raghav/Library/CloudStorage/OneDrive-Personal/Hackathons/E-acc-2024/e-acc-playo/functions/venv/lib/python3.11/site-packages/firebase_functions/private/serving.py" - -[info] i functions: Loaded environment variables from .env. -[info] i functions: preparing functions directory for uploading... -[info] i functions: packaged /Users/raghav/Library/CloudStorage/OneDrive-Personal/Hackathons/E-acc-2024/e-acc-playo/functions (8.33 KB) for uploading -[debug] [2024-01-27T21:00:00.134Z] >>> [apiv2][query] GET https://cloudfunctions.googleapis.com/v1/projects/playo-913ea/locations/-/functions [none] -[debug] [2024-01-27T21:00:00.672Z] <<< [apiv2][status] GET https://cloudfunctions.googleapis.com/v1/projects/playo-913ea/locations/-/functions 200 -[debug] [2024-01-27T21:00:00.672Z] <<< [apiv2][body] GET https://cloudfunctions.googleapis.com/v1/projects/playo-913ea/locations/-/functions {} -[debug] [2024-01-27T21:00:00.673Z] >>> [apiv2][query] GET https://cloudfunctions.googleapis.com/v2/projects/playo-913ea/locations/-/functions filter=environment%3D%22GEN_2%22 -[debug] [2024-01-27T21:00:01.669Z] <<< [apiv2][status] GET https://cloudfunctions.googleapis.com/v2/projects/playo-913ea/locations/-/functions 200 -[debug] [2024-01-27T21:00:01.669Z] <<< [apiv2][body] GET https://cloudfunctions.googleapis.com/v2/projects/playo-913ea/locations/-/functions {"functions":[{"name":"projects/playo-913ea/locations/us-central1/functions/generate_narration","buildConfig":{"build":"projects/365603463757/locations/us-central1/builds/89acae12-15af-4406-a580-55c9cf7f4cbb","runtime":"python311","entryPoint":"generate_narration","source":{"storageSource":{"bucket":"gcf-v2-sources-365603463757-us-central1","object":"generate_narration/function-source.zip","generation":"1706389084188346"}},"environmentVariables":{"GOOGLE_NODE_RUN_SCRIPTS":""},"dockerRepository":"projects/playo-913ea/locations/us-central1/repositories/gcf-artifacts","sourceProvenance":{"resolvedStorageSource":{"bucket":"gcf-v2-sources-365603463757-us-central1","object":"generate_narration/function-source.zip","generation":"1706389084188346"}},"dockerRegistry":"ARTIFACT_REGISTRY"},"serviceConfig":{"service":"projects/playo-913ea/locations/us-central1/services/generate-narration","timeoutSeconds":60,"environmentVariables":{"OPENAI_API_KEY":"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","ELEVEN_API_KEY":"884e814830693efe2f3344a2581e3612","FIREBASE_CONFIG":"{\"projectId\":\"playo-913ea\",\"storageBucket\":\"playo-913ea.appspot.com\",\"locationId\":\"europe-west\"}","GCLOUD_PROJECT":"playo-913ea","EVENTARC_CLOUD_EVENT_SOURCE":"projects/playo-913ea/locations/us-central1/services/generate_narration","FUNCTION_TARGET":"generate_narration"},"maxInstanceCount":100,"ingressSettings":"ALLOW_ALL","uri":"https://generate-narration-omsnazusfa-uc.a.run.app","serviceAccountEmail":"365603463757-compute@developer.gserviceaccount.com","availableMemory":"256Mi","allTrafficOnLatestRevision":true,"revision":"generate-narration-00002-niv","maxInstanceRequestConcurrency":80,"availableCpu":"1"},"state":"ACTIVE","updateTime":"2024-01-27T20:58:55.207555848Z","labels":{"deployment-tool":"cli-firebase","firebase-functions-hash":"f980198ecf4cdc575f927259520cfaf1dc88ceaa"},"environment":"GEN_2","url":"https://us-central1-playo-913ea.cloudfunctions.net/generate_narration"},{"name":"projects/playo-913ea/locations/us-central1/functions/trythis","buildConfig":{"build":"projects/365603463757/locations/us-central1/builds/27fe2353-0ace-4f25-98ea-a6aa6dc9ad64","runtime":"python311","entryPoint":"trythis","source":{"storageSource":{"bucket":"gcf-v2-sources-365603463757-us-central1","object":"trythis/function-source.zip","generation":"1706375997775122"}},"environmentVariables":{"GOOGLE_NODE_RUN_SCRIPTS":""},"dockerRepository":"projects/playo-913ea/locations/us-central1/repositories/gcf-artifacts","sourceProvenance":{"resolvedStorageSource":{"bucket":"gcf-v2-sources-365603463757-us-central1","object":"trythis/function-source.zip","generation":"1706375997775122"}},"dockerRegistry":"ARTIFACT_REGISTRY"},"serviceConfig":{"service":"projects/playo-913ea/locations/us-central1/services/trythis","timeoutSeconds":60,"environmentVariables":{"OPENAI_API_KEY":"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","FIREBASE_CONFIG":"{\"projectId\":\"playo-913ea\",\"storageBucket\":\"playo-913ea.appspot.com\"}","GCLOUD_PROJECT":"playo-913ea","EVENTARC_CLOUD_EVENT_SOURCE":"projects/playo-913ea/locations/us-central1/services/trythis","FUNCTION_TARGET":"trythis"},"maxInstanceCount":100,"ingressSettings":"ALLOW_ALL","uri":"https://trythis-omsnazusfa-uc.a.run.app","serviceAccountEmail":"365603463757-compute@developer.gserviceaccount.com","availableMemory":"256Mi","allTrafficOnLatestRevision":true,"revision":"trythis-00001-kix","maxInstanceRequestConcurrency":80,"availableCpu":"1"},"state":"ACTIVE","updateTime":"2024-01-27T17:21:53.223624165Z","labels":{"deployment-tool":"cli-firebase","firebase-functions-hash":"d1d206614dae5fe6785daf12834f7e4e0a022bc8"},"environment":"GEN_2","url":"https://us-central1-playo-913ea.cloudfunctions.net/trythis"},{"name":"projects/playo-913ea/locations/us-central1/functions/generate_story","buildConfig":{"build":"projects/365603463757/locations/us-central1/builds/89acae12-15af-4406-a580-55c9cf7f4cbb","runtime":"python311","entryPoint":"generate_story","source":{"storageSource":{"bucket":"gcf-v2-sources-365603463757-us-central1","object":"generate_story/function-source.zip","generation":"1706389127697251"}},"environmentVariables":{"GOOGLE_NODE_RUN_SCRIPTS":""},"dockerRepository":"projects/playo-913ea/locations/us-central1/repositories/gcf-artifacts","sourceProvenance":{"resolvedStorageSource":{"bucket":"gcf-v2-sources-365603463757-us-central1","object":"generate_story/function-source.zip","generation":"1706389127697251"}},"dockerRegistry":"ARTIFACT_REGISTRY"},"serviceConfig":{"service":"projects/playo-913ea/locations/us-central1/services/generate-story","timeoutSeconds":60,"environmentVariables":{"OPENAI_API_KEY":"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","ELEVEN_API_KEY":"884e814830693efe2f3344a2581e3612","FIREBASE_CONFIG":"{\"projectId\":\"playo-913ea\",\"storageBucket\":\"playo-913ea.appspot.com\",\"locationId\":\"europe-west\"}","GCLOUD_PROJECT":"playo-913ea","EVENTARC_CLOUD_EVENT_SOURCE":"projects/playo-913ea/locations/us-central1/services/generate_story","FUNCTION_TARGET":"generate_story","FUNCTION_SIGNATURE_TYPE":"http"},"maxInstanceCount":100,"ingressSettings":"ALLOW_ALL","uri":"https://generate-story-omsnazusfa-uc.a.run.app","serviceAccountEmail":"365603463757-compute@developer.gserviceaccount.com","availableMemory":"256Mi","allTrafficOnLatestRevision":true,"revision":"generate-story-00006-moc","maxInstanceRequestConcurrency":80,"availableCpu":"1"},"state":"ACTIVE","updateTime":"2024-01-27T20:58:58.411410215Z","labels":{"deployment-tool":"cli-firebase","firebase-functions-hash":"f980198ecf4cdc575f927259520cfaf1dc88ceaa"},"environment":"GEN_2","url":"https://us-central1-playo-913ea.cloudfunctions.net/generate_story"}]} -[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-27T21:00:01.672Z] >>> [apiv2][query] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/run.googleapis.com [none] -[debug] [2024-01-27T21:00:01.672Z] >>> [apiv2][(partial)header] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/run.googleapis.com x-goog-quota-user=projects/playo-913ea -[debug] [2024-01-27T21:00:01.673Z] >>> [apiv2][query] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/eventarc.googleapis.com [none] -[debug] [2024-01-27T21:00:01.673Z] >>> [apiv2][(partial)header] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/eventarc.googleapis.com x-goog-quota-user=projects/playo-913ea -[debug] [2024-01-27T21:00:01.673Z] >>> [apiv2][query] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/pubsub.googleapis.com [none] -[debug] [2024-01-27T21:00:01.673Z] >>> [apiv2][(partial)header] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/pubsub.googleapis.com x-goog-quota-user=projects/playo-913ea -[debug] [2024-01-27T21:00:01.674Z] >>> [apiv2][query] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/storage.googleapis.com [none] -[debug] [2024-01-27T21:00:01.674Z] >>> [apiv2][(partial)header] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/storage.googleapis.com x-goog-quota-user=projects/playo-913ea -[debug] [2024-01-27T21:00:02.063Z] <<< [apiv2][status] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/run.googleapis.com 200 -[debug] [2024-01-27T21:00:02.063Z] <<< [apiv2][body] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/run.googleapis.com [omitted] -[info] ✔ functions: required API run.googleapis.com is enabled -[debug] [2024-01-27T21:00:02.076Z] <<< [apiv2][status] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/storage.googleapis.com 200 -[debug] [2024-01-27T21:00:02.076Z] <<< [apiv2][body] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/storage.googleapis.com [omitted] -[info] ✔ functions: required API storage.googleapis.com is enabled -[debug] [2024-01-27T21:00:02.482Z] <<< [apiv2][status] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/pubsub.googleapis.com 200 -[debug] [2024-01-27T21:00:02.482Z] <<< [apiv2][body] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/pubsub.googleapis.com [omitted] -[info] ✔ functions: required API pubsub.googleapis.com is enabled -[debug] [2024-01-27T21:00:02.509Z] <<< [apiv2][status] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/eventarc.googleapis.com 200 -[debug] [2024-01-27T21:00:02.509Z] <<< [apiv2][body] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/eventarc.googleapis.com [omitted] -[info] ✔ functions: required API eventarc.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-27T21:00:02.510Z] >>> [apiv2][query] POST https://serviceusage.googleapis.com/v1beta1/projects/365603463757/services/pubsub.googleapis.com:generateServiceIdentity [none] -[debug] [2024-01-27T21:00:02.510Z] >>> [apiv2][query] POST https://serviceusage.googleapis.com/v1beta1/projects/365603463757/services/eventarc.googleapis.com:generateServiceIdentity [none] -[debug] [2024-01-27T21:00:03.062Z] <<< [apiv2][status] POST https://serviceusage.googleapis.com/v1beta1/projects/365603463757/services/eventarc.googleapis.com:generateServiceIdentity 200 -[debug] [2024-01-27T21:00:03.063Z] <<< [apiv2][body] POST https://serviceusage.googleapis.com/v1beta1/projects/365603463757/services/eventarc.googleapis.com:generateServiceIdentity {"name":"operations/finished.DONE_OPERATION","done":true,"response":{"@type":"type.googleapis.com/google.api.serviceusage.v1beta1.ServiceIdentity","email":"service-365603463757@gcp-sa-eventarc.iam.gserviceaccount.com","uniqueId":"107675386332786407693"}} -[debug] [2024-01-27T21:00:03.315Z] <<< [apiv2][status] POST https://serviceusage.googleapis.com/v1beta1/projects/365603463757/services/pubsub.googleapis.com:generateServiceIdentity 200 -[debug] [2024-01-27T21:00:03.315Z] <<< [apiv2][body] POST https://serviceusage.googleapis.com/v1beta1/projects/365603463757/services/pubsub.googleapis.com:generateServiceIdentity {"name":"operations/finished.DONE_OPERATION","done":true,"response":{"@type":"type.googleapis.com/google.api.serviceusage.v1beta1.ServiceIdentity","email":"service-365603463757@gcp-sa-pubsub.iam.gserviceaccount.com","uniqueId":"113699355533939392959"}} -[debug] [2024-01-27T21:00:03.318Z] >>> [apiv2][query] GET https://firebase.googleapis.com/v1beta1/projects/playo-913ea [none] -[debug] [2024-01-27T21:00:03.692Z] <<< [apiv2][status] GET https://firebase.googleapis.com/v1beta1/projects/playo-913ea 200 -[debug] [2024-01-27T21:00:03.692Z] <<< [apiv2][body] GET https://firebase.googleapis.com/v1beta1/projects/playo-913ea {"projectId":"playo-913ea","projectNumber":"365603463757","displayName":"PLAYO","name":"projects/playo-913ea","resources":{"hostingSite":"playo-913ea","storageBucket":"playo-913ea.appspot.com","locationId":"europe-west"},"state":"ACTIVE","etag":"1_64d88615-a0a5-4ff0-b048-6efc50a621fd"} -[info] i firestore: deploying indexes... -[debug] [2024-01-27T21:00:03.695Z] >>> [apiv2][query] GET https://firebaserules.googleapis.com/v1/projects/playo-913ea/releases pageSize=10&pageToken= -[debug] [2024-01-27T21:00:03.698Z] >>> [apiv2][query] GET https://firestore.googleapis.com/v1/projects/playo-913ea/databases/(default)/collectionGroups/-/indexes [none] -[debug] [2024-01-27T21:00:03.847Z] <<< [apiv2][status] GET https://firestore.googleapis.com/v1/projects/playo-913ea/databases/(default)/collectionGroups/-/indexes 200 -[debug] [2024-01-27T21:00:03.847Z] <<< [apiv2][body] GET https://firestore.googleapis.com/v1/projects/playo-913ea/databases/(default)/collectionGroups/-/indexes {} -[debug] [2024-01-27T21:00:03.847Z] >>> [apiv2][query] GET https://firestore.googleapis.com/v1/projects/playo-913ea/databases/(default)/collectionGroups/-/fields?filter=indexConfig.usesAncestorConfig=false OR ttlConfig:* [none] -[debug] [2024-01-27T21:00:04.160Z] <<< [apiv2][status] GET https://firestore.googleapis.com/v1/projects/playo-913ea/databases/(default)/collectionGroups/-/fields?filter=indexConfig.usesAncestorConfig=false OR ttlConfig:* 200 -[debug] [2024-01-27T21:00:04.160Z] <<< [apiv2][body] GET https://firestore.googleapis.com/v1/projects/playo-913ea/databases/(default)/collectionGroups/-/fields?filter=indexConfig.usesAncestorConfig=false OR ttlConfig:* {"fields":[{"name":"projects/playo-913ea/databases/(default)/collectionGroups/__default__/fields/*","indexConfig":{"indexes":[{"queryScope":"COLLECTION","fields":[{"fieldPath":"*","order":"ASCENDING"}],"state":"READY"},{"queryScope":"COLLECTION","fields":[{"fieldPath":"*","order":"DESCENDING"}],"state":"READY"},{"queryScope":"COLLECTION","fields":[{"fieldPath":"*","arrayConfig":"CONTAINS"}],"state":"READY"}]}}]} -[info] ✔ firestore: deployed indexes in firestore.indexes.json successfully for (default) database -[debug] [2024-01-27T21:00:04.401Z] <<< [apiv2][status] GET https://firebaserules.googleapis.com/v1/projects/playo-913ea/releases 200 -[debug] [2024-01-27T21:00:04.401Z] <<< [apiv2][body] GET https://firebaserules.googleapis.com/v1/projects/playo-913ea/releases {"releases":[{"name":"projects/playo-913ea/releases/cloud.firestore","rulesetName":"projects/playo-913ea/rulesets/9254f5dc-bca2-4edb-b6d7-2375665dc39b","createTime":"2024-01-27T14:07:39.173576Z","updateTime":"2024-01-27T20:57:57.448746Z"},{"name":"projects/playo-913ea/releases/firebase.storage/playo-913ea.appspot.com","rulesetName":"projects/playo-913ea/rulesets/893c0d50-7ba0-4e05-9de8-9e4953728c4f","createTime":"2024-01-27T20:06:43.440807Z","updateTime":"2024-01-27T20:06:43.440807Z"}]} -[debug] [2024-01-27T21:00:04.423Z] >>> [apiv2][query] GET https://firebaserules.googleapis.com/v1/projects/playo-913ea/rulesets/9254f5dc-bca2-4edb-b6d7-2375665dc39b [none] -[debug] [2024-01-27T21:00:05.139Z] <<< [apiv2][status] GET https://firebaserules.googleapis.com/v1/projects/playo-913ea/rulesets/9254f5dc-bca2-4edb-b6d7-2375665dc39b 200 -[debug] [2024-01-27T21:00:05.139Z] <<< [apiv2][body] GET https://firebaserules.googleapis.com/v1/projects/playo-913ea/rulesets/9254f5dc-bca2-4edb-b6d7-2375665dc39b [omitted] -[info] i firestore: latest version of firestore.rules already up to date, skipping upload... -[debug] [2024-01-27T21:00:05.143Z] >>> [apiv2][query] POST https://cloudfunctions.googleapis.com/v2/projects/playo-913ea/locations/us-central1/functions:generateUploadUrl [none] -[debug] [2024-01-27T21:00:06.082Z] <<< [apiv2][status] POST https://cloudfunctions.googleapis.com/v2/projects/playo-913ea/locations/us-central1/functions:generateUploadUrl 200 -[debug] [2024-01-27T21:00:06.082Z] <<< [apiv2][body] POST https://cloudfunctions.googleapis.com/v2/projects/playo-913ea/locations/us-central1/functions:generateUploadUrl {"uploadUrl":"https://storage.googleapis.com/gcf-v2-uploads-365603463757-us-central1/9ef26ae8-ed10-4607-aee2-976f65fbc04b.zip?GoogleAccessId=service-365603463757@gcf-admin-robot.iam.gserviceaccount.com&Expires=1706391006&Signature=feUdqGqAGnYnitLp%2BEf0Tb6Ztw0Y98KDv4XmLMTi0%2B1e7UnnAtzVj2SR7UUgaIDgcewHgsL2kcqzH9GboUx4Y1zf42E15Wy2SKfnw8vxgEUWZGSyuOFc%2Bz39wy9ceaI1cARXjiJwCvlkb2XEqxzxh8fMtdt%2BCI%2Fg2cVDm45jbVpsJQ0QplzNugQeO9G4mL7Z5aV030hRiXrJnRDIOecLEn6%2BMWyk8ShzgNv1%2FKta0aUDiqekg0rhRy9kuS5LqVdW2sL79louckQ5JtLduy2JI5NLZJ3EgppNcRoZurSP4OMBIznvb5Hzh%2FS4n%2FqTwT7%2BC0A5XgjtOCE8xZBUZ82QIA%3D%3D","storageSource":{"bucket":"gcf-v2-uploads-365603463757-us-central1","object":"9ef26ae8-ed10-4607-aee2-976f65fbc04b.zip"}} -[debug] [2024-01-27T21:00:06.085Z] >>> [apiv2][query] PUT https://storage.googleapis.com/gcf-v2-uploads-365603463757-us-central1/9ef26ae8-ed10-4607-aee2-976f65fbc04b.zip GoogleAccessId=service-365603463757%40gcf-admin-robot.iam.gserviceaccount.com&Expires=1706391006&Signature=feUdqGqAGnYnitLp%2BEf0Tb6Ztw0Y98KDv4XmLMTi0%2B1e7UnnAtzVj2SR7UUgaIDgcewHgsL2kcqzH9GboUx4Y1zf42E15Wy2SKfnw8vxgEUWZGSyuOFc%2Bz39wy9ceaI1cARXjiJwCvlkb2XEqxzxh8fMtdt%2BCI%2Fg2cVDm45jbVpsJQ0QplzNugQeO9G4mL7Z5aV030hRiXrJnRDIOecLEn6%2BMWyk8ShzgNv1%2FKta0aUDiqekg0rhRy9kuS5LqVdW2sL79louckQ5JtLduy2JI5NLZJ3EgppNcRoZurSP4OMBIznvb5Hzh%2FS4n%2FqTwT7%2BC0A5XgjtOCE8xZBUZ82QIA%3D%3D -[debug] [2024-01-27T21:00:06.085Z] >>> [apiv2][body] PUT https://storage.googleapis.com/gcf-v2-uploads-365603463757-us-central1/9ef26ae8-ed10-4607-aee2-976f65fbc04b.zip [stream] -[debug] [2024-01-27T21:00:06.365Z] <<< [apiv2][status] PUT https://storage.googleapis.com/gcf-v2-uploads-365603463757-us-central1/9ef26ae8-ed10-4607-aee2-976f65fbc04b.zip 200 -[debug] [2024-01-27T21:00:06.365Z] <<< [apiv2][body] PUT https://storage.googleapis.com/gcf-v2-uploads-365603463757-us-central1/9ef26ae8-ed10-4607-aee2-976f65fbc04b.zip [omitted] -[info] ✔ functions: functions folder uploaded successfully -[debug] [2024-01-27T21:00:06.366Z] [rules] releasing cloud.firestore/(default) with ruleset projects/playo-913ea/rulesets/9254f5dc-bca2-4edb-b6d7-2375665dc39b -[debug] [2024-01-27T21:00:06.368Z] >>> [apiv2][query] PATCH https://firebaserules.googleapis.com/v1/projects/playo-913ea/releases/cloud.firestore/(default) [none] -[debug] [2024-01-27T21:00:06.368Z] >>> [apiv2][body] PATCH https://firebaserules.googleapis.com/v1/projects/playo-913ea/releases/cloud.firestore/(default) {"release":{"name":"projects/playo-913ea/releases/cloud.firestore/(default)","rulesetName":"projects/playo-913ea/rulesets/9254f5dc-bca2-4edb-b6d7-2375665dc39b"}} -[debug] [2024-01-27T21:00:07.186Z] <<< [apiv2][status] PATCH https://firebaserules.googleapis.com/v1/projects/playo-913ea/releases/cloud.firestore/(default) 200 -[debug] [2024-01-27T21:00:07.187Z] <<< [apiv2][body] PATCH https://firebaserules.googleapis.com/v1/projects/playo-913ea/releases/cloud.firestore/(default) {"name":"projects/playo-913ea/releases/cloud.firestore","rulesetName":"projects/playo-913ea/rulesets/9254f5dc-bca2-4edb-b6d7-2375665dc39b","createTime":"2024-01-27T14:07:39.173576Z","updateTime":"2024-01-27T21:00:07.325971Z"} -[debug] [2024-01-27T21:00:07.187Z] [rules] updated release projects/playo-913ea/releases/cloud.firestore -[info] ✔ firestore: released rules firestore.rules to cloud.firestore -[info] -The following functions are found in your project but do not exist in your local source code: - trythis(us-central1) - -If you are renaming a function or changing its region, it is recommended that you create the new function first before deleting the old one to prevent event loss. For more info, visit https://firebase.google.com/docs/functions/manage-functions#modify - -[debug] [2024-01-27T21:00:25.034Z] ---------------------------------------------------------------------- -[debug] [2024-01-27T21:00:25.035Z] Command: /opt/homebrew/Cellar/node/21.5.0/bin/node /opt/homebrew/bin/firebase deploy -[debug] [2024-01-27T21:00:25.036Z] CLI Version: 13.1.0 -[debug] [2024-01-27T21:00:25.036Z] Platform: darwin -[debug] [2024-01-27T21:00:25.036Z] Node Version: v21.5.0 -[debug] [2024-01-27T21:00:25.036Z] Time: Sat Jan 27 2024 21:00:25 GMT+0000 (Greenwich Mean Time) -[debug] [2024-01-27T21:00:25.036Z] ---------------------------------------------------------------------- -[debug] -[debug] [2024-01-27T21:00:25.067Z] > 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-27T21:00:25.067Z] > authorizing via signed-in user (raghavawasthi2005@gmail.com) -[debug] [2024-01-27T21:00:25.067Z] [iam] checking project playo-913ea for permissions ["cloudfunctions.functions.create","cloudfunctions.functions.delete","cloudfunctions.functions.get","cloudfunctions.functions.list","cloudfunctions.functions.update","cloudfunctions.operations.get","datastore.indexes.create","datastore.indexes.delete","datastore.indexes.list","datastore.indexes.update","firebase.projects.get"] -[debug] [2024-01-27T21:00:25.068Z] >>> [apiv2][query] POST https://cloudresourcemanager.googleapis.com/v1/projects/playo-913ea:testIamPermissions [none] -[debug] [2024-01-27T21:00:25.068Z] >>> [apiv2][(partial)header] POST https://cloudresourcemanager.googleapis.com/v1/projects/playo-913ea:testIamPermissions x-goog-quota-user=projects/playo-913ea -[debug] [2024-01-27T21:00:25.068Z] >>> [apiv2][body] POST https://cloudresourcemanager.googleapis.com/v1/projects/playo-913ea:testIamPermissions {"permissions":["cloudfunctions.functions.create","cloudfunctions.functions.delete","cloudfunctions.functions.get","cloudfunctions.functions.list","cloudfunctions.functions.update","cloudfunctions.operations.get","datastore.indexes.create","datastore.indexes.delete","datastore.indexes.list","datastore.indexes.update","firebase.projects.get"]} -[debug] [2024-01-27T21:00:25.498Z] <<< [apiv2][status] POST https://cloudresourcemanager.googleapis.com/v1/projects/playo-913ea:testIamPermissions 200 -[debug] [2024-01-27T21:00:25.499Z] <<< [apiv2][body] POST https://cloudresourcemanager.googleapis.com/v1/projects/playo-913ea:testIamPermissions {"permissions":["cloudfunctions.functions.create","cloudfunctions.functions.delete","cloudfunctions.functions.get","cloudfunctions.functions.list","cloudfunctions.functions.update","cloudfunctions.operations.get","datastore.indexes.create","datastore.indexes.delete","datastore.indexes.list","datastore.indexes.update","firebase.projects.get"]} -[debug] [2024-01-27T21:00:25.499Z] >>> [apiv2][query] POST https://iam.googleapis.com/v1/projects/playo-913ea/serviceAccounts/playo-913ea@appspot.gserviceaccount.com:testIamPermissions [none] -[debug] [2024-01-27T21:00:25.499Z] >>> [apiv2][body] POST https://iam.googleapis.com/v1/projects/playo-913ea/serviceAccounts/playo-913ea@appspot.gserviceaccount.com:testIamPermissions {"permissions":["iam.serviceAccounts.actAs"]} -[debug] [2024-01-27T21:00:25.788Z] <<< [apiv2][status] POST https://iam.googleapis.com/v1/projects/playo-913ea/serviceAccounts/playo-913ea@appspot.gserviceaccount.com:testIamPermissions 200 -[debug] [2024-01-27T21:00:25.789Z] <<< [apiv2][body] POST https://iam.googleapis.com/v1/projects/playo-913ea/serviceAccounts/playo-913ea@appspot.gserviceaccount.com:testIamPermissions {"permissions":["iam.serviceAccounts.actAs"]} -[info] -[info] === Deploying to 'playo-913ea'... -[info] -[info] i deploying firestore, functions -[info] i firestore: reading indexes from firestore.indexes.json... -[info] i cloud.firestore: checking firestore.rules for compilation errors... -[debug] [2024-01-27T21:00:25.794Z] >>> [apiv2][query] POST https://firebaserules.googleapis.com/v1/projects/playo-913ea:test [none] -[debug] [2024-01-27T21:00:25.794Z] >>> [apiv2][body] POST https://firebaserules.googleapis.com/v1/projects/playo-913ea:test [omitted] -[debug] [2024-01-27T21:00:26.537Z] <<< [apiv2][status] POST https://firebaserules.googleapis.com/v1/projects/playo-913ea:test 200 -[debug] [2024-01-27T21:00:26.537Z] <<< [apiv2][body] POST https://firebaserules.googleapis.com/v1/projects/playo-913ea:test {} -[info] ✔ cloud.firestore: rules file firestore.rules compiled successfully -[debug] [2024-01-27T21:00:26.539Z] >>> [apiv2][query] GET https://firebase.googleapis.com/v1beta1/projects/playo-913ea [none] -[debug] [2024-01-27T21:00:27.049Z] <<< [apiv2][status] GET https://firebase.googleapis.com/v1beta1/projects/playo-913ea 200 -[debug] [2024-01-27T21:00:27.050Z] <<< [apiv2][body] GET https://firebase.googleapis.com/v1beta1/projects/playo-913ea {"projectId":"playo-913ea","projectNumber":"365603463757","displayName":"PLAYO","name":"projects/playo-913ea","resources":{"hostingSite":"playo-913ea","storageBucket":"playo-913ea.appspot.com","locationId":"europe-west"},"state":"ACTIVE","etag":"1_64d88615-a0a5-4ff0-b048-6efc50a621fd"} -[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-27T21:00:27.053Z] >>> [apiv2][query] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/cloudfunctions.googleapis.com [none] -[debug] [2024-01-27T21:00:27.053Z] >>> [apiv2][(partial)header] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/cloudfunctions.googleapis.com x-goog-quota-user=projects/playo-913ea -[debug] [2024-01-27T21:00:27.057Z] >>> [apiv2][query] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/runtimeconfig.googleapis.com [none] -[debug] [2024-01-27T21:00:27.058Z] >>> [apiv2][(partial)header] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/runtimeconfig.googleapis.com x-goog-quota-user=projects/playo-913ea -[debug] [2024-01-27T21:00:27.061Z] >>> [apiv2][query] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/cloudbuild.googleapis.com [none] -[debug] [2024-01-27T21:00:27.061Z] >>> [apiv2][(partial)header] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/cloudbuild.googleapis.com x-goog-quota-user=projects/playo-913ea -[debug] [2024-01-27T21:00:27.064Z] >>> [apiv2][query] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/artifactregistry.googleapis.com [none] -[debug] [2024-01-27T21:00:27.064Z] >>> [apiv2][(partial)header] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/artifactregistry.googleapis.com x-goog-quota-user=projects/playo-913ea -[debug] [2024-01-27T21:00:28.104Z] <<< [apiv2][status] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/cloudbuild.googleapis.com 200 -[debug] [2024-01-27T21:00:28.104Z] <<< [apiv2][body] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/cloudbuild.googleapis.com [omitted] -[info] ✔ functions: required API cloudbuild.googleapis.com is enabled -[debug] [2024-01-27T21:00:28.105Z] <<< [apiv2][status] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/runtimeconfig.googleapis.com 200 -[debug] [2024-01-27T21:00:28.105Z] <<< [apiv2][body] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/runtimeconfig.googleapis.com [omitted] -[debug] [2024-01-27T21:00:28.106Z] <<< [apiv2][status] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/artifactregistry.googleapis.com 200 -[debug] [2024-01-27T21:00:28.106Z] <<< [apiv2][body] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/artifactregistry.googleapis.com [omitted] -[info] ✔ artifactregistry: required API artifactregistry.googleapis.com is enabled -[debug] [2024-01-27T21:00:28.108Z] <<< [apiv2][status] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/cloudfunctions.googleapis.com 200 -[debug] [2024-01-27T21:00:28.108Z] <<< [apiv2][body] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/cloudfunctions.googleapis.com [omitted] -[info] ✔ functions: required API cloudfunctions.googleapis.com is enabled -[debug] [2024-01-27T21:00:28.108Z] >>> [apiv2][query] GET https://firebase.googleapis.com/v1beta1/projects/playo-913ea/adminSdkConfig [none] -[debug] [2024-01-27T21:00:28.530Z] <<< [apiv2][status] GET https://firebase.googleapis.com/v1beta1/projects/playo-913ea/adminSdkConfig 200 -[debug] [2024-01-27T21:00:28.530Z] <<< [apiv2][body] GET https://firebase.googleapis.com/v1beta1/projects/playo-913ea/adminSdkConfig {"projectId":"playo-913ea","storageBucket":"playo-913ea.appspot.com","locationId":"europe-west"} -[debug] [2024-01-27T21:00:28.531Z] >>> [apiv2][query] GET https://runtimeconfig.googleapis.com/v1beta1/projects/playo-913ea/configs [none] -[debug] [2024-01-27T21:00:28.945Z] <<< [apiv2][status] GET https://runtimeconfig.googleapis.com/v1beta1/projects/playo-913ea/configs 200 -[debug] [2024-01-27T21:00:28.945Z] <<< [apiv2][body] GET https://runtimeconfig.googleapis.com/v1beta1/projects/playo-913ea/configs {} -[debug] [2024-01-27T21:00:28.946Z] Customer code is not Node -[debug] [2024-01-27T21:00:28.946Z] Validating python source -[debug] [2024-01-27T21:00:28.947Z] Building python source -[info] i functions: Loading and analyzing source code for codebase default to determine what to deploy -[debug] [2024-01-27T21:00:28.948Z] Could not find functions.yaml. Must use http discovery -[debug] [2024-01-27T21:00:28.959Z] Running command with virtualenv: command=., args=["\"/Users/raghav/Library/CloudStorage/OneDrive-Personal/Hackathons/E-acc-2024/e-acc-playo/functions/venv/bin/activate\"","&&","python3.11","-c","\"import firebase_functions; import os; print(os.path.dirname(firebase_functions.__file__))\""] -[debug] [2024-01-27T21:00:29.033Z] stdout: /Users/raghav/Library/CloudStorage/OneDrive-Personal/Hackathons/E-acc-2024/e-acc-playo/functions/venv/lib/python3.11/site-packages/firebase_functions - -[debug] [2024-01-27T21:00:29.036Z] Running admin server with args: ["python3.11","\"/Users/raghav/Library/CloudStorage/OneDrive-Personal/Hackathons/E-acc-2024/e-acc-playo/functions/venv/lib/python3.11/site-packages/firebase_functions/private/serving.py\""] and env: {"FIREBASE_CONFIG":"{\"projectId\":\"playo-913ea\",\"storageBucket\":\"playo-913ea.appspot.com\",\"locationId\":\"europe-west\"}","GCLOUD_PROJECT":"playo-913ea","GOOGLE_CLOUD_QUOTA_PROJECT":"playo-913ea","ADMIN_PORT":"8081"} in /Users/raghav/Library/CloudStorage/OneDrive-Personal/Hackathons/E-acc-2024/e-acc-playo/functions -[debug] [2024-01-27T21:00:29.036Z] Running command with virtualenv: command=., args=["\"/Users/raghav/Library/CloudStorage/OneDrive-Personal/Hackathons/E-acc-2024/e-acc-playo/functions/venv/bin/activate\"","&&","python3.11","\"/Users/raghav/Library/CloudStorage/OneDrive-Personal/Hackathons/E-acc-2024/e-acc-playo/functions/venv/lib/python3.11/site-packages/firebase_functions/private/serving.py\""] -[info] * Serving Flask app 'serving' - * Debug mode: off - -[error] WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. - * Running on http://127.0.0.1:8081 - -[error] Press CTRL+C to quit - -[error] 127.0.0.1 - - [27/Jan/2024 21:00:30] "GET /__/functions.yaml HTTP/1.1" 200 - - -[debug] [2024-01-27T21:00:30.600Z] Got response from /__/functions.yaml endpoints: - generate_narration: - availableMemoryMb: null - concurrency: null - entryPoint: generate_narration - httpsTrigger: {} - ingressSettings: null - labels: {} - maxInstances: null - minInstances: null - platform: gcfv2 - secretEnvironmentVariables: [] - serviceAccountEmail: null - timeoutSeconds: null - generate_story: - availableMemoryMb: null - concurrency: null - entryPoint: generate_story - httpsTrigger: {} - ingressSettings: null - labels: {} - maxInstances: null - minInstances: null - platform: gcfv2 - secretEnvironmentVariables: [] - serviceAccountEmail: null - timeoutSeconds: null -params: [] -requiredAPIs: [] -specVersion: v1alpha1 - -[error] 127.0.0.1 - - [27/Jan/2024 21:00:30] "GET /__/quitquitquit HTTP/1.1" 200 - - -[error] /bin/sh: line 1: 34864 Terminated: 15 python3.11 "/Users/raghav/Library/CloudStorage/OneDrive-Personal/Hackathons/E-acc-2024/e-acc-playo/functions/venv/lib/python3.11/site-packages/firebase_functions/private/serving.py" - -[info] i functions: Loaded environment variables from .env. -[info] i functions: preparing functions directory for uploading... -[info] i functions: packaged /Users/raghav/Library/CloudStorage/OneDrive-Personal/Hackathons/E-acc-2024/e-acc-playo/functions (8.33 KB) for uploading -[debug] [2024-01-27T21:00:30.635Z] >>> [apiv2][query] GET https://cloudfunctions.googleapis.com/v1/projects/playo-913ea/locations/-/functions [none] -[debug] [2024-01-27T21:00:31.548Z] <<< [apiv2][status] GET https://cloudfunctions.googleapis.com/v1/projects/playo-913ea/locations/-/functions 200 -[debug] [2024-01-27T21:00:31.548Z] <<< [apiv2][body] GET https://cloudfunctions.googleapis.com/v1/projects/playo-913ea/locations/-/functions {} -[debug] [2024-01-27T21:00:31.550Z] >>> [apiv2][query] GET https://cloudfunctions.googleapis.com/v2/projects/playo-913ea/locations/-/functions filter=environment%3D%22GEN_2%22 -[debug] [2024-01-27T21:00:32.563Z] <<< [apiv2][status] GET https://cloudfunctions.googleapis.com/v2/projects/playo-913ea/locations/-/functions 200 -[debug] [2024-01-27T21:00:32.563Z] <<< [apiv2][body] GET https://cloudfunctions.googleapis.com/v2/projects/playo-913ea/locations/-/functions {"functions":[{"name":"projects/playo-913ea/locations/us-central1/functions/generate_narration","buildConfig":{"build":"projects/365603463757/locations/us-central1/builds/89acae12-15af-4406-a580-55c9cf7f4cbb","runtime":"python311","entryPoint":"generate_narration","source":{"storageSource":{"bucket":"gcf-v2-sources-365603463757-us-central1","object":"generate_narration/function-source.zip","generation":"1706389084188346"}},"environmentVariables":{"GOOGLE_NODE_RUN_SCRIPTS":""},"dockerRepository":"projects/playo-913ea/locations/us-central1/repositories/gcf-artifacts","sourceProvenance":{"resolvedStorageSource":{"bucket":"gcf-v2-sources-365603463757-us-central1","object":"generate_narration/function-source.zip","generation":"1706389084188346"}},"dockerRegistry":"ARTIFACT_REGISTRY"},"serviceConfig":{"service":"projects/playo-913ea/locations/us-central1/services/generate-narration","timeoutSeconds":60,"environmentVariables":{"OPENAI_API_KEY":"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","ELEVEN_API_KEY":"884e814830693efe2f3344a2581e3612","FIREBASE_CONFIG":"{\"projectId\":\"playo-913ea\",\"storageBucket\":\"playo-913ea.appspot.com\",\"locationId\":\"europe-west\"}","GCLOUD_PROJECT":"playo-913ea","EVENTARC_CLOUD_EVENT_SOURCE":"projects/playo-913ea/locations/us-central1/services/generate_narration","FUNCTION_TARGET":"generate_narration"},"maxInstanceCount":100,"ingressSettings":"ALLOW_ALL","uri":"https://generate-narration-omsnazusfa-uc.a.run.app","serviceAccountEmail":"365603463757-compute@developer.gserviceaccount.com","availableMemory":"256Mi","allTrafficOnLatestRevision":true,"revision":"generate-narration-00002-niv","maxInstanceRequestConcurrency":80,"availableCpu":"1"},"state":"ACTIVE","updateTime":"2024-01-27T20:58:55.207555848Z","labels":{"deployment-tool":"cli-firebase","firebase-functions-hash":"f980198ecf4cdc575f927259520cfaf1dc88ceaa"},"environment":"GEN_2","url":"https://us-central1-playo-913ea.cloudfunctions.net/generate_narration"},{"name":"projects/playo-913ea/locations/us-central1/functions/trythis","buildConfig":{"build":"projects/365603463757/locations/us-central1/builds/27fe2353-0ace-4f25-98ea-a6aa6dc9ad64","runtime":"python311","entryPoint":"trythis","source":{"storageSource":{"bucket":"gcf-v2-sources-365603463757-us-central1","object":"trythis/function-source.zip","generation":"1706375997775122"}},"environmentVariables":{"GOOGLE_NODE_RUN_SCRIPTS":""},"dockerRepository":"projects/playo-913ea/locations/us-central1/repositories/gcf-artifacts","sourceProvenance":{"resolvedStorageSource":{"bucket":"gcf-v2-sources-365603463757-us-central1","object":"trythis/function-source.zip","generation":"1706375997775122"}},"dockerRegistry":"ARTIFACT_REGISTRY"},"serviceConfig":{"service":"projects/playo-913ea/locations/us-central1/services/trythis","timeoutSeconds":60,"environmentVariables":{"OPENAI_API_KEY":"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","FIREBASE_CONFIG":"{\"projectId\":\"playo-913ea\",\"storageBucket\":\"playo-913ea.appspot.com\"}","GCLOUD_PROJECT":"playo-913ea","EVENTARC_CLOUD_EVENT_SOURCE":"projects/playo-913ea/locations/us-central1/services/trythis","FUNCTION_TARGET":"trythis"},"maxInstanceCount":100,"ingressSettings":"ALLOW_ALL","uri":"https://trythis-omsnazusfa-uc.a.run.app","serviceAccountEmail":"365603463757-compute@developer.gserviceaccount.com","availableMemory":"256Mi","allTrafficOnLatestRevision":true,"revision":"trythis-00001-kix","maxInstanceRequestConcurrency":80,"availableCpu":"1"},"state":"ACTIVE","updateTime":"2024-01-27T17:21:53.223624165Z","labels":{"deployment-tool":"cli-firebase","firebase-functions-hash":"d1d206614dae5fe6785daf12834f7e4e0a022bc8"},"environment":"GEN_2","url":"https://us-central1-playo-913ea.cloudfunctions.net/trythis"},{"name":"projects/playo-913ea/locations/us-central1/functions/generate_story","buildConfig":{"build":"projects/365603463757/locations/us-central1/builds/89acae12-15af-4406-a580-55c9cf7f4cbb","runtime":"python311","entryPoint":"generate_story","source":{"storageSource":{"bucket":"gcf-v2-sources-365603463757-us-central1","object":"generate_story/function-source.zip","generation":"1706389127697251"}},"environmentVariables":{"GOOGLE_NODE_RUN_SCRIPTS":""},"dockerRepository":"projects/playo-913ea/locations/us-central1/repositories/gcf-artifacts","sourceProvenance":{"resolvedStorageSource":{"bucket":"gcf-v2-sources-365603463757-us-central1","object":"generate_story/function-source.zip","generation":"1706389127697251"}},"dockerRegistry":"ARTIFACT_REGISTRY"},"serviceConfig":{"service":"projects/playo-913ea/locations/us-central1/services/generate-story","timeoutSeconds":60,"environmentVariables":{"OPENAI_API_KEY":"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","ELEVEN_API_KEY":"884e814830693efe2f3344a2581e3612","FIREBASE_CONFIG":"{\"projectId\":\"playo-913ea\",\"storageBucket\":\"playo-913ea.appspot.com\",\"locationId\":\"europe-west\"}","GCLOUD_PROJECT":"playo-913ea","EVENTARC_CLOUD_EVENT_SOURCE":"projects/playo-913ea/locations/us-central1/services/generate_story","FUNCTION_TARGET":"generate_story","FUNCTION_SIGNATURE_TYPE":"http"},"maxInstanceCount":100,"ingressSettings":"ALLOW_ALL","uri":"https://generate-story-omsnazusfa-uc.a.run.app","serviceAccountEmail":"365603463757-compute@developer.gserviceaccount.com","availableMemory":"256Mi","allTrafficOnLatestRevision":true,"revision":"generate-story-00006-moc","maxInstanceRequestConcurrency":80,"availableCpu":"1"},"state":"ACTIVE","updateTime":"2024-01-27T20:58:58.411410215Z","labels":{"firebase-functions-hash":"f980198ecf4cdc575f927259520cfaf1dc88ceaa","deployment-tool":"cli-firebase"},"environment":"GEN_2","url":"https://us-central1-playo-913ea.cloudfunctions.net/generate_story"}]} -[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-27T21:00:32.567Z] >>> [apiv2][query] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/run.googleapis.com [none] -[debug] [2024-01-27T21:00:32.568Z] >>> [apiv2][(partial)header] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/run.googleapis.com x-goog-quota-user=projects/playo-913ea -[debug] [2024-01-27T21:00:32.568Z] >>> [apiv2][query] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/eventarc.googleapis.com [none] -[debug] [2024-01-27T21:00:32.568Z] >>> [apiv2][(partial)header] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/eventarc.googleapis.com x-goog-quota-user=projects/playo-913ea -[debug] [2024-01-27T21:00:32.568Z] >>> [apiv2][query] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/pubsub.googleapis.com [none] -[debug] [2024-01-27T21:00:32.568Z] >>> [apiv2][(partial)header] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/pubsub.googleapis.com x-goog-quota-user=projects/playo-913ea -[debug] [2024-01-27T21:00:32.568Z] >>> [apiv2][query] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/storage.googleapis.com [none] -[debug] [2024-01-27T21:00:32.568Z] >>> [apiv2][(partial)header] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/storage.googleapis.com x-goog-quota-user=projects/playo-913ea -[debug] [2024-01-27T21:00:32.858Z] <<< [apiv2][status] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/pubsub.googleapis.com 200 -[debug] [2024-01-27T21:00:32.859Z] <<< [apiv2][body] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/pubsub.googleapis.com [omitted] -[info] ✔ functions: required API pubsub.googleapis.com is enabled -[debug] [2024-01-27T21:00:32.898Z] <<< [apiv2][status] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/run.googleapis.com 200 -[debug] [2024-01-27T21:00:32.898Z] <<< [apiv2][body] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/run.googleapis.com [omitted] -[info] ✔ functions: required API run.googleapis.com is enabled -[debug] [2024-01-27T21:00:33.385Z] <<< [apiv2][status] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/eventarc.googleapis.com 200 -[debug] [2024-01-27T21:00:33.385Z] <<< [apiv2][body] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/eventarc.googleapis.com [omitted] -[info] ✔ functions: required API eventarc.googleapis.com is enabled -[debug] [2024-01-27T21:00:33.386Z] <<< [apiv2][status] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/services/storage.googleapis.com 200 -[debug] [2024-01-27T21:00:33.387Z] <<< [apiv2][body] GET https://serviceusage.googleapis.com/v1/projects/playo-913ea/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-27T21:00:33.391Z] >>> [apiv2][query] POST https://serviceusage.googleapis.com/v1beta1/projects/365603463757/services/pubsub.googleapis.com:generateServiceIdentity [none] -[debug] [2024-01-27T21:00:33.396Z] >>> [apiv2][query] POST https://serviceusage.googleapis.com/v1beta1/projects/365603463757/services/eventarc.googleapis.com:generateServiceIdentity [none] -[debug] [2024-01-27T21:00:34.291Z] <<< [apiv2][status] POST https://serviceusage.googleapis.com/v1beta1/projects/365603463757/services/pubsub.googleapis.com:generateServiceIdentity 200 -[debug] [2024-01-27T21:00:34.292Z] <<< [apiv2][body] POST https://serviceusage.googleapis.com/v1beta1/projects/365603463757/services/pubsub.googleapis.com:generateServiceIdentity {"name":"operations/finished.DONE_OPERATION","done":true,"response":{"@type":"type.googleapis.com/google.api.serviceusage.v1beta1.ServiceIdentity","email":"service-365603463757@gcp-sa-pubsub.iam.gserviceaccount.com","uniqueId":"113699355533939392959"}} -[debug] [2024-01-27T21:00:34.406Z] <<< [apiv2][status] POST https://serviceusage.googleapis.com/v1beta1/projects/365603463757/services/eventarc.googleapis.com:generateServiceIdentity 200 -[debug] [2024-01-27T21:00:34.406Z] <<< [apiv2][body] POST https://serviceusage.googleapis.com/v1beta1/projects/365603463757/services/eventarc.googleapis.com:generateServiceIdentity {"name":"operations/finished.DONE_OPERATION","done":true,"response":{"@type":"type.googleapis.com/google.api.serviceusage.v1beta1.ServiceIdentity","email":"service-365603463757@gcp-sa-eventarc.iam.gserviceaccount.com","uniqueId":"107675386332786407693"}} -[debug] [2024-01-27T21:00:34.409Z] >>> [apiv2][query] GET https://firebase.googleapis.com/v1beta1/projects/playo-913ea [none] -[debug] [2024-01-27T21:00:34.778Z] <<< [apiv2][status] GET https://firebase.googleapis.com/v1beta1/projects/playo-913ea 200 -[debug] [2024-01-27T21:00:34.779Z] <<< [apiv2][body] GET https://firebase.googleapis.com/v1beta1/projects/playo-913ea {"projectId":"playo-913ea","projectNumber":"365603463757","displayName":"PLAYO","name":"projects/playo-913ea","resources":{"hostingSite":"playo-913ea","storageBucket":"playo-913ea.appspot.com","locationId":"europe-west"},"state":"ACTIVE","etag":"1_64d88615-a0a5-4ff0-b048-6efc50a621fd"} -[info] i firestore: deploying indexes... -[debug] [2024-01-27T21:00:34.781Z] >>> [apiv2][query] GET https://firebaserules.googleapis.com/v1/projects/playo-913ea/releases pageSize=10&pageToken= -[debug] [2024-01-27T21:00:34.783Z] >>> [apiv2][query] GET https://firestore.googleapis.com/v1/projects/playo-913ea/databases/(default)/collectionGroups/-/indexes [none] -[debug] [2024-01-27T21:00:35.071Z] <<< [apiv2][status] GET https://firestore.googleapis.com/v1/projects/playo-913ea/databases/(default)/collectionGroups/-/indexes 200 -[debug] [2024-01-27T21:00:35.071Z] <<< [apiv2][body] GET https://firestore.googleapis.com/v1/projects/playo-913ea/databases/(default)/collectionGroups/-/indexes {} -[debug] [2024-01-27T21:00:35.071Z] >>> [apiv2][query] GET https://firestore.googleapis.com/v1/projects/playo-913ea/databases/(default)/collectionGroups/-/fields?filter=indexConfig.usesAncestorConfig=false OR ttlConfig:* [none] -[debug] [2024-01-27T21:00:35.122Z] <<< [apiv2][status] GET https://firestore.googleapis.com/v1/projects/playo-913ea/databases/(default)/collectionGroups/-/fields?filter=indexConfig.usesAncestorConfig=false OR ttlConfig:* 200 -[debug] [2024-01-27T21:00:35.122Z] <<< [apiv2][body] GET https://firestore.googleapis.com/v1/projects/playo-913ea/databases/(default)/collectionGroups/-/fields?filter=indexConfig.usesAncestorConfig=false OR ttlConfig:* {"fields":[{"name":"projects/playo-913ea/databases/(default)/collectionGroups/__default__/fields/*","indexConfig":{"indexes":[{"queryScope":"COLLECTION","fields":[{"fieldPath":"*","order":"ASCENDING"}],"state":"READY"},{"queryScope":"COLLECTION","fields":[{"fieldPath":"*","order":"DESCENDING"}],"state":"READY"},{"queryScope":"COLLECTION","fields":[{"fieldPath":"*","arrayConfig":"CONTAINS"}],"state":"READY"}]}}]} -[info] ✔ firestore: deployed indexes in firestore.indexes.json successfully for (default) database