firebase - Firebase云功能退出并显示代码16,什么是错误代码16?在哪里可以找到更多信息?

标签 firebase google-cloud-functions

我在firebase上的云功能之一退出并出现代码16错误。

我试图去谷歌,找出那个代码是什么,但根本没有运气。

Error: Process exited with code 16
    at process.on.code (/srv/node_modules/@google-cloud/functions-framework/build/src/invoker.js:393:29)
    at process.emit (events.js:189:13)
    at process.EventEmitter.emit (domain.js:441:20)
    at process.exit (internal/process/per_thread.js:168:15)
    at logAndSendError (/srv/node_modules/@google-cloud/functions-framework/build/src/invoker.js:184:9)
    at process.on.err (/srv/node_modules/@google-cloud/functions-framework/build/src/invoker.js:390:13)
    at process.emit (events.js:189:13)
    at process.EventEmitter.emit (domain.js:441:20)
    at emitPromiseRejectionWarnings (internal/process/promises.js:119:20)
    at process._tickCallback (internal/process/next_tick.js:69:34)


在哪里可以找到报告的错误代码,以便我理解为什么我的函数退出?

最佳答案

该功能框架的代码实际上是在GoogleCloudPlatform/functions-framework-nodejs存储库中公开的(尽管未在任何地方公布)。
特别是,您可以看到使用killInstance的情况,这是触发退出代码的一种16:const killInstance = process.exit.bind(process, 16);这些情况是(在撰写本文时):

  • uncaughtException
  • unhandledRejection
  • 关于firebase - Firebase云功能退出并显示代码16,什么是错误代码16?在哪里可以找到更多信息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57149416/

    相关文章:

    javascript - Firebase Storage Web - 创建引用不起作用

    android - 使用身份验证拒绝 Firebase 权限(读取和写入)

    firebase - 在 NodeJS 应用程序中提交 firebase 文件的做法是什么?

    firebase - Firebase的Cloud Functions是否会使firebase-queue过时?

    javascript - firestore函数错误: Unexpected error while acquiring application default credentials

    javascript - 函数在 Cloud Functions 中返回未定义的预期 Promise 或值

    javascript - CORS 不适用于 firebase 云功能中的特定域

    swift - 过滤Firebase数据[iOS]

    javascript - 我的代码中的云功能错误或错误 : www. googleapis.com 网络超时。请再试一次

    javascript - 如何为 Firebase 触发电子邮件提供动态发件人地址