Skip to content

RedisRuntimeError(got element that cant not be parsed) #92

Description

@nhatpham0301

Redis version 4.0.0.
Flutter 3.13.0-0.2.pre • channel beta • https://github.com/flutter/flutter.git
Framework • revision ac71592bc6 (5 months ago) • 2023-07-18 14:53:57 -0600
Engine • revision e14db68a86
Tools • Dart 3.1.0 (build 3.1.0-262.2.beta) • DevTools 2.25.0

I connected success with redisconnection. But i can't use GET or SET of send_object.

My code:

RedisConnection conn = RedisConnection();
conn.connect('localhost', 8081).then((cmd) {
    debugPrint('success');
    cmd.send_object(["SET", "key", "value"]).then((value) {
        print(value);
      }).catchError((onError) {
        debugPrint('Error set redis: $onError');
      });
  }).catchError((onError) {
    debugPrint('Error connect redis: $onError');
  });

I always see error: RedisRuntimeError(got element that cant not be parsed)

Please point out my mistakes in the above syntax, thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions