You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see that gen1 is discovered, but gen2 is not. I also see the same situation when doing deploy. Is it unsupported or bug? In what degree RC is supported by the CLI
Debug logs
npm run shell "--" "--debug"
shell
npm run build && firebase functions:shell --debug
build
tsc
[2024-02-20T16:13:15.224Z] > 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"]
[2024-02-20T16:13:15.225Z] > authorizing via signed-in user (ssukiennik@vuestorefront.io)
[2024-02-20T16:13:15.225Z] [iam] checking project sf-console-firebase-test for permissions ["firebase.projects.get"]
[2024-02-20T16:13:15.226Z] >>> [apiv2][query] POST https://cloudresourcemanager.googleapis.com/v1/projects/sf-console-firebase-test:testIamPermissions [none]
[2024-02-20T16:13:15.226Z] >>> [apiv2][(partial)header] POST https://cloudresourcemanager.googleapis.com/v1/projects/sf-console-firebase-test:testIamPermissions x-goog-quota-user=projects/sf-console-firebase-test
[2024-02-20T16:13:15.226Z] >>> [apiv2][body] POST https://cloudresourcemanager.googleapis.com/v1/projects/sf-console-firebase-test:testIamPermissions {"permissions":["firebase.projects.get"]}
[2024-02-20T16:13:16.073Z] <<< [apiv2][status] POST https://cloudresourcemanager.googleapis.com/v1/projects/sf-console-firebase-test:testIamPermissions 200
[2024-02-20T16:13:16.073Z] <<< [apiv2][body] POST https://cloudresourcemanager.googleapis.com/v1/projects/sf-console-firebase-test:testIamPermissions {"permissions":["firebase.projects.get"]}
⚠ functions: Functions Emulator unable to start on port 5000, starting on 5001 instead. {"metadata":{"emulator":{"name":"functions"},"message":"Functions Emulator unable to start on port 5000, starting on 5001 instead."}}
[2024-02-20T16:13:16.409Z] [functions] Functions Emulator only supports listening on one address (127.0.0.1). Not listening on ::1
[2024-02-20T16:13:16.410Z] defaultcredentials: writing to file /Users/ssukienn/.config/firebase/ssukiennik_vuestorefront_io_application_default_credentials.json
[2024-02-20T16:13:16.411Z] DEBUG: Setting GAC to /Users/ssukienn/.config/firebase/ssukiennik_vuestorefront_io_application_default_credentials.json
[2024-02-20T16:13:16.412Z] >>> [apiv2][query] GET https://firebase.googleapis.com/v1beta1/projects/sf-console-firebase-test/adminSdkConfig [none]
[2024-02-20T16:13:16.861Z] <<< [apiv2][status] GET https://firebase.googleapis.com/v1beta1/projects/sf-console-firebase-test/adminSdkConfig 200
[2024-02-20T16:13:16.861Z] <<< [apiv2][body] GET https://firebase.googleapis.com/v1beta1/projects/sf-console-firebase-test/adminSdkConfig {"projectId":"sf-console-firebase-test","storageBucket":"sf-console-firebase-test.appspot.com"}
[2024-02-20T16:13:16.871Z] [functions] Watching "/Users/ssukienn/IdeaProjects/vsf/console-local-environment/platform-backend/packages/functions" for Cloud Functions...
[2024-02-20T16:13:16.875Z] Validating nodejs source
[2024-02-20T16:13:17.314Z] > [functions] package.json contents: {
"name": "functions",
"scripts": {
"build": "tsc",
"build:watch": "tsc --watch",
"serve": "npm run build && firebase emulators:start --only functions",
"shell": "npm run build && firebase functions:shell",
"start": "npm run shell",
"deploy": "firebase deploy --only functions",
"logs": "firebase functions:log"
},
"engines": {
"node": "18"
},
"main": "lib/index.js",
"dependencies": {
"firebase-admin": "^11.8.0",
"firebase-functions": "^4.3.1"
},
"devDependencies": {
"typescript": "^4.9.0",
"firebase-functions-test": "^3.1.0"
},
"private": true
}
[2024-02-20T16:13:17.314Z] Building nodejs source
[2024-02-20T16:13:17.315Z] Failed to find version of module node: reached end of search path /Users/ssukienn/IdeaProjects/vsf/console-local-environment/platform-backend/packages/functions/node_modules
✔ functions: Using node@18 from host.
[2024-02-20T16:13:17.316Z] Could not find functions.yaml. Must use http discovery
[2024-02-20T16:13:17.319Z] Found firebase-functions binary at '/Users/ssukienn/IdeaProjects/vsf/console-local-environment/platform-backend/packages/functions/node_modules/.bin/firebase-functions'
Serving at port 8212
[2024-02-20T16:13:17.680Z] Got response from /__/functions.yaml {"endpoints":{"gen1":{"platform":"gcfv1","availableMemoryMb":null,"timeoutSeconds":null,"minInstances":null,"maxInstances":null,"ingressSettings":null,"serviceAccountEmail":null,"vpc":null,"eventTrigger":{"eventType":"google.firebase.remoteconfig.update","eventFilters":{"resource":"projects/sf-console-firebase-test"},"retry":false},"labels":{},"entryPoint":"gen1"},"gen2":{"availableMemoryMb":null,"timeoutSeconds":null,"minInstances":null,"maxInstances":null,"ingressSettings":null,"concurrency":null,"serviceAccountEmail":null,"vpc":null,"platform":"gcfv2","labels":{},"eventTrigger":{"eventType":"google.firebase.remoteconfig.remoteConfig.v1.updated","eventFilters":{},"retry":false},"entryPoint":"gen2"}},"specVersion":"v1alpha1","requiredAPIs":[]}
[2024-02-20T16:13:17.687Z] [functions] Loaded functions definitions from source: gen1.
[2024-02-20T16:13:17.687Z] DEBUG: Unsupported trigger: {"entryPoint":"gen1","platform":"gcfv1","region":"us-central1","name":"gen1","id":"us-central1-gen1","codebase":"default","availableMemoryMb":256,"labels":{"EVENTARC_CLOUD_EVENT_SOURCE":"cloudfunctions-emulated.googleapis.com/projects/sf-console-firebase-test/locations/us-central1/functions/gen1"},"timeoutSeconds":60,"secretEnvironmentVariables":[],"eventTrigger":{"eventType":"google.firebase.remoteconfig.update","resource":"projects/sf-console-firebase-test"}}
[2024-02-20T16:13:17.688Z] [functions[us-central1-gen1]] function ignored because the remote config emulator does not exist or is not running.
i functions: Loaded functions: gen1
⚠ functions: The following emulators are not running, calls to these services will affect production: firestore, database, pubsub, storage, eventarc
firebase >
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
Are remote config gen2 triggers
onConfigUpdated
supported by the CLI and emulator?With code like this:
I see that
gen1
is discovered, butgen2
is not. I also see the same situation when doingdeploy
. Is it unsupported or bug? In what degree RC is supported by the CLIDebug logs
[2024-02-20T16:13:15.224Z] > 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"]
[2024-02-20T16:13:15.225Z] > authorizing via signed-in user (ssukiennik@vuestorefront.io)
[2024-02-20T16:13:15.225Z] [iam] checking project sf-console-firebase-test for permissions ["firebase.projects.get"]
[2024-02-20T16:13:15.226Z] >>> [apiv2][query] POST https://cloudresourcemanager.googleapis.com/v1/projects/sf-console-firebase-test:testIamPermissions [none]
[2024-02-20T16:13:15.226Z] >>> [apiv2][(partial)header] POST https://cloudresourcemanager.googleapis.com/v1/projects/sf-console-firebase-test:testIamPermissions x-goog-quota-user=projects/sf-console-firebase-test
[2024-02-20T16:13:15.226Z] >>> [apiv2][body] POST https://cloudresourcemanager.googleapis.com/v1/projects/sf-console-firebase-test:testIamPermissions {"permissions":["firebase.projects.get"]}
[2024-02-20T16:13:16.073Z] <<< [apiv2][status] POST https://cloudresourcemanager.googleapis.com/v1/projects/sf-console-firebase-test:testIamPermissions 200
[2024-02-20T16:13:16.073Z] <<< [apiv2][body] POST https://cloudresourcemanager.googleapis.com/v1/projects/sf-console-firebase-test:testIamPermissions {"permissions":["firebase.projects.get"]}
⚠ functions: Functions Emulator unable to start on port 5000, starting on 5001 instead. {"metadata":{"emulator":{"name":"functions"},"message":"Functions Emulator unable to start on port 5000, starting on 5001 instead."}}
[2024-02-20T16:13:16.409Z] [functions] Functions Emulator only supports listening on one address (127.0.0.1). Not listening on ::1
[2024-02-20T16:13:16.410Z] defaultcredentials: writing to file /Users/ssukienn/.config/firebase/ssukiennik_vuestorefront_io_application_default_credentials.json
[2024-02-20T16:13:16.411Z] DEBUG: Setting GAC to /Users/ssukienn/.config/firebase/ssukiennik_vuestorefront_io_application_default_credentials.json
[2024-02-20T16:13:16.412Z] >>> [apiv2][query] GET https://firebase.googleapis.com/v1beta1/projects/sf-console-firebase-test/adminSdkConfig [none]
[2024-02-20T16:13:16.861Z] <<< [apiv2][status] GET https://firebase.googleapis.com/v1beta1/projects/sf-console-firebase-test/adminSdkConfig 200
[2024-02-20T16:13:16.861Z] <<< [apiv2][body] GET https://firebase.googleapis.com/v1beta1/projects/sf-console-firebase-test/adminSdkConfig {"projectId":"sf-console-firebase-test","storageBucket":"sf-console-firebase-test.appspot.com"}
[2024-02-20T16:13:16.871Z] [functions] Watching "/Users/ssukienn/IdeaProjects/vsf/console-local-environment/platform-backend/packages/functions" for Cloud Functions...
[2024-02-20T16:13:16.875Z] Validating nodejs source
[2024-02-20T16:13:17.314Z] > [functions] package.json contents: {
"name": "functions",
"scripts": {
"build": "tsc",
"build:watch": "tsc --watch",
"serve": "npm run build && firebase emulators:start --only functions",
"shell": "npm run build && firebase functions:shell",
"start": "npm run shell",
"deploy": "firebase deploy --only functions",
"logs": "firebase functions:log"
},
"engines": {
"node": "18"
},
"main": "lib/index.js",
"dependencies": {
"firebase-admin": "^11.8.0",
"firebase-functions": "^4.3.1"
},
"devDependencies": {
"typescript": "^4.9.0",
"firebase-functions-test": "^3.1.0"
},
"private": true
}
[2024-02-20T16:13:17.314Z] Building nodejs source
[2024-02-20T16:13:17.315Z] Failed to find version of module node: reached end of search path /Users/ssukienn/IdeaProjects/vsf/console-local-environment/platform-backend/packages/functions/node_modules
✔ functions: Using node@18 from host.
[2024-02-20T16:13:17.316Z] Could not find functions.yaml. Must use http discovery
[2024-02-20T16:13:17.319Z] Found firebase-functions binary at '/Users/ssukienn/IdeaProjects/vsf/console-local-environment/platform-backend/packages/functions/node_modules/.bin/firebase-functions'
Serving at port 8212
[2024-02-20T16:13:17.680Z] Got response from /__/functions.yaml {"endpoints":{"gen1":{"platform":"gcfv1","availableMemoryMb":null,"timeoutSeconds":null,"minInstances":null,"maxInstances":null,"ingressSettings":null,"serviceAccountEmail":null,"vpc":null,"eventTrigger":{"eventType":"google.firebase.remoteconfig.update","eventFilters":{"resource":"projects/sf-console-firebase-test"},"retry":false},"labels":{},"entryPoint":"gen1"},"gen2":{"availableMemoryMb":null,"timeoutSeconds":null,"minInstances":null,"maxInstances":null,"ingressSettings":null,"concurrency":null,"serviceAccountEmail":null,"vpc":null,"platform":"gcfv2","labels":{},"eventTrigger":{"eventType":"google.firebase.remoteconfig.remoteConfig.v1.updated","eventFilters":{},"retry":false},"entryPoint":"gen2"}},"specVersion":"v1alpha1","requiredAPIs":[]}
[2024-02-20T16:13:17.687Z] [functions] Loaded functions definitions from source: gen1.
[2024-02-20T16:13:17.687Z] DEBUG: Unsupported trigger: {"entryPoint":"gen1","platform":"gcfv1","region":"us-central1","name":"gen1","id":"us-central1-gen1","codebase":"default","availableMemoryMb":256,"labels":{"EVENTARC_CLOUD_EVENT_SOURCE":"cloudfunctions-emulated.googleapis.com/projects/sf-console-firebase-test/locations/us-central1/functions/gen1"},"timeoutSeconds":60,"secretEnvironmentVariables":[],"eventTrigger":{"eventType":"google.firebase.remoteconfig.update","resource":"projects/sf-console-firebase-test"}}
[2024-02-20T16:13:17.688Z] [functions[us-central1-gen1]] function ignored because the remote config emulator does not exist or is not running.
i functions: Loaded functions: gen1
⚠ functions: The following emulators are not running, calls to these services will affect production: firestore, database, pubsub, storage, eventarc
firebase >
Thanks
Beta Was this translation helpful? Give feedback.
All reactions