An unknown error has occurred in Cloud Function: GCP Python

二次信任 提交于 2020-08-08 05:17:05

问题


Log Viewer Log Viewer

Unknown Error Image Unknown Error

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

  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.

回答1:


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

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)

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.

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



来源:https://stackoverflow.com/questions/61284352/an-unknown-error-has-occurred-in-cloud-function-gcp-python

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