GCP Cloud Functions no longer categorizes errors correctly with tracebacks

空扰寡人 提交于 2020-06-23 07:54:44

问题


I've been using Cloud Functions for over a year now and in the last month or so, there's been a change that's made it much more difficult to troubleshoot errors.

Previously, something as simple as the following would generate an Error in Logging with the offending line number and traceback (KeyError: 'test' here), but now Logging just shows Function execution took X ms, finished with status: 'crash' categorized under Debug.

def hello_world(request):
    request_json = request.get_json()
    print(request_json)
    print(request_json['test'])
    return f'Hello World!'

Does anybody have any insights on what happened, and advice on how to proceed to troubleshoot Cloud Functions with crashes going forward please? Thank you in advance!


回答1:


@chengineer provided the answer in the comment thread, this issue affected the Cloud Functions and it is currently under fix. The following updates will be posted on https://issuetracker.google.com/issues/155215191.



来源:https://stackoverflow.com/questions/61990583/gcp-cloud-functions-no-longer-categorizes-errors-correctly-with-tracebacks

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!