Skip to content

Failed to Subscribe to Live Query #198

Closed
@eunomiadev

Description

@eunomiadev

Invalid argument(s): handleError callback must take either an Object (the error), or both an Object (the error)

Exceptions:

Error subscibe to live query Invalid argument(s): handleError callback must take either an Object (the error), or both an Object (the error) and a StackTrace. #0      _BufferingStreamSubscription.onError (dart:async/stream_impl.dart:150:7)
#1      new _BufferingStreamSubscription (dart:async/stream_impl.dart:113:10)
#2      new _ForwardingStreamSubscription (dart:async/stream_pipe.dart:121:9)
#3      _ForwardingStream._createSubscription (dart:async/stream_pipe.dart:91:16)
#4      _ForwardingStream.listen (dart:async/stream_pipe.dart:86:12)
#5      LiveQuery.subscribe (package:parse_server_sdk/src/network/parse_live_query.dart:78:23)
<asynchronous suspension>

Code:

    var live = LiveQuery();
    final query = QueryBuilder<ParseObject>(ParseObject('Coins'));
    live.subscribe(query).catchError(
        (e, trace) => print('Error subscibe to live query $e $trace'));

SDK Version:
version: 1.0.22

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