python - 如何在 Google Cloud Functions 中查看未捕获异常的堆栈跟踪?

标签 python google-cloud-platform google-cloud-functions

我在 Google Cloud Functions 中定义了一个 python 函数,我预计它会失败,如下所示:

def write(event, context):
    raise NotImplementedError()

现在我想查看此函数的堆栈跟踪,以便调试我的函数。在 documentation它指出:

Uncaught exceptions produced by your function will appear in Stackdriver Error Reporting.



但是我似乎无法在任何地方找到这个堆栈跟踪。我试过查看日志(它只是告诉我它在没有任何痕迹的情况下崩溃了)并且我试过查看 Stackdriver 错误报告页面我在任何地方都找不到它。我在哪里可以访问 Uncaught Error 日志?

Picture of GCF test response for reference.

谢谢你的帮助!

最佳答案

这是 Python 运行时的一个已知问题,正在解决:https://issuetracker.google.com/issues/155215191

关于python - 如何在 Google Cloud Functions 中查看未捕获异常的堆栈跟踪?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62357315/

相关文章:

javascript - 调用多个 Google Cloud Run 请求是否会调用容器的新实例

google-cloud-platform - GCP 默认防火墙规则是否存在安全问题?

google-app-engine - 使用 Cloud Build 和 VPC 连接器将 Node 应用程序自动部署到 App Engine

python - 选择 Pandas 中特定行上方和下方的 N 行

python - 在 urwid 中使用列表框时出现“AttributeError”

Python OpenCV 打开视频文件与打开网络摄像头

javascript - 如何循环每个文档并获取其数据

python - 正则表达式捕获Python中字符串和\n字符之间的数据

javascript - 返回从 array.push 中的 firebase foreach 完成的数组

python - 谷歌云函数: Python and CORS