Firebase云功能退出并显示代码16,什么是错误代码16,在哪里可以找到更多信息? [英] Firebase cloud function exits with code 16 what is error code 16 and where can I find more info?

查看:56
本文介绍了Firebase云功能退出并显示代码16,什么是错误代码16,在哪里可以找到更多信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在firebase上的一个云功能退出,错误代码为16.

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

我试图在google上找到该代码是什么,但根本没有运气.

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

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)

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

Where can I find those error codes reported so I can understand why my function exits?

推荐答案

显然,经过调查,该错误表示类似Headers already sent的错误.

Apparently and after investigation, the error means something like: Headers already sent.

我在代码的某处有一个带标题的response.send(),然后,我又发送了另一个响应.

I had somewhere in my code a response.send() with headers and then, later on, I was sending another response.

如果Firebase团队可以详细说明这些问题并提供一些文档而不是蒙住我们的眼睛(根据我的理解),那就太好了

Would be great if the Firebase team could elaborate with these issues and provide some documentation instead of leaving us blindfolded (to my understanding)

这篇关于Firebase云功能退出并显示代码16,什么是错误代码16,在哪里可以找到更多信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆