{ "id": "167186", "key": "TIMOB-24615", "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": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-05-03T01:49:04.000+0000", "created": "2017-04-19T09:48:27.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "httpclient", "responseText", "windows" ], "versions": [ { "id": "19333", "description": "Patch release for important items that did not make it into 6.0.3", "name": "Release 6.0.4", "archived": false, "released": true, "releaseDate": "2017-04-27" } ], "issuelinks": [], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-05-05T19:05:58.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "I use the HTTPClient to do a service request.\r\nDoing simultaneous http request , the responseText holds values of the first request.\r\nAs a result the values gets duplicated.\r\nBelow is the code.\r\n\r\n{code:javascript}\r\nvar count =0;\r\n var client = Ti.Network.createHTTPClient();\r\n client.onerror = function(e){\r\n \r\n };\r\n client.onload = function(e){\r\n count = count + 1;\r\n console.log(\"Server executed \" + count + \" time(s)\");\r\n console.log(client.responseText);\r\n if(count != 2){\r\n client.open(\"GET\", \"https://httpbin.org/get\");\r\n client.send();\r\n }\r\n };\r\n client.setTimeout(60000);\r\n client.validatesSecureCertificate = false;\r\n client.open(\"GET\", \"https://httpbin.org/get\");\r\n client.send();\r\n{code}\r\n\r\nThe response of the above as below\r\n----\r\n[INFO] : Server executed 1 time(s)\r\n[INFO] : {\r\n[INFO] : \"args\": {}, \r\n[INFO] : \"headers\": {\r\n[INFO] : \"Accept-Encoding\": \"gzip, deflate\", \r\n[INFO] : \"Connection\": \"close\", \r\n[INFO] : \"Host\": \"httpbin.org\", \r\n[INFO] : \"User-Agent\": \"Appcelerator Titanium/6.0.3.GA (Microsoft Virtual/6.3.9651.0; windowsphone; English_United States.1252;)\", \r\n[INFO] : \"X-Titanium-Id\": \"49c36bc6-4470-4689-9111-a81411c54643\"\r\n[INFO] : }, \r\n[INFO] : \"origin\": \"182.75.8.94\", \r\n[INFO] : \"url\": \"https://httpbin.org/get\"\r\n[INFO] : }\r\n\r\n[INFO] : Server executed 2 time(s)\r\n[INFO] : {\r\n[INFO] : \"args\": {}, \r\n[INFO] : \"headers\": {\r\n[INFO] : \"Accept-Encoding\": \"gzip, deflate\", \r\n[INFO] : \"Connection\": \"close\", \r\n[INFO] : \"Host\": \"httpbin.org\", \r\n[INFO] : \"User-Agent\": \"Appcelerator Titanium/6.0.3.GA (Microsoft Virtual/6.3.9651.0; windowsphone; English_United States.1252;)\", \r\n[INFO] : \"X-Titanium-Id\": \"49c36bc6-4470-4689-9111-a81411c54643\"\r\n[INFO] : }, \r\n[INFO] : \"origin\": \"182.75.8.94\", \r\n[INFO] : \"url\": \"https://httpbin.org/get\"\r\n[INFO] : }\r\n[INFO] : {\r\n[INFO] : \"args\": {}, \r\n[INFO] : \"headers\": {\r\n[INFO] : \"Accept-Encoding\": \"gzip, deflate\", \r\n[INFO] : \"Connection\": \"close\", \r\n[INFO] : \"Host\": \"httpbin.org\", \r\n[INFO] : \"User-Agent\": \"Appcelerator Titanium/6.0.3.GA (Microsoft Virtual/6.3.9651.0; windowsphone; English_United States.1252;)\", \r\n[INFO] : \"X-Titanium-Id\": \"49c36bc6-4470-4689-9111-a81411c54643\"\r\n[INFO] : }, \r\n[INFO] : \"origin\": \"182.75.8.94\", \r\n[INFO] : \"url\": \"https://httpbin.org/get\"\r\n[INFO] : }\r\n\r\n\r\nPlease let me know if you need more information.\r\n", "attachment": [], "flagged": false, "summary": "Windows -HTTPClient - responseText is not cleared between two requests", "creator": { "name": "jsubramanian", "key": "jsubramanian", "displayName": "JSubramanian", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "jsubramanian", "key": "jsubramanian", "displayName": "JSubramanian", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "Operating System\r\n Name = Microsoft Windows 8.1 Pro\r\n Version = 6.3.9600\r\n Architecture = 32bit\r\n # CPUs = 4\r\n Memory = 12743438336\r\nNode.js\r\n Node.js Version = 4.6.0\r\n npm Version = 2.15.9\r\nTitanium CLI\r\n CLI Version = 5.0.11\r\nTitanium SDK\r\n SDK Version = 6.0.3.GA\r\n SDK Path = C:\\ProgramData\\Titanium\\mobilesdk\\win32\\6.0.3.GA\r\n Target Platform = windows\r\n Appcelerator Studio =4.8.1", "closedSprints": [ { "id": 883, "state": "closed", "name": "2017 Sprint 09 SDK", "startDate": "2017-04-23T21:46:54.309Z", "endDate": "2017-05-07T21:46:00.000Z", "completeDate": "2017-05-08T00:25:44.276Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "417789", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~sdarda] Hey, I Can verify that duplicated values are being returned. ", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-04-20T17:34:28.000+0000", "updated": "2017-04-20T17:34:28.000+0000" }, { "id": "417843", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hey [~sdarda], the environment details are listed below and I ran the test case above using {{appc ti build -p windows -T ws-local}} in the CLI. \r\n*Environment*\r\n{code:java}\r\nAPPC CLI: 6.2.0\r\nSDK Version = 6.0.3.GA\r\nOperating System:\r\nName = Microsoft Windows 10 Pro\r\nVersion = 10.0.14393\r\nArchitecture = 32bit\r\nCPUs = 4\r\nMemory = 17034395648\r\nNode.js:\r\nNode.js Version = 6.10.1\r\n{code}\r\n\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-04-21T16:18:13.000+0000", "updated": "2017-04-21T16:18:13.000+0000" }, { "id": "418546", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/985", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-05-02T02:03:10.000+0000", "updated": "2017-05-02T02:03:10.000+0000" }, { "id": "419226", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fix in 6.2.0.v20170505081953 and 6.1.0.v20170504175418\r\nTest and other information can be found at:\r\n6_1_X: https://github.com/appcelerator/titanium_mobile_windows/pull/986\r\nMaster:https://github.com/appcelerator/titanium_mobile_windows/pull/985", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-05T19:05:32.000+0000", "updated": "2017-05-05T19:05:32.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }