云功能:GCP Python中发生未知错误 [英] An unknown error has occurred in Cloud Function: GCP Python

查看:83
本文介绍了云功能:GCP Python中发生未知错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

日志查看器

未知错误图片

在GCP(Python)中执行云功能时,我遇到了未知错误. 步骤:

I am running into an Unknown Error while executing a Cloud Function in GCP (Python). Steps:

  1. 运行Cloud Function以从BigQuery DataStore检索数据并将CSV文件保存在GCP存储中.
  2. 运行Cloud Function以从BigQuery DataStore检索数据并将CSV文件保存在GCP存储中.
  3. 运行Cloud Function以从BigQuery DataStore检索数据并将CSV文件保存在GCP存储中.
  4. 它正在成功执行,文件已存储在存储中.如果您查看日志,则显示的是状态码为200的完成信息(随附于日志视图图像),这是成功代码.
  5. 但是,最后,根据所附的屏幕截图,我们得到了带有一些跟踪号的未知错误".
  6. 任何人以前都看过此内容并提出了解决方案的建议.

推荐答案

基于我对Google支持的跟踪,看来这与Cloud Console本身有关.

Based on my follow up with Google Support, it seems this is related to Cloud Console itself.

我们遇到的错误消息与Cloud Function的Tester UI超时有关.当前,即使Cloud Function本身的超时窗口不同(最大1分钟到9分钟之间),它也被设置为最大1分钟.因此,如果我们使用CF UI测试(CF中的测试功能"选项),即使CF成功执行(视图日志中的成功代码200),它也会在1分钟内超时

The error message which we are experiencing is related to Cloud Function's Tester UI timing out. Currently it is set to 1 minute maximum even when Cloud Function itself has a timeout window different (between 1 min to 9mins maximum). So if we are using the CF UI Testing (Test Function option in CF), it will time out in 1 min, even though CF will successfully execute (Success Code 200 in view log)

根据Google支持,CF产品小组正在努力提供更具描述性的消息(UT测试超时时间为1分钟),而不是此错误.另外,他们不确定CF的产品小组是否将CF的测试UI超时设置为与CF超时相同.尚无ETA.

As per the Google Support, CF Product team is working on delivering a more descriptive message (for 1 min UT Testing timeout) instead of this error. Also they are not sure if CF’s Product Team is going to set the CF’s testing UI timeout same as the CF timeout. No ETA yet.

因此,我们将以不同的方式运行CF,而不是使用CF UI控制台进行测试.

So we will running our CF differently and not using CF UI Console for testing.

这篇关于云功能:GCP Python中发生未知错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆