Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-26551

iOS: "Cannot read property 'code' of undefined" error thrown if log server connection times out

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Fixed
    • Affects Version/s: Release 7.5.0
    • Fix Version/s: Release 8.0.0
    • Component/s: CLI, iOS
    • Labels:
      None
    • Environment:

      SDK: 7.5.0.v20181113025658, 8.0.0.v20181113023400

    • Story Points:
      1
    • Sprint:
      2018 Sprint 23

      Description

      Description

      When checking the log server connection in the iOS build if the check times out then the following error is thrown. I'm unsure as to the actual reasons for why I ran into this, but you can easily reproduce by reducing the logserver wait time

       
      /Users/eharris/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20181109074008/iphone/cli/commands/_build.js:2506
                                      if (error.code === 'ENOTFOUND') {
                    ^
      TypeError: Cannot read property 'code' of undefined
          at Socket.die (/Users/eharris/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20181109074008/iphone/cli/commands/_build.js:2506:15)
      

      Steps to reproduce

      1. Reduce the logserver wait time using appc ti config ios.logServerTestTimeout 1
      2. Build an iOS app for simulator or device

      Actual

      Error thrown like the above

      Expected

      Error thrown should inform the user the real reason it errored

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                eharris Ewan Harris
                Reporter:
                eharris Ewan Harris
                Reviewer:
                Christopher Williams
                Tester:
                Samir Mohammed
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-6700
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code