Hi Guys,
When I updated the socket_io_client library from 0.9 to 1.0.2, I am getting this format exception error without any clear message:
LOG BEGIN:
VERBOSE-2:ui_dart_state.cc(198)] Unhandled Exception: FormatException: {
#0 num.parse (dart:core/num.dart:576:26)
#1 Decoder.decodeString
package:socket_io_common/…/parser/parser.dart:193
#2 Decoder.add
package:socket_io_common/…/parser/parser.dart:148
#3 Manager.ondata
package:socket_io_client/src/manager.dart:274
#4 EventEmitter.emit.<anonymous closure>
package:socket_io_common/…/util/event_emitter.dart:51
#5 List.forEach (dart:core-patch/growable_array.dart:416:8)
#6 EventEmitter.emit
package:socket_io_common/…/util/event_emitter.dart:50
#7 Socket.onPacket
package:socket_io_client/…/engine/socket.dart:462
#8 Socket.setTransport.<anonymous closure>
package:socket_io_client/…/engine/socket.dart:287
#9 EventEmitter.emit.<anonymous closure>
package:socket_io_common/…/util/event_emitter.dart:51
#10 List.forEach (dart:core-patch/growable_array.dart:416:8)
#11 EventEmitter.emit
package:socket_io_common/…/util/event_emitter.dart:50
#12 Transport.onPacket
package:socket_io_client/…/transport/transport.dart:128
#13 Transport.onData
package:socket_io_client/…/transport/transport.dart:122
#14 IOWebSocketTransport.addEventListeners.<anonymous closure>
package:socket_io_client/…/transport/io_websocket_transport.dart:67
#15 _rootRunUnary (dart:async/zone.dart:1434:47)
#16 _CustomZone.runUnary (dart:async/zone.dart:1335:19)
#17 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1244:7)
#18 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:341:11)
#19 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7)
#20 _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:774:19)
#21 _StreamController._add (dart:async/stream_controller.dart:648:7)
#22 _StreamController.add (dart:async/stream_controller.dart:596:5)
#23 new _WebSocketImpl._fromSocket.<anonymous closure> (dart:_http/websocket_impl.dart:1144:21)
#24 _rootRunUnary (dart:async/zone.dart:1434:47)
#25 _CustomZone.runUnary (dart:async/zone.dart:1335:19)
#26 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1244:7)
#27 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:341:11)
#28 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7)
#29 _SinkTransformerStreamSubscription._add (dart:async/stream_transformers.dart:63:11)
#30 _EventSinkWrapper.add (dart:async/stream_transformers.dart:13:11)
#31 _WebSocketProtocolTransformer._messageFrameEnd (dart:_http/websocket_impl.dart:332:23)
#32 _WebSocketProtocolTransformer.add (dart:_http/websocket_impl.dart:226:46)
#33 _SinkTransformerStreamSubscription._handleData (dart:async/stream_transformers.dart:111:24)
#34 _rootRunUnary (dart:async/zone.dart:1434:47)
#35 _CustomZone.runUnary (dart:async/zone.dart:1335:19)
#36 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1244:7)
#37 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:341:11)
#38 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7)
#39 _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:774:19)
#40 _StreamController._add (dart:async/stream_controller.dart:648:7)
#41 _StreamController.add (dart:async/stream_controller.dart:596:5)
#42 _Socket._onData (dart:io-patch/socket_patch.dart:2314:41)
#43 _rootRunUnary (dart:async/zone.dart:1434:47)
#44 _CustomZone.runUnary (dart:async/zone.dart:1335:19)
#45 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1244:7)
#46 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:341:11)
#47 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7)
#48 _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:774:19)
#49 _StreamController._add (dart:async/stream_controller.dart:648:7)
#50 _StreamController.add (dart:async/stream_controller.dart:596:5)
#51 _RawSecureSocket._sendReadEvent (dart:io/secure_socket.dart:1107:19)
#52 _rootRun (dart:async/zone.dart:1418:47)
#53 _CustomZone.run (dart:async/zone.dart:1328:19)
#54 _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
#55 _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1276:23)
#56 _rootRun (dart:async/zone.dart:1426:13)
#57 _CustomZone.run (dart:async/zone.dart:1328:19)
#58 _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:1260:23)
#59 Timer._createTimer.<anonymous closure> (dart:async-patch/timer_patch.dart:18:15)
#60 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:398:19)
#61 _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:429:5)
#62 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:192:12)
LOG END
If someone has faced this issue, please explain to me. I am in dire need.
Thank you.