socket.io-titanium icon indicating copy to clipboard operation
socket.io-titanium copied to clipboard

StreamException

Open micheltlutz opened this issue 12 years ago • 4 comments
trafficstars

An 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:

StreamException. Stream is not writable in -TiStreamProxy write: Feb 21 15:36:58 iPhone-Michel catacao[13898] <Warning>: [ERROR] Script Error = StreamException. Stream is not writable in -TiStreamProxy write: at ti-websocket-client.js (line 1).

Is there any procedure to be done or the error occurs due to bug?

code:

var io = require('socket.io-titanium'); var socket = io.connect('http://....'); //socket.send('hello world!!'); socket.on('news', function (message){}); var data = { "room" : 1, "message": 'mobitxt' }; Ti.API.info('---> datadd' + data); socket.emit('emit',data);

foto

micheltlutz avatar Feb 21 '13 18:02 micheltlutz

LOG console device: ��Mar 5 11:50:57 iPhone-Michel profiled[36346] <Notice>: (Note ) profiled: Service starting... ��Mar 5 11:50:57 iPhone-Michel profiled[36346] <Notice>: (Note ) profiled: Recomputing passcode requirement message ��Mar 5 11:50:58 iPhone-Michel catacao[36316] <Warning>: [ERROR] StreamException. Stream is not writable in -TiStreamProxy write: ��Mar 5 11:50:58 iPhone-Michel catacao[36316] <Warning>: 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."} ��Mar 5 11:50:58 iPhone-Michel catacao[36316] <Warning>: [ERROR] Script Error = StreamException. Stream is not writable in -TiStreamProxy write: at ti-websocket-client.js (line 1). ��Mar 5 11:50:58 iPhone-Michel catacao[36316] <Warning>: [ERROR] Attempt to close in invalid state: 16. in -TiNetworkSocketTCPProxy close: ��Mar 5 11:51:43 iPhone-Michel backboardd[26] <Notice>: ALS: SetDisplayFactor: factor=0.0500 ��Mar 5 11:51:57 iPhone-Michel profiled[36346] <Notice>: (Note ) profiled: Idled. ��Mar 5 11:51:57 iPhone-Michel profiled[36346] <Notice>: (Note ) profiled: Service stopping.

micheltlutz avatar Mar 05 '13 14:03 micheltlutz

umm...

nowelium avatar Mar 05 '13 15:03 nowelium

bump ... I have the same issue

stongo avatar Jun 19 '13 18:06 stongo

Any new on this?

nubu avatar Jun 10 '14 12:06 nubu