簡體   English   中英

從控制台或 console.cloud.google.com/functions/edit 部署 Python GCP 雲函數時出現 INVALID_ARGUMENT 錯誤

[英]INVALID_ARGUMENT error when deploying Python GCP Cloud Function from either console or console.cloud.google.com/functions/edit

我遇到Build failed: Build has timed out嘗試部署依賴於firebase_admingoogle-cloud-firestore的 GCP 雲功能時, Build failed: Build has timed out

奇怪的是,我有一大堆以前部署的雲函數,其中任何一個都列在 requirements.txt 中,但是當嘗試重新部署那些完全相同的函數時,構建失敗了。

今天早上第一次注意到這個奇怪的地方。

以下是失敗的日志條目

{
 insertId: "..."  
 logName: "projects/myproj8634928/logs/cloudaudit.googleapis.com%2Factivity"  
 operation: {
  id: "operations/bW...M"   
  last: true   
  producer: "cloudfunctions.googleapis.com"   
 }
 protoPayload: {
  @type: "type.googleapis.com/google.cloud.audit.AuditLog"   
  authenticationInfo: {
   principalEmail: "...@gmail.com"    
  }
  methodName: "google.cloud.functions.v1.CloudFunctionsService.UpdateFunction"   
  requestMetadata: {
   destinationAttributes: {
   }
   requestAttributes: {
   }
  }
  resourceName: "projects/myproj8634928/locations/europe-west2/functions/stupid-funcion"   
  serviceName: "cloudfunctions.googleapis.com"   
  status: {
   code: 3    
   message: "INVALID_ARGUMENT"    
  }
 }
 receiveTimestamp: "2020-02-05T16:01:36.150444022Z"  
 resource: {
  labels: {
   function_name: "stupid-funcion"    
   project_id: "myproj8634928"    
   region: "europe-west2"    
  }
  type: "cloud_function"   
 }
 severity: "ERROR"  
 timestamp: "2020-02-05T16:01:35.198Z"  
}

以及requirements.txt的內容

firebase_admin

這似乎在這篇文章和現在之間奇跡般地解決了。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM