question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Function killed error while serving file on localhost:5000

See original GitHub issue

Recently, 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:closed
  • Created 3 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
samtsterncommented, Jul 15, 2020

@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.

0reactions
quantuminformationcommented, Jul 15, 2020

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

image

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found