Skip to content

Error: java.lang.IllegalStateException: Expected STRING but was BEGIN_OBJECT at path $Β #47

@phamhuudat

Description

@phamhuudat

I code app read data from SignalR Asp.Net. But i have a error when recieved data from hub throw plugin signalr_flutter.
Status connect hub ok:
CONNECT HUB SUCCESS
flutter: ConnectionStatus.connecting
flutter: ConnectionStatus.connected

When hub push data, in plugin signalr_flutter has a error log
'Error: java.lang.IllegalStateException: Expected STRING but was BEGIN_OBJECT at path $'
[
{
"RowID": "21",
"Info": [
[
"0",
"BBB"
],
[
"1",
"6.6"
],
[
"2",
"7.06"
]
]
}
]
content in file pubspec.yaml
dependencies:
flutter:
sdk: flutter

The following adds the Cupertino Icons font to your application.

Use with the CupertinoIcons class for iOS style icons.

cupertino_icons: ^1.0.2
flutter_svg: ^1.1.5
flutter_bloc: ^8.1.1
get_it: ^7.2.0
dio: ^4.0.6
flutter_secure_storage: ^6.0.0
json_annotation: ^4.7.0
freezed_annotation: ^2.2.0
url_launcher: ^6.1.6
easy_localization: ^3.0.1
signalr_flutter: ^0.2.0

Please check this error for me. thankyou

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions