-
-
Notifications
You must be signed in to change notification settings - Fork 606
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
[SocketClient] message stream encountered error: type '_OneByteString' is not a subtype of type 'Map<String, dynamic>' in type cast #1228
Comments
This looks like a protocol parsing error What server are you using? |
Sorry for the late response, I was away from work, we are using hasura version 2.9.0 running in a container. Specifically, it is |
We're having the same error and the stacktrace we capture is pretty much the same as the one above. graphql 5.1.2-beta.4 |
Thanks, are you able to reproduce it with our API https://api.chat.graphql-flutter.dev/graphql |
Chiming in with a very similar case.
and with the error pointing to line websocket_messages.dart:L#56
My graphql version is 5.1.1 and using the Hasura cloud instance. |
What I found is that the message causing the issue looks like that:
The final payload =
(map['payload'] ?? <String, dynamic>{}) as Map<String, dynamic>; |
I think this PR #1242 is the fix but it required some more love |
Fixed in #1242 |
Describe the issue
To Reproduce
To be honest I have no idea how to reproduce this, it just kind of randomly happens. I was hoping you could help me figure it out. To me it seems like it might be an issue on your side.
device / execution context
Seen in release builds on android 10, 11 and 12, Flutter
Channel stable, 3.3.1
, dart2.18.0 (stable)
.I cannot reproduce it in debug mode.
Other useful/optional fields
Stacktrace:
The client is initialized like this:
Sentry reports the following flutter_context:
The text was updated successfully, but these errors were encountered: