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

type 'String' is not a subtype of type 'int' of 'index' #387

Open
ChiJohn opened this issue Aug 12, 2024 · 2 comments
Open

type 'String' is not a subtype of type 'int' of 'index' #387

ChiJohn opened this issue Aug 12, 2024 · 2 comments

Comments

@ChiJohn
Copy link

ChiJohn commented Aug 12, 2024

The following _TypeError was thrown:
type 'String' is not a subtype of type 'int' of 'index'

When the exception was thrown, this was the stack:
#0 Socket.onpacket (package:socket_io_client/src/socket.dart:398:53)
#1 EventEmitter._emit. (package:socket_io_common/src/util/event_emitter.dart:44:14)
#2 List.forEach (dart:core-patch/growable_array.dart:416:8)
#3 EventEmitter._emit (package:socket_io_common/src/util/event_emitter.dart:43:11)
#4 EventEmitter.emitReserved (package:socket_io_common/src/util/event_emitter.dart:57:47)
#5 Manager.ondecoded. (package:socket_io_client/src/manager.dart:276:7)
(elided 11 frames from dart:async)

@ChiJohn
Copy link
Author

ChiJohn commented Aug 12, 2024

pubspec.yaml
socket_io_client: ^3.0.0-beta.1

flutter doctor

image

@jumperchen
Copy link
Member

any reproducible example? or please test with the latest 3.0.0-beta.4 version to give it a try.

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

No branches or pull requests

2 participants