Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google cloud platform 云功能部署失败,返回“0”;检索函数源代码失败“;_Google Cloud Platform_Google Cloud Functions - Fatal编程技术网

Google cloud platform 云功能部署失败,返回“0”;检索函数源代码失败“;

Google cloud platform 云功能部署失败,返回“0”;检索函数源代码失败“;,google-cloud-platform,google-cloud-functions,Google Cloud Platform,Google Cloud Functions,当我从云源库部署云函数时,我得到一个“检索函数源代码失败”,部署失败 当前运行的一些云函数是从云源库部署的,所以我复制并部署了它,但得到了相同的错误 部署是用GUI完成的,使用的是Python 3.8 直到上周我才发现这个错误 我发现GCP付款方式存在问题,但我最近没有更改我的付款信息 请告诉我原因是什么。 如果我英语不好,而且很难阅读,我很抱歉。 多谢各位 { protoPayload: { @type: "type.googleapis.com/google.cloud.audit

当我从云源库部署云函数时,我得到一个“检索函数源代码失败”,部署失败

当前运行的一些云函数是从云源库部署的,所以我复制并部署了它,但得到了相同的错误

部署是用GUI完成的,使用的是Python 3.8

直到上周我才发现这个错误

我发现GCP付款方式存在问题,但我最近没有更改我的付款信息

请告诉我原因是什么。 如果我英语不好,而且很难阅读,我很抱歉。 多谢各位

{
protoPayload: {
@type: "type.googleapis.com/google.cloud.audit.AuditLog"
status: {
code: 3
message: "Failed to retrieve function source code"
}
authenticationInfo: {
principalEmail: "xxxxxx@xxxxxx"
}
serviceName: "cloudfunctions.googleapis.com"
methodName: "google.cloud.functions.v1.CloudFunctionsService.CreateFunction"
resourceName: "projects/xxxxxx/locations/asia-northeast1/functions/xxxxxx"
}
insertId: "-xxxxxx"
resource: {
type: "cloud_function"
labels: {
project_id: "xxxxxx"
function_name: "xxxxxx"
region: "asia-northeast1"
}
}
timestamp: "2021-02-03T10:56:30.332588Z"
severity: "ERROR"
logName: "projects/xxxxxx/logs/cloudaudit.googleapis.com%2Factivity"
operation: {
id: "xxxxxxx"
producer: "cloudfunctions.googleapis.com"
last: true
}
receiveTimestamp: "2021-02-03T10:56:30.618763199Z"
}

我现在部署了它,它是成功的。 程序和上次完全一样

我认为这是一个GCP错误,但没有失败信息。


我已经解决了,所以我要关闭它。非常感谢。

可能有数百个原因。请查看Stackdriver日志以了解详细信息,好吗?您如何部署云功能?@al-dann感谢您的回复。我将日志粘贴在线程的开头。@guillaumeblaquiere感谢您的回复。我在GUI中打开了云函数,并从中创建了它。源代码是从云源存储库获取的。您只有一条日志消息,不是吗?我的意思是,根据我的经验,日志中应该有几行(3行或4行),因此应该可以获得有关失败原因的更多详细信息。在问题解决之前,您是否更改了CSR中的任何文件?对于某些用户来说,重新启用云功能和云源存储库API也可能有所帮助。@DenisT。谢谢你的回复。不,我没有更改CSR文件。如果将来发生同样的情况,请尝试重新启用。