go-redis/redis · error

redis: BLOOM.INFO invalid argument key type

Error message

redis: BLOOM.INFO invalid argument key type

What it means

Error "redis: BLOOM.INFO invalid argument key type" thrown in go-redis/redis.

Source

Thrown at probabilistic.go:384

		return nil
	}

	readType, err := rd.PeekReplyType()
	if err != nil {
		return err
	}

	if len(cmd.args) > 2 && readType == proto.RespArray {
		n, err := rd.ReadArrayLen()
		if err != nil {
			return err
		}
		if key, ok := cmd.args[2].(string); ok && n == 1 {
			if err := readAndAssignValue(key); err != nil {
				return err
			}
		} else {
			return fmt.Errorf("redis: BLOOM.INFO invalid argument key type")
		}
	} else {
		n, err := rd.ReadMapLen()
		if err != nil {
			return err
		}
		for i := 0; i < n; i++ {
			key, err := rd.ReadString()
			if err != nil {
				return err
			}
			if err := readAndAssignValue(key); err != nil {
				return err
			}
		}
	}

	cmd.val = result

View on GitHub (pinned to 36d97525cd)

Solutions

  1. Ensure BLOOM.INFO reply keys are strings; check module version compatibility
  2. Parse the info reply generically if the schema differs

When it happens

Trigger: Thrown at probabilistic.go:384 when the library encounters an invalid state.

Common situations: Validate info reply key types before indexing the map.


AI-assisted analysis of go-redis/redis@36d97525cd (2026-08-06). Data as JSON: /data/errors/35dfd6a792908eb6.json. Report an issue: GitHub.