Skip to content

"Cannot send commands in PubSub mode" error on ping #2345

Closed
WalletConnect/relay
#7
@TarSzator

Description

@TarSzator

As I understand the sentence

The commands that are allowed in the context of a subscribed client are SUBSCRIBE, SSUBSCRIBE, SUNSUBSCRIBE, PSUBSCRIBE, UNSUBSCRIBE, PUNSUBSCRIBE, PING, RESET, and QUIT.

on Redis Pub/Sub

I should not get the error

Cannot send commands in PubSub mode

on a ping call with the redis client

Environment:

  • Node.js Version: 18.12.1
  • Redis Server Version: 7.0.5
  • Node Redis Version: 4.5.1
  • Platform: Alpine in Docker (Host MacOS 13.0.1 on Apple M1 Max)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions