{ "id": "135930", "key": "AC-740", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2014-12-20T01:04:44.000+0000", "created": "2014-08-31T16:17:23.000+0000", "labels": [ "TCSupportTriage" ], "versions": [], "issuelinks": [ { "id": "42161", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "138101", "key": "TIMOB-17865", "fields": { "summary": "iOS: Ti.Network.createHTTPClient times out on GET request with POST data", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:37:00.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "When executing an https all in 3.3.0 the httpClient returns the following error \"The network connection was lost.\" The exact same code works with Titanium SDK 3.2.2 and earlier. Here is the output from a simple code test.\r\n\r\n[INFO] : 2014-08-31 12:14:40.238 testimage[22981:3903] [ERROR] A SQLite database error occurred on database '/Users/me/Library/Application Support/iPhone Simulator/7.1/Applications/1DB9D52D-F780-4E99-9A35-3D3519BBA396/Library/Application Support/analytics/analytics.db': Error Domain=com.plausiblelabs.pldatabase Code=3 \"An error occured parsing the provided SQL statement.\" UserInfo=0xcd38cd0 {com.plausiblelabs.pldatabase.error.vendor.code=1, NSLocalizedDescription=An error occured parsing the provided SQL statement., com.plausiblelabs.pldatabase.error.query.string=SELECT data FROM pending_events ORDER BY ID DESC, com.plausiblelabs.pldatabase.error.vendor.string=no such column: ID} (SQLite #1: no such column: ID) (query: 'SELECT data FROM pending_events ORDER BY ID DESC')\r\n[INFO] : There was an error\r\n[INFO] : {\"type\":\"error\",\"source\":{\"method\":\"GET\",\"timeout\":15000,\"url\":\"https://www.mydomain.com/test.php\"},\"code\":-1005,\"error\":\"The network connection was lost.\",\"success\":false}\r\n", "attachment": [], "flagged": false, "summary": "createHTTPClient Fails with SDK 3.3.0", "creator": { "name": "jechilds", "key": "jechilds", "displayName": "James Childs", "active": true, "timeZone": "America/Havana" }, "subtasks": [], "reporter": { "name": "jechilds", "key": "jechilds", "displayName": "James Childs", "active": true, "timeZone": "America/Havana" }, "environment": "IOS MAC 10.9.4, Titanium Studion, IOS Simulator", "comment": { "comments": [ { "id": "321169", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Hi,\r\n\r\nCan you provide us your test case please, that will be helpful to address your problem.\r\n\r\nRegards,\r\nShuo", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-09-01T02:07:55.000+0000", "updated": "2014-09-01T02:07:55.000+0000" }, { "id": "321205", "author": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\n\r\nWe have tested this issue. But we can not reproduce this issue as a bug, createHttpCient request works as expected on a sample test case. \r\n\r\nh3.Testing Environment: \r\nTitanium SDK: 3.3.0.GA\r\nTitanium CLI: 3.3.0,\r\nAndroid SDK: 4.2.2,4.4.2\r\niOS: 7.1,\r\nOS X Version: 10.9.4,\r\nAppcelerator Studio: 3.3.0\r\n\r\nh3.Steps to Test:\r\n1. Create classic project.\r\n3. Paste this file in app.js file.\r\n3. Run this code with the testing environment.\r\n\r\nh3.Test Case\r\n{code:title=app.js}\r\nvar url = \"http://www.appcelerator.com\";\r\nvar client = Ti.Network.createHTTPClient({\r\n\t// function called when the response data is available\r\n\tonload : function(e) {\r\n\t\tTi.API.info(\"Received text: \" + this.responseText);\r\n\t\talert('success');\r\n\t},\r\n\t// function called when an error occurs, including a timeout\r\n\tonerror : function(e) {\r\n\t\tTi.API.debug(e.error);\r\n\t\talert('error');\r\n\t},\r\n\ttimeout : 5000 // in milliseconds\r\n});\r\n// Prepare the connection.\r\nclient.open(\"GET\", url);\r\n// Send the request.\r\nclient.send(); \r\n{code}\r\n\r\nThanks.", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-09-01T08:50:07.000+0000", "updated": "2014-12-20T01:04:37.000+0000" }, { "id": "321218", "author": { "name": "jechilds", "key": "jechilds", "displayName": "James Childs", "active": true, "timeZone": "America/Havana" }, "body": "Here is a sample ApplicationWindow program.\r\n\r\nfunction ApplicationWindow() {\r\n\t\t\r\n\t//create component instance\r\n\tvar self = Ti.UI.createWindow({\r\n\t\tbackgroundColor:'#ffffff'\r\n\t});\r\n\t\t\r\n\tcallparams = {\r\n\t\t'function': 'connection_test',\r\n\t\ttype: 'json'\r\n\t};\r\n\r\n\tvar lbl = Titanium.UI.createLabel({\r\n\t\twidth:200,\r\n\t\theight:Titanium.UI.SIZE,\r\n\t\tcolor:'#ffffff',backgroundColor:'#000',\r\n\t\ttext:'testing'\r\n\t});\r\n\tself.add(lbl);\r\n\t\r\n\tvar xhr = Titanium.Network.createHTTPClient({\r\n\t\ttimeout:15000,\r\n\t\tonerror: function(e){\r\n\t\t\t\t\tTi.API.info('There was an error');\r\n\t\t\t\t\tTi.API.info(JSON.stringify(e));\r\n\t\t\t\t\tif (Titanium.Network.online) {\r\n\t\t\t\t\t\tlbl.text = this.text;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tlbl.text = 'No network connectivity';\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\tonload:function(){\r\n\t\t\t\t\tTi.API.info('Results: '+this.responseText);\r\n\t\t\t\t\tlbl.text = this.responseText;\r\n\t\t\t\t}\r\n\t});\r\n\txhr.open(\"GET\",\"https://www.leverageapplications.com/mu/services/estep_app.php\");\r\n\txhr.send(callparams);\r\n\t\r\n\treturn self;\r\n}\r\n\r\n//make constructor function the public component interface\r\nmodule.exports = ApplicationWindow;\r\n", "updateAuthor": { "name": "jechilds", "key": "jechilds", "displayName": "James Childs", "active": true, "timeZone": "America/Havana" }, "created": "2014-09-01T11:37:50.000+0000", "updated": "2014-09-01T11:37:50.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }