[debug] [2021-06-21T17:04:27.260Z] ---------------------------------------------------------------------- [debug] [2021-06-21T17:04:27.266Z] Command: C:\Users\USER\DOWNLO~1\firebase-tools-instant-win.exe C:\Users\USER\.cache\firebase\tools\lib\node_modules\firebase-tools\lib\bin\firebase deploy --only functions:annotateImage [debug] [2021-06-21T17:04:27.266Z] CLI Version: 9.13.0 [debug] [2021-06-21T17:04:27.267Z] Platform: win32 [debug] [2021-06-21T17:04:27.267Z] Node Version: v12.18.1 [debug] [2021-06-21T17:04:27.270Z] Time: Mon Jun 21 2021 22:34:27 GMT+0530 (India Standard Time) [debug] [2021-06-21T17:04:27.271Z] ---------------------------------------------------------------------- [debug] [debug] [2021-06-21T17:04:27.313Z] > 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] [2021-06-21T17:04:27.314Z] > authorizing via signed-in user (baivabmaulik1320@gmail.com) [debug] [2021-06-21T17:04:27.315Z] [iam] checking project capstone-1e935 for permissions ["cloudfunctions.functions.create","cloudfunctions.functions.delete","cloudfunctions.functions.get","cloudfunctions.functions.list","cloudfunctions.functions.update","cloudfunctions.operations.get","firebase.projects.get"] [debug] [2021-06-21T17:04:27.324Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/capstone-1e935:testIamPermissions {"permissions":["cloudfunctions.functions.create","cloudfunctions.functions.delete","cloudfunctions.functions.get","cloudfunctions.functions.list","cloudfunctions.functions.update","cloudfunctions.operations.get","firebase.projects.get"]} [debug] [2021-06-21T17:04:28.932Z] <<< HTTP RESPONSE 200 {"content-type":"application/json; charset=UTF-8","vary":"X-Origin, Referer, Origin,Accept-Encoding","date":"Mon, 21 Jun 2021 17:04:27 GMT","server":"ESF","cache-control":"private","x-xss-protection":"0","x-frame-options":"SAMEORIGIN","x-content-type-options":"nosniff","server-timing":"gfet4t7; dur=1315","alt-svc":"h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-T051=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"","accept-ranges":"none","transfer-encoding":"chunked"} [debug] [2021-06-21T17:04:28.934Z] >>> HTTP REQUEST POST https://iam.googleapis.com/v1/projects/capstone-1e935/serviceAccounts/capstone-1e935@appspot.gserviceaccount.com:testIamPermissions {"permissions":["iam.serviceAccounts.actAs"]} [debug] [2021-06-21T17:04:30.564Z] <<< HTTP RESPONSE 200 {"content-type":"application/json; charset=UTF-8","vary":"X-Origin, Referer, Origin,Accept-Encoding","date":"Mon, 21 Jun 2021 17:04:29 GMT","server":"ESF","cache-control":"private","x-xss-protection":"0","x-frame-options":"SAMEORIGIN","x-content-type-options":"nosniff","alt-svc":"h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-T051=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"","accept-ranges":"none","transfer-encoding":"chunked"} [info] [info] === Deploying to 'capstone-1e935'... [info] [info] i deploying functions [info] Running command: npm --prefix "%$RESOURCE_DIR%" run lint [info] + functions: Finished running predeploy script. [debug] [2021-06-21T17:04:48.514Z] Validating nodejs source [debug] [2021-06-21T17:05:05.412Z] > [functions] package.json contents: { "name": "functions", "description": "Cloud Functions for Firebase", "scripts": { "lint": "eslint .", "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": "14" }, "main": "index.js", "dependencies": { "firebase-admin": "^9.8.0", "firebase-functions": "^3.14.1" }, "devDependencies": { "eslint": "^7.6.0", "eslint-config-google": "^0.14.0", "firebase-functions-test": "^0.2.0" }, "private": true } [debug] [2021-06-21T17:05:05.412Z] Building nodejs source [info] i functions: ensuring required API cloudfunctions.googleapis.com is enabled... [info] i functions: ensuring required API cloudbuild.googleapis.com is enabled... [debug] [2021-06-21T17:05:05.419Z] >>> HTTP REQUEST GET https://serviceusage.googleapis.com/v1/projects/capstone-1e935/services/cloudfunctions.googleapis.com [debug] [2021-06-21T17:05:05.421Z] >>> HTTP REQUEST GET https://serviceusage.googleapis.com/v1/projects/capstone-1e935/services/runtimeconfig.googleapis.com [debug] [2021-06-21T17:05:05.422Z] >>> HTTP REQUEST GET https://serviceusage.googleapis.com/v1/projects/capstone-1e935/services/cloudbuild.googleapis.com [debug] [2021-06-21T17:05:10.387Z] <<< HTTP RESPONSE 200 {"content-type":"application/json; charset=UTF-8","vary":"X-Origin, Referer, Origin,Accept-Encoding","date":"Mon, 21 Jun 2021 17:05:07 GMT","server":"ESF","cache-control":"private","x-xss-protection":"0","x-frame-options":"SAMEORIGIN","x-content-type-options":"nosniff","alt-svc":"h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-T051=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"","accept-ranges":"none","transfer-encoding":"chunked"} [debug] [2021-06-21T17:05:10.994Z] <<< HTTP RESPONSE 200 {"content-type":"application/json; charset=UTF-8","vary":"X-Origin, Referer, Origin,Accept-Encoding","date":"Mon, 21 Jun 2021 17:05:07 GMT","server":"ESF","cache-control":"private","x-xss-protection":"0","x-frame-options":"SAMEORIGIN","x-content-type-options":"nosniff","alt-svc":"h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-T051=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"","accept-ranges":"none","transfer-encoding":"chunked"} [info] + functions: required API cloudfunctions.googleapis.com is enabled [debug] [2021-06-21T17:05:11.825Z] <<< HTTP RESPONSE 200 {"content-type":"application/json; charset=UTF-8","vary":"X-Origin, Referer, Origin,Accept-Encoding","date":"Mon, 21 Jun 2021 17:05:07 GMT","server":"ESF","cache-control":"private","x-xss-protection":"0","x-frame-options":"SAMEORIGIN","x-content-type-options":"nosniff","alt-svc":"h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-T051=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"","accept-ranges":"none","transfer-encoding":"chunked"} [info] + functions: required API cloudbuild.googleapis.com is enabled [debug] [2021-06-21T17:05:11.828Z] >>> HTTP REQUEST GET https://firebase.googleapis.com/v1beta1/projects/capstone-1e935/adminSdkConfig [debug] [2021-06-21T17:05:12.549Z] <<< HTTP RESPONSE 200 {"content-type":"application/json; charset=UTF-8","vary":"X-Origin, Referer, Origin,Accept-Encoding","date":"Mon, 21 Jun 2021 17:05:11 GMT","server":"ESF","cache-control":"private","x-xss-protection":"0","x-frame-options":"SAMEORIGIN","x-content-type-options":"nosniff","alt-svc":"h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-T051=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"","accept-ranges":"none","transfer-encoding":"chunked"} [debug] [2021-06-21T17:05:12.551Z] >>> HTTP REQUEST GET https://runtimeconfig.googleapis.com/v1beta1/projects/capstone-1e935/configs [debug] [2021-06-21T17:05:13.024Z] <<< HTTP RESPONSE 200 {"content-type":"application/json; charset=UTF-8","vary":"X-Origin, Referer, Origin,Accept-Encoding","date":"Mon, 21 Jun 2021 17:05:12 GMT","server":"ESF","cache-control":"private","x-xss-protection":"0","x-frame-options":"SAMEORIGIN","x-content-type-options":"nosniff","alt-svc":"h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-T051=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"","accept-ranges":"none","transfer-encoding":"chunked"} [debug] [2021-06-21T17:05:13.026Z] Analyzing nodejs backend spec [debug] [2021-06-21T17:05:13.687Z] TypeError: Cannot read property 'backend' of undefined at Object.checkHttpIam (C:\Users\USER\.cache\firebase\tools\lib\node_modules\firebase-tools\lib\deploy\functions\checkIam.js:31:41) at deploy (C:\Users\USER\.cache\firebase\tools\lib\node_modules\firebase-tools\lib\deploy\functions\deploy.js:36:22) at _chain (C:\Users\USER\.cache\firebase\tools\lib\node_modules\firebase-tools\lib\deploy\index.js:23:40) at C:\Users\USER\.cache\firebase\tools\lib\node_modules\firebase-tools\lib\deploy\index.js:67:16 at processTicksAndRejections (internal/process/task_queues.js:97:5) [error] [error] Error: An unexpected error has occurred.