~/d/s/functions ❮❮❮ firebase emulators:start --debug [2019-07-01T19:32:42.560Z] ---------------------------------------------------------------------- [2019-07-01T19:32:42.562Z] Command: /Users/noel/.nvm/versions/node/v8.16.0/bin/node /Users/noel/.nvm/versions/node/v8.16.0/bin/firebase emulators:start --debug [2019-07-01T19:32:42.563Z] CLI Version: 7.0.2 [2019-07-01T19:32:42.563Z] Platform: darwin [2019-07-01T19:32:42.563Z] Node Version: v8.16.0 [2019-07-01T19:32:42.563Z] Time: Mon Jul 01 2019 15:32:42 GMT-0400 (EDT) [2019-07-01T19:32:42.563Z] ---------------------------------------------------------------------- [2019-07-01T19:32:42.570Z] > 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"] [2019-07-01T19:32:42.571Z] > authorizing via signed-in user [2019-07-01T19:32:42.572Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/snowble-acc [2019-07-01T19:32:42.841Z] <<< HTTP RESPONSE 200 content-type=application/json; charset=UTF-8, vary=X-Origin, Referer, Origin,Accept-Encoding, date=Mon, 01 Jul 2019 19:32:42 GMT, server=ESF, cache-control=private, x-xss-protection=0, x-frame-options=SAMEORIGIN, x-content-type-options=nosniff, server-timing=gfet4t7; dur=209, alt-svc=quic=":443"; ma=2592000; v="46,44,43,39", accept-ranges=none, transfer-encoding=chunked i Starting emulators: ["functions","firestore"] ✔ functions: Using node@8 from host. [2019-07-01T19:32:42.859Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/:getServerAppConfig [2019-07-01T19:32:42.963Z] <<< HTTP RESPONSE 200 content-type=application/json; charset=UTF-8, vary=X-Origin, Referer, Origin,Accept-Encoding, date=Mon, 01 Jul 2019 19:32:42 GMT, server=ESF, cache-control=private, x-xss-protection=0, x-frame-options=SAMEORIGIN, x-content-type-options=nosniff, alt-svc=quic=":443"; ma=2592000; v="46,44,43,39", accept-ranges=none, transfer-encoding=chunked ✔ functions: Emulator started at http://localhost:5001 [2019-07-01T19:32:43.235Z] Starting emulator firestore with args {"host":"localhost","port":8080,"rules":"/Users/noel/dev/snowble/firestore.rules","functions_emulator":"localhost:5001"} i firestore: Logging to firestore-debug.log ✔ firestore: Emulator started at http://localhost:8080 [2019-07-01T19:32:44.980Z] API endpoint: http://localhost: [2019-07-01T19:32:44.980Z] 8080 If you are using a library that supports the FIRESTORE_EMULATOR_HOST environment variable, run: export FIRESTORE_EMULATOR_HOST=localhost:8080 Dev App Server is now running. i firestore: For testing set FIRESTORE_EMULATOR_HOST=localhost:8080 i functions: Watching "/Users/noel/dev/snowble/functions" for Cloud Functions... [2019-07-01T19:32:45.251Z] Functions runtime initialized. [2019-07-01T19:32:45.252Z] Disabled runtime features: undefined [2019-07-01T19:32:45.369Z] Found google-gax at /Users/noel/dev/snowble/functions/node_modules/google-gax/build/src/index.js [2019-07-01T19:32:45.369Z] Outgoing network have been stubbed. [2019-07-01T19:32:45.409Z] Checked functions.config() [2019-07-01T19:32:45.411Z] firebase-admin has been stubbed. i functions: HTTP trigger initialized at http://localhost:5001/snowble-acc/us-central1/hello i functions: HTTP trigger initialized at http://localhost:5001/snowble-acc/us-central1/toggleEnabled i functions: HTTP trigger initialized at http://localhost:5001/snowble-acc/us-central1/chill [2019-07-01T19:32:49.058Z] Accepted request GET /snowble-acc/us-central1/hello --> hello [2019-07-01T19:32:49.345Z] Functions runtime initialized. i functions: Beginning execution of "hello" [2019-07-01T19:32:49.346Z] Disabled runtime features: undefined [2019-07-01T19:32:49.477Z] Found google-gax at /Users/noel/dev/snowble/functions/node_modules/google-gax/build/src/index.js [2019-07-01T19:32:49.478Z] Outgoing network have been stubbed. [2019-07-01T19:32:49.515Z] Checked functions.config() [2019-07-01T19:32:49.517Z] firebase-admin has been stubbed. [2019-07-01T19:32:49.544Z] Trigger "hello" has been found, beginning invocation! [2019-07-01T19:32:49.544Z] [2019-07-01T19:32:49.544Z] Running hello in mode HTTPS [2019-07-01T19:32:49.553Z] {"socketPath":"/var/folders/2n/sf4g2ks51rz51bl7s0g5yf3r0000gn/T/firebase_emulator_invocation_16456.sock"} [2019-07-01T19:32:49.553Z] [functions] Runtime ready! Sending request! {"socketPath":"/var/folders/2n/sf4g2ks51rz51bl7s0g5yf3r0000gn/T/firebase_emulator_invocation_16456.sock"} [2019-07-01T19:32:49.571Z] Ephemeral server used! [2019-07-01T19:32:49.571Z] Bodyundefined [2019-07-01T19:32:50.081Z] Ephemeral server survived. ⚠ Error: The incoming JSON object does not contain a client_email field at JWT.fromJSON (/Users/noel/dev/snowble/functions/node_modules/google-auth-library/build/src/auth/jwtclient.js:165:19) at GoogleAuth.fromJSON (/Users/noel/dev/snowble/functions/node_modules/google-auth-library/build/src/auth/googleauth.js:294:16) at GoogleAuth.getClient (/Users/noel/dev/snowble/functions/node_modules/google-auth-library/build/src/auth/googleauth.js:476:52) at GrpcClient._getCredentials (/Users/noel/dev/snowble/functions/node_modules/google-gax/build/src/grpc.js:107:40) at GrpcClient.createStub (/Users/noel/dev/snowble/functions/node_modules/google-gax/build/src/grpc.js:223:34) at new FirestoreClient (/Users/noel/dev/snowble/functions/node_modules/@google-cloud/firestore/build/src/v1/firestore_client.js:128:39) at ClientPool.Firestore._clientPool.pool_1.ClientPool [as clientFactory] (/Users/noel/dev/snowble/functions/node_modules/@google-cloud/firestore/build/src/index.js:315:26) at ClientPool.acquire (/Users/noel/dev/snowble/functions/node_modules/@google-cloud/firestore/build/src/pool.js:61:35) at ClientPool.run (/Users/noel/dev/snowble/functions/node_modules/@google-cloud/firestore/build/src/pool.js:114:29) at Firestore.readStream (/Users/noel/dev/snowble/functions/node_modules/@google-cloud/firestore/build/src/index.js:995:26) ⚠ Your function was killed because it raised an unhandled error. ^Ci Shutting down emulators. i Stopping functions emulator i Stopping firestore emulator [2019-07-01T19:33:18.846Z] *** shutting down gRPC server since JVM is shutting down [2019-07-01T19:33:18.851Z] *** server shut down