Cloud Functions 的“完成状态:'崩溃'”是否正常?

Tom*_*Tom 10 python google-cloud-functions

我使用 Python 尝试了 Google Cloud Functions,但运行时出现问题。它说:Error: could not handle the request

我检查了日志,但没有错误,只是一条日志消息:

Function execution took 16 ms, finished with status: 'crash'
Run Code Online (Sandbox Code Playgroud)

当我将功能简化为打印输出时,它可以正常工作。然后我raise Exception('test')在打印输出之前添加以查看异常是否会导致 Stackdriver Errors,但它没有,我finished with status: 'crash'只在日志中再次收到消息。

这是正常行为吗?或者它是一个错误,而不是崩溃,我应该将异常视为日志中的错误?

oak*_*aja 5

非常正确,正如评论中所暗示的那样,崩溃似乎是关于使用 Python 的 Google Cloud Functions 的。该问题已报告给内部 Google Cloud Functions 工程师,评估仍在进行中。您可以监控此链接以获取修复