1

I'm running a GCloud function, which seems to crash silently, without any kind of error trace.

Everything works perfectly in the emulator but crashes when running on GCloud!

The following message shows up in the function's logs:

Error: function crashed out of request scope Function killed.

Any idea on how to debug this?

1
  • Did you get any solution for this issue? Commented Jul 19, 2017 at 6:11

1 Answer 1

2

I think this issue has to do with what you are returning, and how you returning it. In the production environment, if you do not properly return a promise your function will be killed since it assumes your work is done. locally, that will probably not happen so the bug is invisible. Look here, for an example: https://github.com/firebase/functions-samples/issues/78

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.