Closed
Description
Which packages are you using?
stream_chat_flutter
On what platforms did you experience the issue?
Web
What version are you using?
stream_chat_flutter_core 8.3.0
stream_chat 8.3.0
stream_chat_persistence 8.0.0
stream_channel 2.1.4
What happened?
Hello there :)
I have an issue on the web that pollutes the console.
errors.dart:307 Uncaught (in promise) DartError: TypeError: Instance of 'JSArray<dynamic>': type 'List<dynamic>' is not a subtype of type 'Iterable<User>'
at Object.throw_ [as throw] (errors.dart:307:3)
at Object._failedAsCheck (profile.dart:117:39)
at dart_rti.Rti.new._generalAsCheckImplementation (rti.dart:1554:3)
at [dartx.addAll] (operations.dart:266:9)
at channel.dart:2519:31
at channel$.ChannelClientState.new.updateChannelState (channel.dart:2519:31)
at channel.dart:2642:15
at _RootZone.runUnaryGuarded (zone.dart:1778:9)
at [_sendData] (stream_impl.dart:381:5)
at [_add] (stream_impl.dart:312:7)
at [_add] (stream_pipe.dart:154:11)
at [_handleData] (stream_pipe.dart:229:11)
at [_handleData] (stream_pipe.dart:184:5)
at _RootZone.runUnaryGuarded (zone.dart:1778:9)
at [_sendData] (stream_impl.dart:381:5)
at [_add] (stream_impl.dart:312:7)
at [_add] (stream_pipe.dart:154:11)
at [_handleData] (stream_pipe.dart:229:11)
at [_handleData] (stream_pipe.dart:184:5)
at _RootZone.runUnaryGuarded (zone.dart:1778:9)
at [_sendData] (stream_impl.dart:381:5)
at [_add] (stream_impl.dart:312:7)
at async._MultiStreamController.new.addSync (stream_impl.dart:1194:36)
at forwarding_stream._MultiControllerSink.new.add (forwarding_stream.dart:135:35)
at start_with._StartWithStreamSink.new.onData (start_with.dart:12:31)
at _RootZone.runUnaryGuarded (zone.dart:1778:9)
at [_sendData] (stream_impl.dart:381:5)
at async._DelayedData.new.perform (stream_impl.dart:573:13)
at async._PendingEvents.new.handleNext (stream_impl.dart:678:10)
at async._AsyncCallbackEntry.new.callback (stream_impl.dart:649:7)
at Object._microtaskLoop (schedule_microtask.dart:40:11)
at _startMicrotaskLoop (schedule_microtask.dart:49:5)
at async_patch.dart:186:7
Steps to reproduce
Run the example project on the web.
Supporting info to reproduce
No response
Relevant log output
Flutter analyze output
Flutter doctor output
❯ flutter doctor -v
[✓] Flutter (Channel stable, 3.29.2, on macOS 15.3.2 24D81 darwin-arm64, locale en-FR) [1,753ms]
• Flutter version 3.29.2 on channel stable at /Users/thomaspucci/.asdf/installs/flutter/3.29.2-stable
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision c236373904 (3 weeks ago), 2025-03-13 16:17:06 -0400
• Engine revision 18b71d647a
• Dart version 3.7.2
• DevTools version 2.42.3
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.1) [1,939ms]
• Android SDK at /Users/thomaspucci/Library/Android/sdk
• Platform android-35, build-tools 35.0.1
• ANDROID_HOME = /Users/thomaspucci/Library/Android/sdk
• ANDROID_SDK_ROOT = /Users/thomaspucci/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
This is the JDK bundled with the latest Android Studio installation on this machine.
To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
• Java version OpenJDK Runtime Environment (build 21.0.5+-13047016-b750.29)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 16.3) [1,584ms]
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 16E140
• CocoaPods version 1.16.2
[✓] Chrome - develop for the web [32ms]
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2024.2) [31ms]
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 21.0.5+-13047016-b750.29)
[✓] IntelliJ IDEA Ultimate Edition (version 2024.3.4) [30ms]
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
[✓] VS Code (version 1.98.2) [11ms]
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.108.0
[✓] Connected device (4 available) [6.1s]
• iPhone 16 (mobile) • FC0BA2B6-3BB3-4C7A-9FA7-752251001687 • ios •
com.apple.CoreSimulator.SimRuntime.iOS-18-3 (simulator)
• macOS (desktop) • macos • darwin-arm64 • macOS 15.3.2 24D81
darwin-arm64
• Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 15.3.2 24D81
darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 134.0.6998.166
[✓] Network resources [261ms]
• All expected network resources are available.
• No issues found!
Code of Conduct
- I agree to follow this project's Code of Conduct