Uploaded image for project: 'Appcelerator Studio'
  1. Appcelerator Studio
  2. TISTUD-7595

Login: Studio errors with ECONNREFUSED when building with an invalidated session


    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 4.1.0
    • Fix Version/s: Release 4.1.0
    • Component/s: Login
    • Labels:
    • Environment:

      Mac OSX 10.10.3, Windows 8.1
      Appc Studio:
      Appc CLI (NPM): 4.1.0-1
      Appc CLI (NPM): 4.1.0-1

    • Story Points:
    • Sprint:
      2015 Sprint 13 Studio



      When building from Studio if you have an expired or invalidated session when attempting to prompt for login Studio errors out with the below

      Appcelerator Command-Line Interface, version 4.1.0-1
      Copyright (c) 2014-2015, Appcelerator, Inc.  All Rights Reserved.
      TRACE  | __command__ search paths:
        "/Applications/Appcelerator Studio/AppceleratorStudio.app/Contents/MacOS/node_modules",
        "/Applications/Appcelerator Studio/AppceleratorStudio.app/Contents/node_modules",
        "/Applications/Appcelerator Studio/AppceleratorStudio.app/node_modules",
        "/Applications/Appcelerator Studio/node_modules",
      DEBUG  | [PLUGIN-LOAD] 0ms /Users/eharris/.appcelerator/install/4.1.0-1/package/appc.js
      DEBUG  | [PLUGIN-LOAD] 527ms /Users/eharris/.appcelerator/install/4.1.0-1/package/node_modules/appc-cli-titanium/appc.js
      DEBUG  | [PLUGIN-LOAD] 0ms /Users/eharris/.appcelerator/install/4.1.0-1/package/node_modules/arrow/appc.js
      log level set to "trace"
      executing command "run"
      set environment to {"registry":"https://software-preprod.cloud.appctest.com","security":"https://security-preprod.cloud.appctest.com","baseurl":"https://360-preprod.cloud.appctest.com"}
      checking credentials for existing session
      Attempting to load session info from config file
      check if session is invalidated
      session is invalidated, forcing a login
      session has expired, forcing a login
      No session available, attempting interstitial command login...
      getCredentials() session:
      ERROR  | Error: connect ECONNREFUSED
          at errnoException (net.js:905:11)
          at Object.afterConnect [as oncomplete] (net.js:896:19)

      Logs from the log file are attached as econnrefused.txt

      Steps To Reproduce

      1. Open Studio
      2. Logout from the CLI
      3. Attempt to build

      Actual Result

      Studio will error out with an ECONNREFUSED

      Expected Result

      Studio should not error out and should prompt with a login dialog




            • Assignee:
              pinnamuri Praveen Innamuri (Inactive)
              eharris Ewan Harris
            • Watchers:
              3 Start watching this issue


              • Created: