Skip to content

Got 12 elements in XINFO GROUPS reply, wanted 8 #3044

Closed
@JanYork

Description

@JanYork

Issue tracker is used for reporting bugs and discussing new features. Please use
stackoverflow for supporting issues.

Expected Behavior

groups, err := client.XInfoGroups(ctx, stream).Result()
	if err != nil {
		log.Error().Err(err).Msgf("Failed to get groups for stream %s", stream)
		return err
	}

Why does this code give an error:redis: got 12 elements in XINFO GROUPS reply, wanted 8.

Current Behavior

An error occurred, redis: got 12 elements in XINFO GROUPS reply, wanted 8. This error will occur whenever the XInfoGroups method is used. Why is this happening? Is your data type not compatible with Redis 7.0?

Possible Solution

No

Steps to Reproduce

  1. Using github.com/go-redis/redis/v8 v8.11.5.
  2. Connect to Redis 7 or above.
  3. Create a Stream Group and use the XInfoGroups method.
  4. Errors seem inevitable.

Context (Environment)

go-redis v8.11.5 and redis7.0+

Detailed Description

No

Possible Implementation

No

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