Uploaded image for project: 'Appcelerator CLI'
  1. Appcelerator CLI
  2. CLI-614

Console logs incorrectly that setting org to undefined

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 4.0.0
    • Component/s: Core
    • Labels:
      None
    • Story Points:
      3
    • Sprint:
      2015 Sprint 09 Tooling

      Description

      There is an org in the session. Unsure if this means the /user/organizations call to 360 is empty. I'm not able to duplicate with any of my accounts. If this is an empty orgs payload from 360 causing it, is there a way to drum up the actual URL and response? Impersonating this user and hitting the endpoint in platform.appc yields the expected org (below).

      login returned undefined { username: 'dpfeiffer@ionagroup.com',
        org_id: 100005581,
        org_name: 'Float Mobile Learning',
        session: 'add0a3752b53ce2245414c687235c1733c9c92e2 aQPrCSXmOcQ8yB+6LG3140UF1ZFU+srQp4bloc1k/0R9nXZGOmcJDpWJXbI+RO2yIT8NER5UOKtRBwEJgZnfj3J47Odt5lzXTgZ2IgkYHs3HR31P6DZ4rfnIvePzdIbF2mok7PVWAwAJeodgMAiS2pNXnd8D/LseTTzOVEfRkkH5mbS+qwOYERRbq3NIRGynmgs9ASdd1hTiem7cqrZOW7NrMvF9SnemJTjwBkz4If3cbauLDfo6A1Y8urtZlZzHMWNIARcn7GGGdyyExwR6IJ7Gc5OU8pCGwFna7y/h0b+6Fwse+deu78nqj2GMaYAtHPpLU6r8TkGoIzxNTUQl9Ye6i/C9mjIwathRkz4+Wg7QZVdam/uQ5CpySlV8pN8KxYzZMJTeclg+r2CcXoc9w/sKoIlKSXAmsBolqZZc9Fv7EETstalsw7NT2ZsMZfz+HXZJctlI0tEkW5bJhxY+cgUqfJFeKKDQiOk9Qb4a17o4Tm6xhUqBW1twU6xBCyRARX2Dxc8UTn6rQrTHZbm46GQgP+kx15dUKcb5+HlGKogZFCaqb9k2eTo8tuLgPfiNo+MwR8/+NTL5/SXbPfcnyZGbN+SP4WP9EXZV6U5yNzjpN4ODIl4wGyesvggBYqIGFCjN7DdBd/g2satWrTYkoldnSmgvt0OhEMPwsWkQ0BABCYj/Vt1dgPEr9eTVP5BXvkQAsa14t4qIwt6Yxfp5i1L2xwsLW5elV9Sk5jS+vs8TYnhgyby+JXqNDwpU1UyI4KKYGWgiO9yimP7ACOviiDi/nuxFdi3lCWZXrakPtWI=',
        expiry: 1430855827351,
        firstname: 'Daniel',
        lastname: 'Pfeiffer',
        sid: 's:9bSE6kWvXGnRkCLzS7d-uXCgMCLMw2ak.PzB5B7jLItVL9dm+Tv3hhAm9bN2UeAWGy1kly5/Z49g',
        dashboard: 'https://platform.appcelerator.com',
        soastaUrl: 'https://appctest-2.appcelerator.com/concerto',
        entitlements: 
         { id: '54d8e47cce78815d81104cb1',
           name: 'Developer',
           partners: [ 'acs', 'analytics' ],
           supportLink: 'https://community.appcelerator.com',
           users: { min: 1, max: 1 },
           testingDevices: { min: 0, max: 0 },
           allowProduction: false,
           arrowPublish: true,
           nativeSDK: false,
           insights: false,
           apiRateMonthPerSeat: 100000,
           apiRateMinute: 10,
           pushRateMinute: 10,
           storageGBRateMonth: 1,
           eventRateMonthPerSeat: 100000,
           daysDataRetained: 7,
           maxOrganizations: 1,
           dateRangeLimit: 7,
           dateRangeCustom: true,
           exportMetrics: false,
           exportAcs: false,
           paid: false,
           containerPointsPerSeat: 1 } }
      response from login { username: 'dpfeiffer@ionagroup.com',
        org_id: 100005581,
        org_name: 'Float Mobile Learning',
        session: 'add0a3752b53ce2245414c687235c1733c9c92e2 aQPrCSXmOcQ8yB+6LG3140UF1ZFU+srQp4bloc1k/0R9nXZGOmcJDpWJXbI+RO2yIT8NER5UOKtRBwEJgZnfj3J47Odt5lzXTgZ2IgkYHs3HR31P6DZ4rfnIvePzdIbF2mok7PVWAwAJeodgMAiS2pNXnd8D/LseTTzOVEfRkkH5mbS+qwOYERRbq3NIRGynmgs9ASdd1hTiem7cqrZOW7NrMvF9SnemJTjwBkz4If3cbauLDfo6A1Y8urtZlZzHMWNIARcn7GGGdyyExwR6IJ7Gc5OU8pCGwFna7y/h0b+6Fwse+deu78nqj2GMaYAtHPpLU6r8TkGoIzxNTUQl9Ye6i/C9mjIwathRkz4+Wg7QZVdam/uQ5CpySlV8pN8KxYzZMJTeclg+r2CcXoc9w/sKoIlKSXAmsBolqZZc9Fv7EETstalsw7NT2ZsMZfz+HXZJctlI0tEkW5bJhxY+cgUqfJFeKKDQiOk9Qb4a17o4Tm6xhUqBW1twU6xBCyRARX2Dxc8UTn6rQrTHZbm46GQgP+kx15dUKcb5+HlGKogZFCaqb9k2eTo8tuLgPfiNo+MwR8/+NTL5/SXbPfcnyZGbN+SP4WP9EXZV6U5yNzjpN4ODIl4wGyesvggBYqIGFCjN7DdBd/g2satWrTYkoldnSmgvt0OhEMPwsWkQ0BABCYj/Vt1dgPEr9eTVP5BXvkQAsa14t4qIwt6Yxfp5i1L2xwsLW5elV9Sk5jS+vs8TYnhgyby+JXqNDwpU1UyI4KKYGWgiO9yimP7ACOviiDi/nuxFdi3lCWZXrakPtWI=',
        expiry: 1430855827351,
        firstname: 'Daniel',
        lastname: 'Pfeiffer',
        sid: 's:9bSE6kWvXGnRkCLzS7d-uXCgMCLMw2ak.PzB5B7jLItVL9dm+Tv3hhAm9bN2UeAWGy1kly5/Z49g',
        dashboard: 'https://platform.appcelerator.com',
        soastaUrl: 'https://appctest-2.appcelerator.com/concerto',
        entitlements: 
         { id: '54d8e47cce78815d81104cb1',
           name: 'Developer',
           partners: [ 'acs', 'analytics' ],
           supportLink: 'https://community.appcelerator.com',
           users: { min: 1, max: 1 },
           testingDevices: { min: 0, max: 0 },
           allowProduction: false,
           arrowPublish: true,
           nativeSDK: false,
           insights: false,
           apiRateMonthPerSeat: 100000,
           apiRateMinute: 10,
           pushRateMinute: 10,
           storageGBRateMonth: 1,
           eventRateMonthPerSeat: 100000,
           daysDataRetained: 7,
           maxOrganizations: 1,
           dateRangeLimit: 7,
           dateRangeCustom: true,
           exportMetrics: false,
           exportAcs: false,
           paid: false,
           containerPointsPerSeat: 1 } }
      saving config { author: 'Daniel Pfeiffer',
        dashboard: 'https://platform.appcelerator.com',
        environmentName: 'production',
        username: 'dpfeiffer@ionagroup.com',
        org_id: 100005581,
        org_name: 'Float Mobile Learning',
        session: 'add0a3752b53ce2245414c687235c1733c9c92e2 aQPrCSXmOcQ8yB+6LG3140UF1ZFU+srQp4bloc1k/0R9nXZGOmcJDpWJXbI+RO2yIT8NER5UOKtRBwEJgZnfj3J47Odt5lzXTgZ2IgkYHs3HR31P6DZ4rfnIvePzdIbF2mok7PVWAwAJeodgMAiS2pNXnd8D/LseTTzOVEfRkkH5mbS+qwOYERRbq3NIRGynmgs9ASdd1hTiem7cqrZOW7NrMvF9SnemJTjwBkz4If3cbauLDfo6A1Y8urtZlZzHMWNIARcn7GGGdyyExwR6IJ7Gc5OU8pCGwFna7y/h0b+6Fwse+deu78nqj2GMaYAtHPpLU6r8TkGoIzxNTUQl9Ye6i/C9mjIwathRkz4+Wg7QZVdam/uQ5CpySlV8pN8KxYzZMJTeclg+r2CcXoc9w/sKoIlKSXAmsBolqZZc9Fv7EETstalsw7NT2ZsMZfz+HXZJctlI0tEkW5bJhxY+cgUqfJFeKKDQiOk9Qb4a17o4Tm6xhUqBW1twU6xBCyRARX2Dxc8UTn6rQrTHZbm46GQgP+kx15dUKcb5+HlGKogZFCaqb9k2eTo8tuLgPfiNo+MwR8/+NTL5/SXbPfcnyZGbN+SP4WP9EXZV6U5yNzjpN4ODIl4wGyesvggBYqIGFCjN7DdBd/g2satWrTYkoldnSmgvt0OhEMPwsWkQ0BABCYj/Vt1dgPEr9eTVP5BXvkQAsa14t4qIwt6Yxfp5i1L2xwsLW5elV9Sk5jS+vs8TYnhgyby+JXqNDwpU1UyI4KKYGWgiO9yimP7ACOviiDi/nuxFdi3lCWZXrakPtWI=',
        expiry: 1430855827351,
        firstname: 'Daniel',
        lastname: 'Pfeiffer',
        sid: 's:9bSE6kWvXGnRkCLzS7d-uXCgMCLMw2ak.PzB5B7jLItVL9dm+Tv3hhAm9bN2UeAWGy1kly5/Z49g',
        soastaUrl: 'https://appctest-2.appcelerator.com/concerto',
        entitlements: 
         { id: '54d8e47cce78815d81104cb1',
           name: 'Developer',
           partners: [ 'acs', 'analytics' ],
           supportLink: 'https://community.appcelerator.com',
           users: { min: 1, max: 1 },
           testingDevices: { min: 0, max: 0 },
           allowProduction: false,
           arrowPublish: true,
           nativeSDK: false,
           insights: false,
           apiRateMonthPerSeat: 100000,
           apiRateMinute: 10,
           pushRateMinute: 10,
           storageGBRateMonth: 1,
           eventRateMonthPerSeat: 100000,
           daysDataRetained: 7,
           maxOrganizations: 1,
           dateRangeLimit: 7,
           dateRangeCustom: true,
           exportMetrics: false,
           exportAcs: false,
           paid: false,
           containerPointsPerSeat: 1 } }
      loading org list...
      setting org: undefined
      "/usr/local/bin/node" "/Users/dpfeiffer/.appcelerator/install/0.2.276/package/node_modules/arrow/node_modules/acs/bin/acs" login --no-banner --host https://admin.cloudapp-enterprise.appcelerator.com "dpfeiffer@ionagroup.com" "**********"
      |
      ERROR  | Error: [ERROR] Invalid Appcelerator 360 Login Credentials. Check your username and password and try again. 
          at /Users/dpfeiffer/.appcelerator/install/0.2.276/package/lib/commands/login.js:243:21
          at ChildProcess.exithandler (child_process.js:652:7)
          at ChildProcess.emit (events.js:98:17)
          at maybeClose (child_process.js:756:16)
          at Socket.<anonymous> (child_process.js:969:11)
          at Socket.emit (events.js:95:17)
          at Pipe.close (net.js:465:12)
      dpfeiffer:~ dpfeiffer$ 
      

      user/organizations response:

      {
      success: true,
      result: [
      {
      org_id: 100005581,
      name: "Float Mobile Learning",
      _id: "55305d4b1874fb8761bb7f8c",
      guid: "a0b31d6f-e0d9-40eb-b9da-dee92c685873",
      user_count: 1,
      current_users_role: "admin",
      is_node_acs_admin: true,
      created: "2015-04-17T01:09:31.925Z",
      reseller: false,
      active: true,
      parent_org_guid: "null",
      package: "free",
      envs: [
      {
      _id: "production",
      name: "production",
      isProduction: true,
      acsBaseUrl: "https://api.cloud.appcelerator.com",
      acsAuthBaseUrl: "https://secure-identity.cloud.appcelerator.com",
      nodeACSEndpoint: "https://admin.cloudapp-enterprise.appcelerator.com"
      },
      {
      _id: "development",
      name: "development",
      isProduction: false,
      acsBaseUrl: "https://api.cloud.appcelerator.com",
      acsAuthBaseUrl: "https://secure-identity.cloud.appcelerator.com",
      nodeACSEndpoint: "https://admin.cloudapp-enterprise.appcelerator.com"
      }
      ]
      }
      ]
      }
      

        Attachments

          Activity

            People

            • Assignee:
              mdadu Muhammad Dadu (Inactive)
              Reporter:
              pclark Patrick Clark
              Reviewer:
              Praveen Innamuri (Inactive)
            • Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code