redis / rueidis

A fast Golang Redis client that supports Client Side Caching, Auto Pipelining, Generics OM, RedisJSON, RedisBloom, RediSearch, etc.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

XreadGroup: Invalid stream ID specified as stream command argument

kkharji opened this issue · comments

Hello there, trying to read from multiple stream, but getting an error Invalid stream ID specified as stream command argument. Not sure if this expected behavior, misuse on my part or a bug.

Example:

			read := cmdable.XReadGroup(ctx, rueidiscompat.XReadGroupArgs{
				Group:    s.Group,
				Consumer: s.Consumer,
				// Block:    s.ReadBlock,
				Count:   s.ReadCount,
				Streams: []string{"m", ">", "b", ">"},
			})
			streams, err := read.Result()

Thanks

Hi @kkharji,

I believe it should be

			read := cmdable.XReadGroup(ctx, rueidiscompat.XReadGroupArgs{
				Group:    s.Group,
				Consumer: s.Consumer,
				// Block:    s.ReadBlock,
				Count:   s.ReadCount,
				Streams: []string{"m", "b", ">", ">"},
			})
			streams, err := read.Result()

Hi @kkharji, does the above solve your problem?