Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploying Error (Error: Error when deploying:) #103

Closed
aidanoldershaw opened this issue Aug 16, 2016 · 8 comments
Closed

Deploying Error (Error: Error when deploying:) #103

aidanoldershaw opened this issue Aug 16, 2016 · 8 comments

Comments

@aidanoldershaw
Copy link

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"
}
@kishinmanglani
Copy link

kishinmanglani commented Aug 16, 2016

Running into the same issue, but getting this consistently

Error: Error when deploying: list index out of range

@jamesls
Copy link
Member

jamesls commented Aug 23, 2016

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.

@kishinmanglani
Copy link

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

@Raxvis
Copy link

Raxvis commented Aug 24, 2016

Also ran into this issue

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

@dermyrddin
Copy link

dermyrddin commented Sep 14, 2016

I have the same issue

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

@hallazzang
Copy link
Contributor

I tried to fix this issue, please check #124

@Raxvis
Copy link

Raxvis commented Sep 21, 2016

@hallazzang It works now on my system. Thanks!

jamesls added a commit that referenced this issue Sep 21, 2016
* hallazzang-master:
  Mistake, the order of if-else was incorrect.
  Fix issue #103
@jamesls
Copy link
Member

jamesls commented Sep 21, 2016

#124 has been merged, closing out issue.

@jamesls jamesls closed this as completed Sep 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants