Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled Exception: Unsupported operation: invalid payload #348

Open
dghub-founder opened this issue Oct 9, 2023 · 6 comments
Open

Unhandled Exception: Unsupported operation: invalid payload #348

dghub-founder opened this issue Oct 9, 2023 · 6 comments
Labels

Comments

@dghub-founder
Copy link

No description provided.

@jumperchen
Copy link
Member

any error logs?

@TheAlphamerc
Copy link

Getting the same error on getting the data for subscribed events.

Logs:

[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: Unsupported operation: invalid payload
#0      Decoder.decodeString (package:socket_io_common/src/parser/parser.dart:243:9)
#1      Decoder.add (package:socket_io_common/src/parser/parser.dart:149:16)
#2      Manager.ondata (package:socket_io_client/src/manager.dart:246:13)
#3      EventEmitter.emit.<anonymous closure> (package:socket_io_common/src/util/event_emitter.dart:61:14)
#4      List.forEach (dart:core-patch/growable_array.dart:416:8)
#5      EventEmitter.emit (package:socket_io_common/src/util/event_emitter.dart:60:11)
#6      Socket.onPacket (package:socket_io_client/src/engine/socket.dart:462:11)
#7      Socket.setTransport.<anonymous closure> (package:socket_io_client/src/engine/socket.dart:286:34)
#8      EventEmitter.emit.<anonymous closure> (package:socket_io_common/src/util/event_emitter.dart:61:14)
#9      List.forEach (dart:core-patch/growable_array.dart:416:8)
#10     EventEmitter.emit (package:socket_io_common/src/util/ev<…>
[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: Unsupported operation: invalid payload
#0      Decoder.decodeString (package:socket_io_common/src/parser/parser.dart:243:9)
#1      Decoder.add (package:socket_io_common/src/parser/parser.dart:149:16)
#2      Manager.ondata (package:socket_io_client/src/manager.dart:246:13)
#3      EventEmitter.emit.<anonymous closure> (package:socket_io_common/src/util/event_emitter.dart:61:14)
#4      List.forEach (dart:core-patch/growable_array.dart:416:8)
#5      EventEmitter.emit (package:socket_io_common/src/util/event_emitter.dart:60:11)
#6      Socket.onPacket (package:socket_io_client/src/engine/socket.dart:462:11)
#7      Socket.setTransport.<anonymous closure> (package:socket_io_client/src/engine/socket.dart:286:34)
#8      EventEmitter.emit.<anonymous closure> (package:socket_io_common/src/util/event_emitter.dart:61:14)
#9      List.forEach (dart:core-patch/growable_array.dart:416:8)
#10     EventEmitter.emit (package:socket_io_common/src/util/ev<…>
[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: Unsupported operation: invalid payload
#0      Decoder.decodeString (package:socket_io_common/src/parser/parser.dart:243:9)
#1      Decoder.add (package:socket_io_common/src/parser/parser.dart:149:16)
#2      Manager.ondata (package:socket_io_client/src/manager.dart:246:13)
#3      EventEmitter.emit.<anonymous closure> (package:socket_io_common/src/util/event_emitter.dart:61:14)
#4      List.forEach (dart:core-patch/growable_array.dart:416:8)
#5      EventEmitter.emit (package:socket_io_common/src/util/event_emitter.dart:60:11)
#6      Socket.onPacket (package:socket_io_client/src/engine/socket.dart:462:11)
#7      Socket.setTransport.<anonymous closure> (package:socket_io_client/src/engine/socket.dart:286:34)
#8      EventEmitter.emit.<anonymous closure> (package:socket_io_common/src/util/event_emitter.dart:61:14)
#9      List.forEach (dart:core-patch/growable_array.dart:416:8)
#10     EventEmitter.emit (package:socket_io_common/src/util/ev<…>
[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: Unsupported operation: invalid payload
#0      Decoder.decodeString (package:socket_io_common/src/parser/parser.dart:243:9)
#1      Decoder.add (package:socket_io_common/src/parser/parser.dart:149:16)
#2      Manager.ondata (package:socket_io_client/src/manager.dart:246:13)
#3      EventEmitter.emit.<anonymous closure> (package:socket_io_common/src/util/event_emitter.dart:61:14)
#4      List.forEach (dart:core-patch/growable_array.dart:416:8)
#5      EventEmitter.emit (package:socket_io_common/src/util/event_emitter.dart:60:11)
#6      Socket.onPacket (package:socket_io_client/src/engine/socket.dart:462:11)
#7      Socket.setTransport.<anonymous closure> (package:socket_io_client/src/engine/socket.dart:286:34)
#8      EventEmitter.emit.<anonymous closure> (package:socket_io_common/src/util/event_emitter.dart:61:14)
#9      List.forEach (dart:core-patch/growable_array.dart:416:8)
#10     EventEmitter.emit (package:socket_io_common/src/util/ev<…>
[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: Unsupported operation: invalid payload
#0      Decoder.decodeString (package:socket_io_common/src/parser/parser.dart:243:9)
#1      Decoder.add (package:socket_io_common/src/parser/parser.dart:149:16)
#2      Manager.ondata (package:socket_io_client/src/manager.dart:246:13)
#3      EventEmitter.emit.<anonymous closure> (package:socket_io_common/src/util/event_emitter.dart:61:14)
#4      List.forEach (dart:core-patch/growable_array.dart:416:8)
#5      EventEmitter.emit (package:socket_io_common/src/util/event_emitter.dart:60:11)
#6      Socket.onPacket (package:socket_io_client/src/engine/socket.dart:462:11)
#7      Socket.setTransport.<anonymous closure> (package:socket_io_client/src/engine/socket.dart:286:34)
#8      EventEmitter.emit.<anonymous closure> (package:socket_io_common/src/util/event_emitter.dart:61:14)
#9      List.forEach (dart:core-patch/growable_array.dart:416:8)
#10     EventEmitter.emit (package:socket_io_common/src/util/ev<…>
[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: Unsupported operation: invalid payload
#0      Decoder.decodeString (package:socket_io_common/src/parser/parser.dart:243:9)
#1      Decoder.add (package:socket_io_common/src/parser/parser.dart:149:16)
#2      Manager.ondata (package:socket_io_client/src/manager.dart:246:13)
#3      EventEmitter.emit.<anonymous closure> (package:socket_io_common/src/util/event_emitter.dart:61:14)
#4      List.forEach (dart:core-patch/growable_array.dart:416:8)
#5      EventEmitter.emit (package:socket_io_common/src/util/event_emitter.dart:60:11)
#6      Socket.onPacket (package:socket_io_client/src/engine/socket.dart:462:11)
#7      Socket.setTransport.<anonymous closure> (package:socket_io_client/src/engine/socket.dart:286:34)
#8      EventEmitter.emit.<anonymous closure> (package:socket_io_common/src/util/event_emitter.dart:61:14)
#9      List.forEach (dart:core-patch/growable_array.dart:416:8)
#10     EventEmitter.emit (package:socket_io_common/src/util/ev<…>

@jumperchen
Copy link
Member

@TheAlphamerc Could you please provide the version information for both the server and the client?

@TheAlphamerc
Copy link

Flutter

socket_io_client: ^2.0.3+1

Node

[email protected]

@TheAlphamerc
Copy link

@jumperchen It seems like the server is sending invalid JSON data. So I think the issue is not related to the socket client package itself.
Screenshot 2024-01-14 at 6 21 11 PM

@maheshmesta
Copy link

Hi. even i am facing the same issue in flutter windows

socket_io_client: ^2.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants