Function killed error while serving file on localhost:5000
See original GitHub issueRecently, I have updated my firebase-tools to latest version(8.4.1) and try to serve my files locally
firebase serve --only hosting,functions
but I was keep getting this error -
Your function was killed because it raised an unhandled error.
I finally rolled back to v8.0.0 and it fixed the problem.
Problem is happening any version above.
firebase-tool version v.8.4.x
platform: windows
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (7 by maintainers)
Top Results From Across the Web
Firebase serve error: Port 5000 is not open. Could not start ...
For Mac/Linux, use the Terminal/Shell to find the Process ID (PID), then kill the process. sudo lsof -i :5000 sudo kill -9 PID....
Read more >How to kill a localhost:8080 - windows - Super User
I'm trying to kill a dev server setup via yarn on Windows. While I Ctrl + C 'd the command prompt, when I...
Read more >Node.js v19.3.0 Documentation
If asyncFn is a function and it throws an error synchronously, assert.doesNotReject() will return a rejected Promise with that error. If the function...
Read more >Port 8080 is not open on localhost, could not start Firestore ...
This error is because of the failed quitting from firebase emulator. You already have the process of previous firebase emulator.
Read more >B.3.2.2 Can't connect to [local] MySQL server
Someone has removed the Unix socket file that mysqld uses ( /tmp/mysql.sock by default). For example, you might have a cron job that...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@quantuminformation if your function raises an un-handled error you don’t have to restart the emulator to get code changes to work. The code will be reloaded on the next execution. You only have to restart the emulator if your functions fail to parse on first startup.
Also please don’t add comments to unrelated issue threads, this issue is different than yours and has been closed for a while.
Is it possible for functions not to be killed on error and then reloaded if you make a code change instead of having to restart it?
ie at /Users/nikos/.nvm/versions/node/v12.13.1/lib/node_modules/firebase-tools/lib/emulator/functionsEmulatorRuntime.js:495:27 ⚠ Your function was killed because it raised an unhandled error.
takes 10s re restart each time