Firebase cloud function exits with code 16 what is error code 16 and where can I find more info?

前端 未结 4 426
悲哀的现实
悲哀的现实 2020-12-17 09:27

one of my cloud functions on firebase exits with code 16 as an error.

I tried to google and find out what that code is but no luck at all.

Error: P         


        
4条回答
  •  星月不相逢
    2020-12-17 10:05

    The code for the function framework is actually public in the GoogleCloudPlatform/functions-framework-nodejs repository (although not advertised anywhere).

    In particular you can see there the cases where killInstance is used, which is the one triggering exit code 16:

    const killInstance = process.exit.bind(process, 16);

    These cases are (at the time of writing):

    • uncaughtException
    • unhandledRejection

提交回复
热议问题