SFDX CLI fails to connect to orgs with JSON error

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
3
down vote

favorite












I am using the latest CLI version 6.35.1-8b7320f7c2 and when I do



sfdx force:auth:web:login -a DevHub -d



ERROR: Unexpected token ] in JSON at position 88.




Calling



sfdx force:org:list


renders a Syntax error in the CONNECTION STATUS



=== Orgs
ALIAS USERN ORG ID CONNECTED STATUS
─── ────── ──────────────── ────────────────── ────────────────
(D) DevHub robert@email.com 00D50000000IOZFEA4 SyntaxError


enter image description here










share|improve this question



























    up vote
    3
    down vote

    favorite












    I am using the latest CLI version 6.35.1-8b7320f7c2 and when I do



    sfdx force:auth:web:login -a DevHub -d



    ERROR: Unexpected token ] in JSON at position 88.




    Calling



    sfdx force:org:list


    renders a Syntax error in the CONNECTION STATUS



    === Orgs
    ALIAS USERN ORG ID CONNECTED STATUS
    ─── ────── ──────────────── ────────────────── ────────────────
    (D) DevHub robert@email.com 00D50000000IOZFEA4 SyntaxError


    enter image description here










    share|improve this question























      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      I am using the latest CLI version 6.35.1-8b7320f7c2 and when I do



      sfdx force:auth:web:login -a DevHub -d



      ERROR: Unexpected token ] in JSON at position 88.




      Calling



      sfdx force:org:list


      renders a Syntax error in the CONNECTION STATUS



      === Orgs
      ALIAS USERN ORG ID CONNECTED STATUS
      ─── ────── ──────────────── ────────────────── ────────────────
      (D) DevHub robert@email.com 00D50000000IOZFEA4 SyntaxError


      enter image description here










      share|improve this question













      I am using the latest CLI version 6.35.1-8b7320f7c2 and when I do



      sfdx force:auth:web:login -a DevHub -d



      ERROR: Unexpected token ] in JSON at position 88.




      Calling



      sfdx force:org:list


      renders a Syntax error in the CONNECTION STATUS



      === Orgs
      ALIAS USERN ORG ID CONNECTED STATUS
      ─── ────── ──────────────── ────────────────── ────────────────
      (D) DevHub robert@email.com 00D50000000IOZFEA4 SyntaxError


      enter image description here







      salesforcedx salesforcedx-cli sfdx-falcon






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 30 mins ago









      Robert Sösemann

      12.3k1070206




      12.3k1070206




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          For reasons best known to itself, DX tries to parse your sfdx-json.json file even when your operation isn't related to any particular project e.g. when you run



          sfdx force:org:list


          So, check the sfdx-json.json in your current directory for errors, or change directory to a known-good project.






          share|improve this answer




















          • My hero! Thanks a lot.
            – Robert Sösemann
            13 mins ago










          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "459"
          ;
          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',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsalesforce.stackexchange.com%2fquestions%2f236139%2fsfdx-cli-fails-to-connect-to-orgs-with-json-error%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          2
          down vote



          accepted










          For reasons best known to itself, DX tries to parse your sfdx-json.json file even when your operation isn't related to any particular project e.g. when you run



          sfdx force:org:list


          So, check the sfdx-json.json in your current directory for errors, or change directory to a known-good project.






          share|improve this answer




















          • My hero! Thanks a lot.
            – Robert Sösemann
            13 mins ago














          up vote
          2
          down vote



          accepted










          For reasons best known to itself, DX tries to parse your sfdx-json.json file even when your operation isn't related to any particular project e.g. when you run



          sfdx force:org:list


          So, check the sfdx-json.json in your current directory for errors, or change directory to a known-good project.






          share|improve this answer




















          • My hero! Thanks a lot.
            – Robert Sösemann
            13 mins ago












          up vote
          2
          down vote



          accepted







          up vote
          2
          down vote



          accepted






          For reasons best known to itself, DX tries to parse your sfdx-json.json file even when your operation isn't related to any particular project e.g. when you run



          sfdx force:org:list


          So, check the sfdx-json.json in your current directory for errors, or change directory to a known-good project.






          share|improve this answer












          For reasons best known to itself, DX tries to parse your sfdx-json.json file even when your operation isn't related to any particular project e.g. when you run



          sfdx force:org:list


          So, check the sfdx-json.json in your current directory for errors, or change directory to a known-good project.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 16 mins ago









          Aidan

          6,110937




          6,110937











          • My hero! Thanks a lot.
            – Robert Sösemann
            13 mins ago
















          • My hero! Thanks a lot.
            – Robert Sösemann
            13 mins ago















          My hero! Thanks a lot.
          – Robert Sösemann
          13 mins ago




          My hero! Thanks a lot.
          – Robert Sösemann
          13 mins ago

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsalesforce.stackexchange.com%2fquestions%2f236139%2fsfdx-cli-fails-to-connect-to-orgs-with-json-error%23new-answer', 'question_page');

          );

          Post as a guest













































































          Comments

          Popular posts from this blog

          What does second last employer means? [closed]

          List of Gilmore Girls characters

          Confectionery