0
0

More than 1 year has passed since last update.

CloudFunctionsにdeployしてエラーの場合

Posted at

エラー内容

ERROR: (gcloud.functions.deploy) OperationError: code=3, message=Function fail

こんな感じで具体的な内容がわからない場合

原因

具体的な内容がわからない場合は、プログラムが悪い。今の所、それしか原因がなかった。

原因詳細1

引数が間違えていた
トリガーがGCSやpubsubの場合

def hogehoge(event, context):

トリガーがhttp(s)の場合

def hogehoge(request)

引数を取らないでやる処理の場合、ついつい引数無しで作ってしまっていた。

原因詳細2

requirements.txtの内容が不足している

ついつい忘れてしまう。

これはちょいちょい追加していきます。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0