Is quot; finished with status: #39;crash#39; quot; normal for Cloud Functions?(是“完成状态:crash quot;云功能正常吗?)
问题描述
我用 Python 尝试了 Google Cloud Functions,但运行它时出现问题.它说:错误:无法处理请求
I tried Google Cloud Functions with Python and there was a problem with running it. It said: Error: could not handle the request
我检查了日志,但没有错误,只是一条日志消息:
I checked the logs, but there was no error, just a log message:
Function execution took 16 ms, finished with status: 'crash'
当我将功能简化为打印输出时,它可以正常工作.然后我在打印输出之前添加了 raise Exception('test')
以查看异常是否会导致 Stackdriver Errors,但它没有,我得到了 finished with status: 'crash'
仅在日志中再次显示消息.
When I simplified the function to a printout then it worked properly. Then I added raise Exception('test')
before the printout to see if the exception is going to Stackdriver Errors, but it didn't, I got the finished with status: 'crash'
message again only in the log.
这是正常行为吗?或者它是一个错误,而不是崩溃,我应该在日志中将异常视为错误?
Is this normal behavior? Or is it a bug and instead of crash I should see the exception as an error in the log?
推荐答案
非常正确,正如评论中提到的那样,使用 Python 的 Google Cloud Functions 崩溃似乎有问题.该问题已报告给内部 Google Cloud Functions 工程师,评估仍在进行中.您可以监控 此链接 以进行修复
Quite rightly, as alluded to in the Comments, the crash seems buggy about Google Cloud Functions with Python. The issue was reported to the Internal Google Cloud Functions engineers and evaluation is still ongoing. You can monitor this link for fixes
这篇关于是“完成状态:'crash' "云功能正常吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:是“完成状态:'crash' "云功能正常吗
基础教程推荐
- 使用PyInstaller后在Windows中打开可执行文件时出错 2022-01-01
- 如何在海运重新绘制中自定义标题和y标签 2022-01-01
- 线程时出现 msgbox 错误,GUI 块 2022-01-01
- Dask.array.套用_沿_轴:由于额外的元素([1]),使用dask.array的每一行作为另一个函数的输入失败 2022-01-01
- 如何让 python 脚本监听来自另一个脚本的输入 2022-01-01
- 何时使用 os.name、sys.platform 或 platform.system? 2022-01-01
- 在 Python 中,如果我在一个“with"中返回.块,文件还会关闭吗? 2022-01-01
- Python kivy 入口点 inflateRest2 无法定位 libpng16-16.dll 2022-01-01
- 筛选NumPy数组 2022-01-01
- 用于分类数据的跳跃记号标签 2022-01-01