Project: appceleratorstudio
Issue TISTUD-7595: Login: Studio errors with ECONNREFUSED when building with an invalidated session
h5.Description When building from Studio if you have an expired or invalidated session when attempting to prompt for login Studio errors out with the below {code} Appcelerator Command-Line Interface, version 4.1.0-1 Copyright (c) 2014-2015, Appcelerator, Inc. All Rights Reserved. TRACE | __command__ search paths: [ "/Users/eharris/.appcelerator/install/4.1.0-1/package", "/Users/eharris/.appcelerator/install/4.1.0-1/package/node_modules", "/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", "/Applications/node_modules", "/node_modules", "/Users/eharris/.appcelerator/.npm/lib/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) {code} Logs from the log file are attached as econnrefused.txt h5.Steps To Reproduce 1. Open Studio 2. Logout from the CLI 3. Attempt to build h5.Actual Result Studio will error out with an ECONNREFUSED h5.Expected Result Studio should not error out and should prompt with a login dialog
Story points: 3