{ "id": "172603", "key": "TIMOB-26551", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "19882", "name": "Release 8.0.0", "archived": false, "released": true, "releaseDate": "2019-03-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-11-13T15:00:28.000+0000", "created": "2018-11-13T13:19:02.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "20238", "description": "", "name": "Release 7.5.0", "archived": false, "released": true, "releaseDate": "2018-11-15" } ], "issuelinks": [ { "id": "56990", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "inwardIssue": { "id": "172442", "key": "TIMOB-26462", "fields": { "summary": "iOS: Build throws unhelpful error when connecting to log server if localhost does not resolve", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "updated": "2018-11-26T21:42:27.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "13103", "name": "CLI", "description": "Node-based command line interface" }, { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h5.Description\r\n\r\nWhen 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\r\n\r\n{code}\r\n\r\n/Users/eharris/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20181109074008/iphone/cli/commands/_build.js:2506\r\n if (error.code === 'ENOTFOUND') {\r\n ^\r\nTypeError: Cannot read property 'code' of undefined\r\n at Socket.die (/Users/eharris/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20181109074008/iphone/cli/commands/_build.js:2506:15)\r\n{code}\r\n\r\nh5.Steps to reproduce\r\n\r\n1. Reduce the logserver wait time using {{appc ti config ios.logServerTestTimeout 1}}\r\n2. Build an iOS app for simulator or device\r\n\r\nh5.Actual\r\n\r\nError thrown like the above\r\n\r\nh5.Expected\r\n\r\nError thrown should inform the user the real reason it errored ", "attachment": [], "flagged": false, "summary": "iOS: \"Cannot read property 'code' of undefined\" error thrown if log server connection times out", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "SDK: 7.5.0.v20181113025658, 8.0.0.v20181113023400", "closedSprints": [ { "id": 1093, "state": "closed", "name": "2018 Sprint 23", "startDate": "2018-11-04T23:35:52.006Z", "endDate": "2018-11-18T23:35:00.000Z", "completeDate": "2018-11-19T05:30:34.338Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "443520", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "https://github.com/appcelerator/titanium_mobile/pull/10459", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2018-11-13T15:00:18.000+0000", "updated": "2018-11-13T15:00:18.000+0000" }, { "id": "443805", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket* Verified fix in SDK Version {{8.0.0.v20181120024406}} Above error is no longer seen when using the steps mentioned in the comments (also checked while app was running).", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-11-21T10:52:28.000+0000", "updated": "2018-11-21T10:52:28.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }