{ "id": "174741", "key": "TIMOB-27767", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": "20950", "name": "Release 9.1.0", "archived": false, "released": true, "releaseDate": "2020-08-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2020-07-29T21:17:21.000+0000", "created": "2020-02-14T15:25:12.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "easy-fix", "httpclient", "parity" ], "versions": [ { "id": "20033", "name": "Release 9.0.0", "archived": false, "released": true, "releaseDate": "2020-03-18" }, { "id": "20972", "description": "", "name": "Release 8.3.1", "archived": false, "released": true, "releaseDate": "2020-01-17" } ], "issuelinks": [], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-07-29T21:17:21.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "When httpClient is initiated with an invalid URL it currently fails silently. Instead, the behavior should be the same as on Android (call the error callback)\r\n\r\nCurrently, a workaround is to check the URL property is set to {{null}} after calling send\r\n\r\n*Expected Result*\r\nInstead, on iOS, error callback should be triggered the same way it is triggered on Android when an invalid URL is provided.\r\n\r\n*Test Code*\r\n{code:js}\r\nconst url = \"https://www.google .com/\";\r\n// above url have space after keyword google\r\nconst client = Ti.Network.createHTTPClient({\r\n onload: function(e) {\r\n console.log(\"success\");\r\n },\r\n\r\n onerror: function(e) {\r\n console.error(e.error);\r\n },\r\n});\r\nclient.open(\"GET\", url);\r\nclient.send();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Parity: httpClient should trigger error callback when url is invalid", "creator": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "closedSprints": [ { "id": 1199, "state": "closed", "name": "2020 Sprint 13", "startDate": "2020-06-19T16:41:04.099Z", "endDate": "2020-07-02T16:41:00.000Z", "completeDate": "2020-07-02T15:37:12.455Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "454316", "author": { "name": "shishir.roy", "key": "shishir.roy", "displayName": "shishir.roy", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Please provide the update on this inquiry", "updateAuthor": { "name": "shishir.roy", "key": "shishir.roy", "displayName": "shishir.roy", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-02-18T15:22:54.000+0000", "updated": "2020-02-18T15:22:54.000+0000" }, { "id": "454317", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~shishir.roy] This is an improvement ticket, not a bugfix. It will be scheduled and released in a future update, sooner rather than later, but no promises can be made. Use the workaround provided in the ticket you raised as a solution, not a temporary fix.", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2020-02-18T15:39:20.000+0000", "updated": "2020-02-18T15:39:20.000+0000" }, { "id": "454518", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (titanium sdk) - https://github.com/appcelerator/titanium_mobile/pull/11513\r\nPR (APSHTTPClient) - https://github.com/appcelerator/APSHTTPClient/pull/50\r\nPR (aps_sdk) - https://github.com/appcelerator/aps_sdk/pull/341", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-03-03T19:14:48.000+0000", "updated": "2020-03-03T19:14:48.000+0000" }, { "id": "456015", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-07-07T16:08:42.000+0000", "updated": "2020-07-07T16:08:42.000+0000" }, { "id": "456274", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified on:\r\nMac OS: 10.15.4\r\nSDK: 9.1.0.v20200727104531\r\nAppc CLI: 8.1.0-master.7\r\nJDK: 11.0.4\r\nNode: 10.17.0\r\nStudio: 6.0.0.202005141803\r\nXcode: 12.0 beta\r\nDevice: iOS simulator 14.0 beta, 13.5", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-07-29T21:17:21.000+0000", "updated": "2020-07-29T21:17:21.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }