Error: Failed to load function definition from source: Failed to generate manifest from function source: RangeError: Maximum call stack size exceeded

4,073 views
Skip to first unread message

sherwin water

unread,
Jun 14, 2022, 3:31:36 PM6/14/22
to Firebase Google Group

```
firebase emulators:start --only functions --debug

[2022-06-14T13:08:43.585Z] > [functions] package.json contents: {
  "name": "functions",
  "scripts": {
    "lint": "eslint --ext .js,.ts .",
    "lint-fix": "eslint --ext .js,.ts . --fix",
    "build": "tsc",
    "build:watch": "tsc --watch",
    "serve": "npm run build:watch | 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": "16"
  },
  "main": "lib/index.js",
  "dependencies": {
    "algoliasearch": "^4.13.1",
    "axios": "^0.27.2",
    "express": "^4.18.1",
    "firebase-admin": "^10.0.2",
    "firebase-functions": "^3.18.0"
  },
  "devDependencies": {
    "@typescript-eslint/eslint-plugin": "^5.12.0",
    "@typescript-eslint/parser": "^5.12.0",
    "eslint": "^8.9.0",
    "eslint-config-google": "^0.14.0",
    "eslint-plugin-import": "^2.25.4",
    "firebase-functions-test": "^0.2.0",
    "typescript": "^4.5.4"
  },
  "private": true
}
[2022-06-14T13:08:43.585Z] Building nodejs source
[2022-06-14T13:08:43.585Z] Analyzing nodejs backend spec
[2022-06-14T13:08:43.587Z] Could not find functions.yaml. Must use http discovery
[2022-06-14T13:08:43.703Z] Serving at port 9005

[2022-06-14T13:08:43.878Z] Got response from /__/functions.yaml Failed to generate manifest from function source: RangeError: Maximum call stack size exceeded
[2022-06-14T13:08:43.881Z] Failed to parse functions.yamlincomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line at line 1, column 61:
     ... from function source: RangeError: Maximum call stack size exceeded
                                         ^ {"name":"YAMLException","reason":"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line","mark":{"name":null,"buffer":"Failed to generate manifest from function source: RangeError: Maximum call stack size exceeded\n\u0000","position":60,"line":0,"column":60},"message":"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line at line 1, column 61:\n     ... from function source: RangeError: Maximum call stack size exceeded\n                                         ^"}
[2022-06-14T13:08:43.885Z] shutdown requested via /__/quitquitquit

i  emulators: Shutting down emulators. {"metadata":{"emulator":{"name":"hub"},"message":"Shutting down emulators."}}
i  ui: Stopping Emulator UI {"metadata":{"emulator":{"name":"ui"},"message":"Stopping Emulator UI"}}
⚠  Emulator UI has exited upon receiving signal: SIGINT
i  functions: Stopping Functions Emulator {"metadata":{"emulator":{"name":"functions"},"message":"Stopping Functions Emulator"}}
i  hub: Stopping emulator hub {"metadata":{"emulator":{"name":"hub"},"message":"Stopping emulator hub"}}
i  logging: Stopping Logging Emulator {"metadata":{"emulator":{"name":"logging"},"message":"Stopping Logging Emulator"}}

Error: Failed to load function definition from source: Failed to generate manifest from function source: RangeError: Maximum call stack size exceeded

Having trouble? Try firebase [command] --help
```
Reply all
Reply to author
Forward
0 new messages