Cloud Function: GCP Python 中出现未知错误

Rak*_*pta 2 python runtime-error google-cloud-functions

日志查看器 日志查看器

未知错误图像 未知错误

在 GCP (Python) 中执行云函数时遇到未知错误。脚步:

  1. Running Cloud Function to retrieve the data from BigQuery DataStore and save the CSV file in GCP Storage.
  2. Running Cloud Function to retrieve the data from BigQuery DataStore and save the CSV file in GCP Storage.
  3. Running Cloud Function to retrieve the data from BigQuery DataStore and save the CSV file in GCP Storage.
  4. It is executing successfully and files are stored in Storage. If you view the Logs it is showing Finished with Status Code 200 (attached is the log view image), which is success code.
  5. However, in the end we are getting Unknown Error with some tracking number as per the attached screen shot.
  6. Have anyone seen this earlier and suggestions for resolution.

Rak*_*pta 5

根据我对 Google 支持的跟进,这似乎与 Cloud Console 本身有关。

我们遇到的错误消息与 Cloud Function 的 Tester UI 超时有关。目前,即使 Cloud Function 本身具有不同的超时窗口(最长 1 分钟到 9 分钟),它也设置为最长 1 分钟。因此,如果我们使用 CF UI 测试(CF 中的测试功能选项),它将在 1 分钟内超时,即使 CF 将成功执行(查看日志中的成功代码 200)

根据 Google 支持,CF 产品团队正在努力提供更具描述性的消息(1 分钟 UT 测试超时)而不是此错误。此外,他们不确定 CF 的产品团队是否会将 CF 的测试 UI 超时设置为与 CF 超时相同。还没有预计到达时间。

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