{ "id": "110627", "key": "AC-2110", "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": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2013-03-06T20:54:31.000+0000", "created": "2013-03-05T15:05:34.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:41:05.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": [], "description": "h3. Steps to Reproduce\r\nIs a photo taken with the application uploading is done p and the following code is executed\r\n\r\nvar io = require('socket.io-titanium');\r\nvar socket = io.connect('http://....');\r\n//socket.send('hello world!!');\r\nsocket.on('news', function (message){});\r\nvar data = {\r\n'room' : 1,\r\n'message': 'mobitxt'\r\n};\r\nTi.API.info('---> datadd' + data);\r\nsocket.emit('emit',data);\r\n\r\naction of the socket is made successfully on site\r\n\r\nThe cell goes into standby mode (unlock) to re-use the phone with the app still open below the error appears. as attached image\r\n\r\nh3. Actual Result\r\nAn error occurs after data transmission, everything is well emit is done successfully, but after a few seconds without activity on the app an error screen appears with the information:\r\n\r\nStreamException. Stream is not writable in -TiStreamProxy write:\r\nFeb 21 15:36:58 iPhone-Michel catacao[13898] : [ERROR] Script Error = StreamException. Stream is not writable in -TiStreamProxy write: at ti-websocket-client.js (line 1).\r\n\r\nConsole log device:\r\n\r\nMar 5 11:50:57 iPhone-Michel profiled[36346] : (Note ) profiled: Service starting...\r\nMar 5 11:50:57 iPhone-Michel profiled[36346] : (Note ) profiled: Recomputing passcode requirement message\r\nMar 5 11:50:58 iPhone-Michel catacao[36316] : [ERROR] StreamException. Stream is not writable in -[TiStreamProxy write:] (TiStreamProxy.m:66)\r\nMar 5 11:50:58 iPhone-Michel catacao[36316] : PBRequester failed with Error Error Domain=NSURLErrorDomain Code=-1001 \"The request timed out.\" UserInfo=0x1d8892d0 {NSErrorFailingURLStringKey=https://gsp10-ssl.apple.com/use, NSErrorFailingURLKey=https://gsp10-ssl.apple.com/use, NSLocalizedDescription=The request timed out., NSUnderlyingError=0x1c51c5d0 \"The request timed out.\"}\r\nMar 5 11:50:58 iPhone-Michel catacao[36316] : [ERROR] Script Error = StreamException. Stream is not writable in -[TiStreamProxy write:] (TiStreamProxy.m:66) at ti-websocket-client.js (line 1).\r\nMar 5 11:50:58 iPhone-Michel catacao[36316] : [ERROR] Attempt to close in invalid state: 16. in -[TiNetworkSocketTCPProxy close:] (TiNetworkSocketTCPProxy.m:380)\r\nMar 5 11:51:43 iPhone-Michel backboardd[26] : ALS: SetDisplayFactor: factor=0.0500\r\nMar 5 11:51:57 iPhone-Michel profiled[36346] : (Note ) profiled: Idled.\r\nMar 5 11:51:57 iPhone-Michel profiled[36346] : (Note ) profiled: Service stopping.\r\n\r\nIs there any procedure to be done or the error occurs due to bug?\r\n\r\ncode:\r\n\r\nvar io = require('socket.io-titanium');\r\nvar socket = io.connect('http://....');\r\n//socket.send('hello world!!');\r\nsocket.on('news', function (message){});\r\nvar data = {\r\n'room' : 1,\r\n'message': 'mobitxt'\r\n};\r\nTi.API.info('---> datadd' + data);\r\nsocket.emit('emit',data);\r\n\r\nh3. Expected Result\r\nno error", "attachment": [ { "id": "35897", "filename": "1c994666-7c56-11e2-8599-58814d22d767.PNG", "author": { "name": "micheltlutz", "key": "micheltlutz", "displayName": "Michel Anderson Lutz", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2013-03-05T15:09:54.000+0000", "size": 86752, "mimeType": "image/png" }, { "id": "35898", "filename": "Captura de Tela 2013-03-05 às 12.10.07.png", "author": { "name": "micheltlutz", "key": "micheltlutz", "displayName": "Michel Anderson Lutz", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2013-03-05T15:10:38.000+0000", "size": 233870, "mimeType": "image/png" } ], "flagged": false, "summary": "StreamException", "creator": { "name": "micheltlutz", "key": "micheltlutz", "displayName": "Michel Anderson Lutz", "active": true, "timeZone": "America/Sao_Paulo" }, "subtasks": [], "reporter": { "name": "micheltlutz", "key": "micheltlutz", "displayName": "Michel Anderson Lutz", "active": true, "timeZone": "America/Sao_Paulo" }, "environment": "Titanium Studio 3.0.1", "comment": { "comments": [ { "id": "240710", "author": { "name": "micheltlutz", "key": "micheltlutz", "displayName": "Michel Anderson Lutz", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "Device Error", "updateAuthor": { "name": "micheltlutz", "key": "micheltlutz", "displayName": "Michel Anderson Lutz", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2013-03-05T15:09:54.000+0000", "updated": "2013-03-05T15:09:54.000+0000" }, { "id": "240711", "author": { "name": "micheltlutz", "key": "micheltlutz", "displayName": "Michel Anderson Lutz", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "console Error", "updateAuthor": { "name": "micheltlutz", "key": "micheltlutz", "displayName": "Michel Anderson Lutz", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2013-03-05T15:10:38.000+0000", "updated": "2013-03-05T15:10:38.000+0000" }, { "id": "241010", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Michel, Would you mind providing a full test case that shows this issue. One that may be pasted into an app.js and reproduces this issue? Once I can reproduce and verify then I can pass along to Engineering. Thank you,\nCarter", "updateAuthor": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-06T20:54:05.000+0000", "updated": "2013-03-06T20:54:05.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }