eb deploy ERROR: TypeError - cannot concatenate 'str' and 'NoneType' objects
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
Sorry I don't see this question anywhere. I've deployed an environment for my application "scones" on AWS. It's fairly simple Node.js express app. Honestly it's just to test the elastic beanstalk deployment. Anyhoo I'm using ebcli and I've already done an "eb create scones1" and it does create the environment and launches it. But when I make some changes (not committed to git) and type 'eb deploy' on the command line I receive ERROR: TypeError - cannot concatenate 'str' and 'NoneType' objects
every time. Even if I enter the environment name. Doesn't matter. What is happening? None of the documentation seems to mention any error like this. Is there an issue with my Python version? I
amazon-web-services amazon-elastic-beanstalk
add a comment |
Sorry I don't see this question anywhere. I've deployed an environment for my application "scones" on AWS. It's fairly simple Node.js express app. Honestly it's just to test the elastic beanstalk deployment. Anyhoo I'm using ebcli and I've already done an "eb create scones1" and it does create the environment and launches it. But when I make some changes (not committed to git) and type 'eb deploy' on the command line I receive ERROR: TypeError - cannot concatenate 'str' and 'NoneType' objects
every time. Even if I enter the environment name. Doesn't matter. What is happening? None of the documentation seems to mention any error like this. Is there an issue with my Python version? I
amazon-web-services amazon-elastic-beanstalk
Also I thought it was a Python issue - was using Python 2 upgraded to Python 3 and reinstalled awsebcli and it still has the same issue. Now using EB CLI 3.14.6 (Python 3.4.3)
– anthony galligani
Nov 16 '18 at 19:44
add a comment |
Sorry I don't see this question anywhere. I've deployed an environment for my application "scones" on AWS. It's fairly simple Node.js express app. Honestly it's just to test the elastic beanstalk deployment. Anyhoo I'm using ebcli and I've already done an "eb create scones1" and it does create the environment and launches it. But when I make some changes (not committed to git) and type 'eb deploy' on the command line I receive ERROR: TypeError - cannot concatenate 'str' and 'NoneType' objects
every time. Even if I enter the environment name. Doesn't matter. What is happening? None of the documentation seems to mention any error like this. Is there an issue with my Python version? I
amazon-web-services amazon-elastic-beanstalk
Sorry I don't see this question anywhere. I've deployed an environment for my application "scones" on AWS. It's fairly simple Node.js express app. Honestly it's just to test the elastic beanstalk deployment. Anyhoo I'm using ebcli and I've already done an "eb create scones1" and it does create the environment and launches it. But when I make some changes (not committed to git) and type 'eb deploy' on the command line I receive ERROR: TypeError - cannot concatenate 'str' and 'NoneType' objects
every time. Even if I enter the environment name. Doesn't matter. What is happening? None of the documentation seems to mention any error like this. Is there an issue with my Python version? I
amazon-web-services amazon-elastic-beanstalk
amazon-web-services amazon-elastic-beanstalk
edited Nov 29 '18 at 10:28
cody
8,23631326
8,23631326
asked Nov 16 '18 at 19:43
anthony galliganianthony galligani
515
515
Also I thought it was a Python issue - was using Python 2 upgraded to Python 3 and reinstalled awsebcli and it still has the same issue. Now using EB CLI 3.14.6 (Python 3.4.3)
– anthony galligani
Nov 16 '18 at 19:44
add a comment |
Also I thought it was a Python issue - was using Python 2 upgraded to Python 3 and reinstalled awsebcli and it still has the same issue. Now using EB CLI 3.14.6 (Python 3.4.3)
– anthony galligani
Nov 16 '18 at 19:44
Also I thought it was a Python issue - was using Python 2 upgraded to Python 3 and reinstalled awsebcli and it still has the same issue. Now using EB CLI 3.14.6 (Python 3.4.3)
– anthony galligani
Nov 16 '18 at 19:44
Also I thought it was a Python issue - was using Python 2 upgraded to Python 3 and reinstalled awsebcli and it still has the same issue. Now using EB CLI 3.14.6 (Python 3.4.3)
– anthony galligani
Nov 16 '18 at 19:44
add a comment |
3 Answers
3
active
oldest
votes
I was having this same issue and determined it to be coming from the following line in ebcli/operations/deployops.py:
io.log_info('Deploying code to ' + env_name + " in region " + region_name)
I resolved it by explicitly specifying a region with -r REGION
when executing the deploy. I imagine somewhere the default region should be configured so this does not happen.
Edit: I was able to permanently set the region with eb init --region us-east-1
1
The error I was getting wasERROR: TypeError - must be str, not NoneType
. This answer helped me. I'd marked it as accepted @anthonyGalligani
– Amio.io
Nov 27 '18 at 10:02
1
You can probably also edit.elasticbeanstalkconfig.yml
and setglobal:default_region
. I believe mine was null before I ran the above command.
– Chloe
Nov 29 '18 at 2:36
add a comment |
Try git add .
to stage your commits. Then, eb deploy --staged
. You can check out the --staged flag here: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb3-deploy.html
Not if you want to deploy an artifact built by Maven intarget/*-SNAPTSHOT.war
which isn't in your source control. exampledriven.wordpress.com/2017/01/09/…
– Chloe
Nov 29 '18 at 2:38
add a comment |
Solve with a simple eb init
, put my credentials, and just works.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53344377%2feb-deploy-error-typeerror-cannot-concatenate-str-and-nonetype-objects%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
I was having this same issue and determined it to be coming from the following line in ebcli/operations/deployops.py:
io.log_info('Deploying code to ' + env_name + " in region " + region_name)
I resolved it by explicitly specifying a region with -r REGION
when executing the deploy. I imagine somewhere the default region should be configured so this does not happen.
Edit: I was able to permanently set the region with eb init --region us-east-1
1
The error I was getting wasERROR: TypeError - must be str, not NoneType
. This answer helped me. I'd marked it as accepted @anthonyGalligani
– Amio.io
Nov 27 '18 at 10:02
1
You can probably also edit.elasticbeanstalkconfig.yml
and setglobal:default_region
. I believe mine was null before I ran the above command.
– Chloe
Nov 29 '18 at 2:36
add a comment |
I was having this same issue and determined it to be coming from the following line in ebcli/operations/deployops.py:
io.log_info('Deploying code to ' + env_name + " in region " + region_name)
I resolved it by explicitly specifying a region with -r REGION
when executing the deploy. I imagine somewhere the default region should be configured so this does not happen.
Edit: I was able to permanently set the region with eb init --region us-east-1
1
The error I was getting wasERROR: TypeError - must be str, not NoneType
. This answer helped me. I'd marked it as accepted @anthonyGalligani
– Amio.io
Nov 27 '18 at 10:02
1
You can probably also edit.elasticbeanstalkconfig.yml
and setglobal:default_region
. I believe mine was null before I ran the above command.
– Chloe
Nov 29 '18 at 2:36
add a comment |
I was having this same issue and determined it to be coming from the following line in ebcli/operations/deployops.py:
io.log_info('Deploying code to ' + env_name + " in region " + region_name)
I resolved it by explicitly specifying a region with -r REGION
when executing the deploy. I imagine somewhere the default region should be configured so this does not happen.
Edit: I was able to permanently set the region with eb init --region us-east-1
I was having this same issue and determined it to be coming from the following line in ebcli/operations/deployops.py:
io.log_info('Deploying code to ' + env_name + " in region " + region_name)
I resolved it by explicitly specifying a region with -r REGION
when executing the deploy. I imagine somewhere the default region should be configured so this does not happen.
Edit: I was able to permanently set the region with eb init --region us-east-1
edited Nov 18 '18 at 19:45
answered Nov 18 '18 at 19:37
codycody
8,23631326
8,23631326
1
The error I was getting wasERROR: TypeError - must be str, not NoneType
. This answer helped me. I'd marked it as accepted @anthonyGalligani
– Amio.io
Nov 27 '18 at 10:02
1
You can probably also edit.elasticbeanstalkconfig.yml
and setglobal:default_region
. I believe mine was null before I ran the above command.
– Chloe
Nov 29 '18 at 2:36
add a comment |
1
The error I was getting wasERROR: TypeError - must be str, not NoneType
. This answer helped me. I'd marked it as accepted @anthonyGalligani
– Amio.io
Nov 27 '18 at 10:02
1
You can probably also edit.elasticbeanstalkconfig.yml
and setglobal:default_region
. I believe mine was null before I ran the above command.
– Chloe
Nov 29 '18 at 2:36
1
1
The error I was getting was
ERROR: TypeError - must be str, not NoneType
. This answer helped me. I'd marked it as accepted @anthonyGalligani– Amio.io
Nov 27 '18 at 10:02
The error I was getting was
ERROR: TypeError - must be str, not NoneType
. This answer helped me. I'd marked it as accepted @anthonyGalligani– Amio.io
Nov 27 '18 at 10:02
1
1
You can probably also edit
.elasticbeanstalkconfig.yml
and set global:default_region
. I believe mine was null before I ran the above command.– Chloe
Nov 29 '18 at 2:36
You can probably also edit
.elasticbeanstalkconfig.yml
and set global:default_region
. I believe mine was null before I ran the above command.– Chloe
Nov 29 '18 at 2:36
add a comment |
Try git add .
to stage your commits. Then, eb deploy --staged
. You can check out the --staged flag here: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb3-deploy.html
Not if you want to deploy an artifact built by Maven intarget/*-SNAPTSHOT.war
which isn't in your source control. exampledriven.wordpress.com/2017/01/09/…
– Chloe
Nov 29 '18 at 2:38
add a comment |
Try git add .
to stage your commits. Then, eb deploy --staged
. You can check out the --staged flag here: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb3-deploy.html
Not if you want to deploy an artifact built by Maven intarget/*-SNAPTSHOT.war
which isn't in your source control. exampledriven.wordpress.com/2017/01/09/…
– Chloe
Nov 29 '18 at 2:38
add a comment |
Try git add .
to stage your commits. Then, eb deploy --staged
. You can check out the --staged flag here: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb3-deploy.html
Try git add .
to stage your commits. Then, eb deploy --staged
. You can check out the --staged flag here: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb3-deploy.html
answered Nov 16 '18 at 20:31
Joaquin RocaJoaquin Roca
1017
1017
Not if you want to deploy an artifact built by Maven intarget/*-SNAPTSHOT.war
which isn't in your source control. exampledriven.wordpress.com/2017/01/09/…
– Chloe
Nov 29 '18 at 2:38
add a comment |
Not if you want to deploy an artifact built by Maven intarget/*-SNAPTSHOT.war
which isn't in your source control. exampledriven.wordpress.com/2017/01/09/…
– Chloe
Nov 29 '18 at 2:38
Not if you want to deploy an artifact built by Maven in
target/*-SNAPTSHOT.war
which isn't in your source control. exampledriven.wordpress.com/2017/01/09/…– Chloe
Nov 29 '18 at 2:38
Not if you want to deploy an artifact built by Maven in
target/*-SNAPTSHOT.war
which isn't in your source control. exampledriven.wordpress.com/2017/01/09/…– Chloe
Nov 29 '18 at 2:38
add a comment |
Solve with a simple eb init
, put my credentials, and just works.
add a comment |
Solve with a simple eb init
, put my credentials, and just works.
add a comment |
Solve with a simple eb init
, put my credentials, and just works.
Solve with a simple eb init
, put my credentials, and just works.
answered Jan 30 at 19:53
AnubzAnubz
4816
4816
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53344377%2feb-deploy-error-typeerror-cannot-concatenate-str-and-nonetype-objects%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Also I thought it was a Python issue - was using Python 2 upgraded to Python 3 and reinstalled awsebcli and it still has the same issue. Now using EB CLI 3.14.6 (Python 3.4.3)
– anthony galligani
Nov 16 '18 at 19:44