相关疑难解决方法(0)

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'只在日志中再次收到消息。

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

python google-cloud-functions

10
推荐指数
1
解决办法
8527
查看次数

标签 统计

google-cloud-functions ×1

python ×1