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

Error on dispose #367

Closed
afl-h opened this issue Feb 26, 2024 · 4 comments
Closed

Error on dispose #367

afl-h opened this issue Feb 26, 2024 · 4 comments

Comments

@afl-h
Copy link

afl-h commented Feb 26, 2024

Describe the bug
The following _TypeError was thrown while finalizing the widget tree:
type 'String' is not a subtype of type 'int' of 'index'

When the exception was thrown, this was the stack:
#0 Manager.onclose (package:socket_io_client/src/manager.dart:385:32)
flutter-webrtc/flutter-webrtc#1 Manager.disconnect (package:socket_io_client/src/manager.dart:370:5)
flutter-webrtc/flutter-webrtc#2 Manager.close (package:socket_io_client/src/manager.dart:364:19)
flutter-webrtc/flutter-webrtc#3 Manager.destroy (package:socket_io_client/src/manager.dart:323:5)
flutter-webrtc/flutter-webrtc#4 Socket.destroy (package:socket_io_client/src/socket.dart:572:8)

To Reproduce
When calling socket.dispose() or socket.destroy()

Platform information

Flutter version: Flutter 3.19
Plugin version: ^0.9.48+hotfix.1
OS: Android / iOS/Desktop

@BrianMwas
Copy link

I am getting this issue even in the version beta release

@jumperchen
Copy link
Member

I am getting this issue even in the version beta release

Did you use 3.0.0-beta.1?

@BrianMwas
Copy link

I tried using that but it requires js 0.7 but my other libs are using js 0.6

@jumperchen
Copy link
Member

My mistake, what I meant is the latest beta version '3.0.0-beta.2'.

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

3 participants