Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Titanium
    • Labels:
    • Environment:

      MacOS Sierra 10.12.2, npm 4.6.1, node v6.9.4, appc 6.2.4

      Description

      Trying to run the command:

      $ appc -l trace ti sdk install
      Appcelerator Command-Line Interface, version 6.2.4
      Copyright (c) 2014-2017, Appcelerator, Inc.  All Rights Reserved.
       
      2017-09-17T19:38:07.928Z | TRACE  | set environment to {"registry":"https://software.appcelerator.com","baseurl":"https://platform.appcelerator.com"}
      2017-09-17T19:38:07.929Z | TRACE  | checking credentials for existing session
      2017-09-17T19:38:08.030Z | TRACE  | Attempting to load session info from config file
      2017-09-17T19:38:08.035Z | TRACE  | check if session is invalidated
      2017-09-17T19:38:10.970Z | TRACE  | refresh session expiry to:  1506281890767
      2017-09-17T19:38:10.971Z | TRACE  | session expiry 1506281890767 false
      2017-09-17T19:38:10.972Z | TRACE  | Arrow Cloud config file: /Users/falko/.acs
      2017-09-17T19:38:10.975Z | TRACE  | found Arrow Cloud login { mid: '1e480e6242fb59ad483ea04f854c109ff816c013',
        publishPort: 443,
        publishHost: 'https://admin.cloudapp-enterprise.appcelerator.com',
        username: 'falko.lab@gmail.com',
        cookie: [ 'connect.sid=s%3ACPHvjUwGdkKhxq2oASRJON7nfbvr6bc-.07u71tXRVsWSe1zBq1jQnVlZi%2BPc75BvgcrM2sGY6LI; Path=/; Expires=Sun, 01 Oct 2017 18:07:58 GMT; HttpOnly' ],
        defaultEP:
         { publishHost: 'https://admin.cloudapp-enterprise.appcelerator.com',
           publishPort: 443 } } , checking nodeACSEndpoint= https://admin.cloudapp-enterprise.appcelerator.com
      2017-09-17T19:38:10.975Z | TRACE  | Arrow Cloud cookie expiry [ 1506881278000 ]
      2017-09-17T19:38:10.976Z | TRACE  | session already loaded in opts.session
      2017-09-17T19:38:10.977Z | TRACE  | getCredentials() session:
      {
        "ipaddress": "192.168.1.73",
        "username": "falko.lab@gmail.com",
        "password": "<OMITTED>",
        "session": "<OMITTED>",
        "nonce": "<OMITTED>",
        "environment": {
          "name": "production",
          "isProduction": true,
          "acsBaseUrl": "https://api.cloud.appcelerator.com",
          "acsAuthBaseUrl": "https://secure-identity.cloud.appcelerator.com",
          "nodeACSEndpoint": "https://admin.cloudapp-enterprise.appcelerator.com"
        },
        "token": "<OMITTED>",
        "fingerprint": "1e480e6242fb59ad483ea04f854c109ff816c013",
        "fingerprint_description": "Mac OSX Serial Number: C02LGE6UF8JC",
        "org_id": 100010001,
        "expiry": 1506281890767
      }
      2017-09-17T19:38:10.977Z | TRACE  | executing command "titanium" with no plugins
      2017-09-17T19:38:10.977Z | TRACE  | finding titanium plugin for sdk
       
      [ERROR] No releases found!
      

      I added the output of the debugging information to the file
      ~/.appcelerator/install/6.2.4/package/node_modules/titanium/lib/commands/sdk.js:

      function getReleases(config, os, callback) {
          console.log(urls.releases);
      	fetch(urls.releases, config, function (err, data) {
      	    console.log(JSON.stringify(err));
      		var releases = {};
      		!err && data && data.releases && data.releases.forEach(function (r) {
      			r.os == os && r.name == 'mobilesdk' && (releases[r.version] = r.url);
      		});
      		callback && callback(err, err ? new Error(__('Failed to get releases: %s', err.message || err.toString())) : releases);
      	});
      }
      

      As a result:

      https://f4df0833a1352ef193633d85356e6e80ffcdcdb7.cloudapp-enterprise.appcelerator.com/api/mobilesdk/releases/$TOKEN
      {"code":"ECONNRESET","errno":"ECONNRESET","syscall":"read"}
      

      You can see that token has not been replaced.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              falko Andrey Tkachenko
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:

                Git Source Code