Skip to content

Error occur for XInfoStream command when using to a stream that dose not have items #1758

Closed
@LaodaLuo

Description

@LaodaLuo

XInfoStream command for a stream does not have any item.

Expected Behavior

XInfoStream command should return stream info.

Current Behavior

It return an error: "Conn has unread data".

Steps to Reproduce

  1. Using XGroupCreateMkStream to create new stream XX that does not have items.
  2. Using XInfoStream to get info of XX, it return an error with "Conn has unread data".

Context (Environment)

github.com/go-redis/redis/v8 v8.8.3

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