0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

"errorMessage": "Syntax error in module 'lambda_function': invalid syntax (lambda_function.py, line 14)"エラー

Posted at

【Syntax error in module 'lambda_function':】
構文ミスです。

例の場合は、関数定義の行末に「:」が抜けてたもの。
ほぼ間違いなく、指摘のある行数(今回は14行目)のどこかに、正しくない構文(何かが足りないとか、コロンとセミコロンがまちがってるとか)があるので、おちついてじっくり1文字ずつ見直そう!

エラー
{
  "errorMessage": "Syntax error in module 'lambda_function': invalid syntax (lambda_function.py, line 14)",
  "errorType": "Runtime.UserCodeSyntaxError",
  "stackTrace": [
    "  File \"/var/task/lambda_function.py\" Line 14\n    def get_inventory(instanceid)\n"
  ]
}
0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?