Skip to content
This repository has been archived by the owner on Oct 22, 2022. It is now read-only.

Cannot deploy twice #110

Open
conan opened this issue Sep 28, 2018 · 2 comments
Open

Cannot deploy twice #110

conan opened this issue Sep 28, 2018 · 2 comments

Comments

@conan
Copy link

conan commented Sep 28, 2018

The second time I run lein cljs-lambda deploy I always get this error:

Caused by: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('X' (code 88)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')

The unexpected character in question is always the first character of the output from the previous aws lambda get-function-configuration command:

aws lambda get-function-configuration --function-name referralbot-slash-command
XlWc1<snip>Omy8=    905749          arn:aws:lambda:eu-west-1:1<snip>4:function:referralbot-slash-command        referralbot-slash-command       index.referralbot_core_SLASH_slash_command      2018-09-27T11:43:22.641+0000    128     arn:aws:iam::1<snip>4:rol
                        nodejs4.3       3       $LATEST

I've tried running the aws configure command as suggested in #99, and have tried re-installing it too, but it didn't help. Here's the full stack trace. At the moment I have to delete the function in Lambda before lein cljs-lambda deploy will work again, which isn't an ideal workflow. Any ideas?

aws --version
aws-cli/1.11.13 Python/3.5.2 Linux/4.4.0-17134-Microsoft botocore/1.4.70
@conan
Copy link
Author

conan commented Sep 28, 2018

OK, just noticed that cheshire is mentioned in the output and therefore figured out that cljs-lambda requires aws configure to have the output set to json rather than text.

I've sent a PR to mention this in the docs.

@moea
Copy link
Member

moea commented Oct 4, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants