chalice icon indicating copy to clipboard operation
chalice copied to clipboard

Deploying Error (Error: Error when deploying:)

Open aidanoldershaw opened this issue 10 years ago • 8 comments

For a while, every other time I tried to deploy, I received the following error:

Error: Error when deploying:

No additional information was given. Occasionally, a different error message would appear, e.g.

Error: Error when deploying: list index out of range

but deployment would generally work the second time around. Now, however, I get nothing but the first error, and cannot deploy at all. The contents of my config.json file are as follows:

{
  "manage_iam_role":false,
  "iam_role_arn": "arn:aws:iam::...:role/lambda_dynamo",
  "lambda_arn": "arn:aws:lambda:us-west-2:...:function:chalice_api",
  "app_name": "chalice_api",
  "stage": "dev"
}

aidanoldershaw avatar Aug 16 '16 02:08 aidanoldershaw

Running into the same issue, but getting this consistently

Error: Error when deploying: list index out of range

kishinmanglani avatar Aug 16 '16 21:08 kishinmanglani

I'm trying to repro the issue but I'm not able to. Do you have a specific set of steps that show the issue?

Here's what I tried:

chalice new-project foo
chalice deploy
# (update the .chalice/config.json to match what you have, except I filled in my own iam_role_arn and lambda_arn)
chalice deploy

I'll see about adding more debug info on the error cases, but if someone can provide a set of steps that demonstrate the issue this would really help in resolving the issue.

jamesls avatar Aug 23 '16 17:08 jamesls

This sort of fixed itself for me. A little while after commenting it worked. If I encounter the issue again, I'll try to figure out steps to repro

kishinmanglani avatar Aug 23 '16 17:08 kishinmanglani

Also ran into this issue

Initial creation of lambda function.
Updating IAM policy.
Creating deployment package.
Error: Error when deploying:

Raxvis avatar Aug 24 '16 06:08 Raxvis

I have the same issue

Initial creation of lambda function. Updating IAM policy. Creating deployment package. Error: Error when deploying:

dermyrddin avatar Sep 14 '16 13:09 dermyrddin

I tried to fix this issue, please check #124

hallazzang avatar Sep 21 '16 09:09 hallazzang

@hallazzang It works now on my system. Thanks!

Raxvis avatar Sep 21 '16 12:09 Raxvis

#124 has been merged, closing out issue.

jamesls avatar Sep 21 '16 23:09 jamesls