为什么我不能部署到 Cloud Functions?

Why can't I deploy to Cloud Functions?

我已经能够部署几个月了,今天早上突然出现这个错误。

│ Error: Error while updating cloudfunction configuration: Error waiting for Updating CloudFunctions Function: Error code 3, message: Build failed: curl: (22) The requested URL returned error: 404 
│ 
│ gzip: stdin: unexpected end of file
│ tar: Child returned status 1
│ tar: Error is not recoverable: exiting now; Error ID: 637fe2a4
│ 
│   with google_cloudfunctions_function.syncFiles,
│   on functions.tf line 396, in resource "google_cloudfunctions_function" "syncFiles":
│  396: resource "google_cloudfunctions_function" "syncFiles" {
│ 

这是地形配置。我们压缩目录并将其交给云函数进行部署

data "archive_file" "source-zip" {
  type        = "zip"
  source_dir  = "${path.root}/../dist/"
  output_path = "${path.root}/../dist/files/${var.app_name}.zip"
  excludes    = ["files/**"]
}

resource "google_storage_bucket_object" "deploy-zip" {
  name       = "${var.app_name}/${var.app_name}-${data.archive_file.source-zip.output_md5}.zip"
  bucket     = "${var.env_name}-deploy"
  source     = "${path.root}/../dist/files/${var.app_name}.zip"
  depends_on = [data.archive_file.source-zip]
}

output "deploy_zip" {
  value = google_storage_bucket_object.deploy-zip.name
}

什么可能导致此错误?

这是内部问题吗?

我有一张 Google 支持的工单,但还没有任何用处。

请转到 Cloud build,select 您所在的地区,查看 history/logs,应该会告诉您失败的原因。

可能是包裹问题。