Skip to content

panic: protocol bug, message handled out of order (valkey-go client) #79

@dineshd30

Description

@dineshd30

Observed a panic when using the valkey-go client:

panic: protocol bug, message handled out of order
goroutine 12268 [running]:
github.com/valkey-io/valkey-go.(*pipe)._backgroundRead(0xc00029c000)
/go/pkg/mod/github.com/valkey-io/[email protected]/pipe.go:575 +0xd18
github.com/valkey-io/valkey-go.(*pipe)._background(0xc00029c000)
/go/pkg/mod/github.com/valkey-io/[email protected]/pipe.go:378 +0xa6
created by github.com/valkey-io/valkey-go.(*pipe).background in goroutine 12246
/go/pkg/mod/github.com/valkey-io/[email protected]/pipe.go:346 +0x7c

Lambda runtime log:

{
  "time": "2025-09-17T17:27:53.054Z",
  "type": "platform.report",
  "record":
    {
      "requestId": "2a68caef-902f-4f7d-bfc1-2f656b7c9a2f",
      "metrics":
        {
          "durationMs": 7.925,
          "billedDurationMs": 8,
          "memorySizeMB": 128,
          "maxMemoryUsedMB": 46,
        },
      "status": "error",
      "errorType": "Runtime.ExitError",
    },
}

Environment
Runtime: AWS Lambda Go v1.25
Valkey Server version: v8.1
valkey-go package version: v1.0.64
Go version: v1.25
OS/Platform: x86_64

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