我在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,在哪里可以找到更多信息?
发布评论