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

Packaging ends with stack trace if offline or on bad connection

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Invalid
    • Affects Version/s: Release 5.1.0, Release 5.2.0
    • Fix Version/s: None
    • Component/s: Verification
    • Labels:
    • Severity:
      Major

      Description

      When you build for App Store and you are offline or on a bad connection, the build will succeed (if your session is new enough I guess) and open Xcode, but end with a long stack trace.

      I'd expect this to fail silently if it's not important (e.g. analytics), display a nice message if it is or even block the build from finishing if it's crucial.

      [INFO]  Packaging for App Store distribution
      [INFO]  Archiving app bundle: /Users/fokkezb/Library/Developer/Xcode/Archives/2016-03-08/MrMovie_11-47-53.xcarchive/Products/Applications/MrMovie.app
      [INFO]  Archiving debug symbols: /Users/fokkezb/Library/Developer/Xcode/Archives/2016-03-08/MrMovie_11-47-53.xcarchive/dSYMs/MrMovie.app.dSYM
      [INFO]  Launching Xcode: /Applications/Xcode.app
      [INFO]  Packaging complete
      [ERROR] Error: getaddrinfo ENOTFOUND platform.appcelerator.com platform.appcelerator.com:443
          at errnoException (dns.js:26:10)
          at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:77:26)
      ---------------------------------------------
          at TLSSocket.Readable.on (_stream_readable.js:666:33)
          at tickOnSocket (_http_client.js:492:10)
          at onSocketNT (_http_client.js:508:5)
          at nextTickCallbackWith2Args (node.js:474:9)
          at process._tickDomainCallback (node.js:429:17)
      ---------------------------------------------
          at ClientRequest.onSocket (_http_client.js:500:11)
          at Agent.addRequest (_http_agent.js:141:9)
          at new ClientRequest (_http_client.js:137:16)
          at Object.exports.request (http.js:31:10)
          at Object.exports.request (https.js:181:15)
          at Request.start (/Users/fokkezb/.appcelerator/install/5.1.0/package/node_modules/request/request.js:793:30)
          at Request.end (/Users/fokkezb/.appcelerator/install/5.1.0/package/node_modules/request/request.js:1400:10)
          at end (/Users/fokkezb/.appcelerator/install/5.1.0/package/node_modules/request/request.js:564:14)
          at Immediate.<anonymous> (/Users/fokkezb/.appcelerator/install/5.1.0/package/node_modules/request/request.js:578:7)
      ---------------------------------------------
          at Request.init (/Users/fokkezb/.appcelerator/install/5.1.0/package/node_modules/request/request.js:526:3)
          at new Request (/Users/fokkezb/.appcelerator/install/5.1.0/package/node_modules/request/request.js:140:8)
          at request (/Users/fokkezb/.appcelerator/install/5.1.0/package/node_modules/request/index.js:55:10)
          at Function.get (/Users/fokkezb/.appcelerator/install/5.1.0/package/node_modules/request/index.js:63:12)
          at _createRequest (/Users/fokkezb/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/appc-platform-sdk/lib/index.js:382:39)
          at Function.AppC.createRequest (/Users/fokkezb/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/appc-platform-sdk/lib/index.js:340:9)
          at /Users/fokkezb/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/appc-platform-sdk/lib/auth.js:234:8
          at /Users/fokkezb/.appcelerator/install/5.1.0/package/node_modules/async/lib/async.js:251:17
          at /Users/fokkezb/.appcelerator/install/5.1.0/package/node_modules/async/lib/async.js:154:25
      ---------------------------------------------
          at /Users/fokkezb/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:275:35
          at /Users/fokkezb/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:44:16
          at /Users/fokkezb/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:694:17
          at /Users/fokkezb/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:173:37
          at /Users/fokkezb/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/lib/hook.js:239:9
          at cli.addHook.post (/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.2.0.GA/iphone/cli/hooks/run.js:20:47)
          at /Users/fokkezb/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/lib/hook.js:235:13
          at /Users/fokkezb/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:689:13
          at iterate (/Users/fokkezb/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:265:13)
      ---------------------------------------------
          at Object.exports.execFile (child_process.js:296:9)
          at exports.exec (child_process.js:111:18)
          at /Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.2.0.GA/iphone/cli/hooks/package.js:172:8
          at ChildProcess.exithandler (child_process.js:204:7)
          at emitTwo (events.js:100:13)
          at ChildProcess.emit (events.js:185:7)
          at maybeClose (internal/child_process.js:821:16)
          at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
      ---------------------------------------------
          at Object.exports.execFile (child_process.js:296:9)
          at exports.exec (child_process.js:111:18)
          at /Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.2.0.GA/iphone/cli/hooks/package.js:170:7
          at /Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.2.0.GA/node_modules/async/lib/async.js:721:13
          at /Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.2.0.GA/node_modules/async/lib/async.js:52:16
          at done (/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.2.0.GA/node_modules/async/lib/async.js:246:17)
          at /Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.2.0.GA/node_modules/async/lib/async.js:44:16
          at /Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.2.0.GA/node_modules/async/lib/async.js:718:17
          at /Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.2.0.GA/node_modules/async/lib/async.js:167:37
      ---------------------------------------------
          at Object.run (/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.2.0.GA/node_modules/node-appc/lib/subprocess.js:59:8)
          at archiveApplication (/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.2.0.GA/iphone/cli/hooks/package.js:70:24)
          at /Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.2.0.GA/node_modules/async/lib/async.js:713:13
          at async.forEachOf.async.eachOf (/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.2.0.GA/node_modules/async/lib/async.js:233:13)
          at _parallel (/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.2.0.GA/node_modules/async/lib/async.js:712:9)
          at Object.async.parallel (/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.2.0.GA/node_modules/async/lib/async.js:726:9)
          at cli.addHook.post (/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.2.0.GA/iphone/cli/hooks/package.js:67:12)
          at /Users/fokkezb/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/lib/hook.js:235:13
          at /Users/fokkezb/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:689:13
      ---------------------------------------------
          at /Users/fokkezb/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:275:35
          at /Users/fokkezb/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:44:16
          at /Users/fokkezb/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:694:17
          at /Users/fokkezb/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:173:37
          at /Users/fokkezb/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/lib/hook.js:239:9
          at cli.addHook.post (/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.2.0.GA/iphone/cli/hooks/install.js:22:45)
          at /Users/fokkezb/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/lib/hook.js:235:13
          at /Users/fokkezb/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:689:13
          at iterate (/Users/fokkezb/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:265:13)
      ---------------------------------------------
          at Domain.<anonymous> (/Applications/Appcelerator Studio/plugins/com.appcelerator.titanium.liveview.core_1.1.0.1445037865/node_modules/liveview/hook/lvhook.js:142:6)
          at Domain.run (domain.js:228:14)
          at /Applications/Appcelerator Studio/plugins/com.appcelerator.titanium.liveview.core_1.1.0.1445037865/node_modules/liveview/hook/lvhook.js:136:10
          at /Users/fokkezb/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/lib/hook.js:235:13
          at /Users/fokkezb/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:689:13
          at iterate (/Users/fokkezb/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:265:13)
          at async.forEachOfSeries.async.eachOfSeries (/Users/fokkezb/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:284:9)
          at _parallel (/Users/fokkezb/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:688:9)
          at Object.async.series (/Users/fokkezb/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:710:9)
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              fokkezb Fokke Zandbergen
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code