{ "id": "174876", "key": "AC-6517", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2020-07-20T14:16:02.000+0000", "created": "2020-04-02T13:18:40.000+0000", "labels": [], "versions": [], "issuelinks": [ { "id": "58567", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "175155", "key": "AC-6561", "fields": { "summary": "Ti.Platform.openURL causes \"undefined is not an object\" error", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "58568", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "174800", "key": "TIMOB-27846", "fields": { "summary": "iOS: Calling Ti.Platform.openURL without all parameters causes the app to crash (regression)", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-07-20T14:16:03.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "When using e.g: Ti.Platform.openURL(\"https://google.com\");\r\n\r\nit throws an error;\r\n{code}\r\n[ERROR] : Script Error {\r\n[ERROR] : toJSON = \"\";\r\n[ERROR] : }\r\n{code}\r\nit spams the log. Anyone that knows why or how to solve it?", "attachment": [], "flagged": false, "summary": "Ti.Platform.openURL throws ERROR (SDK 9.0)", "creator": { "name": "oakleaf", "key": "oakleaf", "displayName": "Mathias Eklöf", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "oakleaf", "key": "oakleaf", "displayName": "Mathias Eklöf", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Latest Ti SDK 9.0, latest MacOS, trying on my Device (iPhone XS Max)", "closedSprints": [ { "id": 1201, "state": "closed", "name": "2020 Sprint 14", "startDate": "2020-07-06T15:40:00.000Z", "endDate": "2020-07-17T15:40:00.000Z", "completeDate": "2020-07-20T22:16:28.367Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "454964", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "I tried to reproduce using SDK 9.0.0.GA and it works fine for me. Does it work for you in a new empty application?", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2020-04-03T14:24:43.000+0000", "updated": "2020-04-03T14:24:43.000+0000" }, { "id": "454968", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~oakleaf], odds are the issue is coming from one of your event listeners.\r\n\r\nUnfortunately, since you have the newest Xcode 11.4 installed, Titanium is failing to acquire a stacktrace. That's why you're seeing a {{toJSON}} error instead. We're looking into resolve this in the near future.\r\n\r\nFor now, trying building/running it for Android instead to isolate the issue.\r\n", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-04-03T20:02:02.000+0000", "updated": "2020-04-03T20:02:02.000+0000" }, { "id": "454969", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Ticket for better stack traces in Xcode 11.4: TIMOB-27827", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2020-04-03T21:58:05.000+0000", "updated": "2020-04-03T21:58:05.000+0000" }, { "id": "455776", "author": { "name": "jonasfunk", "key": "jonasfunk", "displayName": "Jonas Funk Johannessen", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~oakleaf] I've seen this as well. This error will show if you do not provide the optional callback parameter. So you have to do something like this: {{Ti.Platform.openURL(url, null, ()=>{});}}", "updateAuthor": { "name": "jonasfunk", "key": "jonasfunk", "displayName": "Jonas Funk Johannessen", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-06-12T11:24:52.000+0000", "updated": "2020-06-12T11:24:52.000+0000" }, { "id": "456173", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Resolved as duplicate of linked ticket. Fix was just pushed to master/9_1_X/9_3_X. Release 9.1.0 will contain it. (or if you really need the fix and don't want to use the empty function callback workaround, you should be able to install a new 9_0_X branch build via {{ti sdk install -b. 9_0_X}} in about an hour once the build goes out)", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2020-07-20T14:16:03.000+0000", "updated": "2020-07-20T14:16:03.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }