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;
}







8















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










share|improve this question

























  • 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




















8















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










share|improve this question

























  • 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
















8












8








8


1






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










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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





















  • 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














3 Answers
3






active

oldest

votes


















8














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






share|improve this answer





















  • 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






  • 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





















0














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






share|improve this answer
























  • 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





















0














Solve with a simple eb init, put my credentials, and just works.






share|improve this answer
























    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
    });


    }
    });














    draft saved

    draft discarded


















    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









    8














    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






    share|improve this answer





















    • 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






    • 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


















    8














    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






    share|improve this answer





















    • 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






    • 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
















    8












    8








    8







    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






    share|improve this answer















    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







    share|improve this answer














    share|improve this answer



    share|improve this answer








    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 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





      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
















    • 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






    • 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










    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















    0














    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






    share|improve this answer
























    • 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


















    0














    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






    share|improve this answer
























    • 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
















    0












    0








    0







    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






    share|improve this answer













    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







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Nov 16 '18 at 20:31









    Joaquin RocaJoaquin Roca

    1017




    1017













    • 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



















    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













    0














    Solve with a simple eb init, put my credentials, and just works.






    share|improve this answer




























      0














      Solve with a simple eb init, put my credentials, and just works.






      share|improve this answer


























        0












        0








        0







        Solve with a simple eb init, put my credentials, and just works.






        share|improve this answer













        Solve with a simple eb init, put my credentials, and just works.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 30 at 19:53









        AnubzAnubz

        4816




        4816






























            draft saved

            draft discarded




















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks

            Contact image not getting when fetch all contact list from iPhone by CNContact

            Calculate evaluation metrics using cross_val_predict sklearn