Skip to content

BLMOVE throws syntax error #3836

@Pleochism

Description

@Pleochism

I'm pretty sure I'm not doing anything weird here.

payload = await redis.blmove("dispatch-queue", "processing-queue", "LEFT", "RIGHT", 1)

This throws a syntax error on v5.3.1, with Redis 7.0.15

  File "dispatcher/main.py", line 83, in run_redis
    payload = await redis.blmove("room-dispatcher.queue", "room-dispatcher.processing", "LEFT", "RIGHT", 1)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/daniel/.cache/pypoetry/virtualenvs/dispatcher-jV_AsfwX-py3.12/lib/python3.12/site-packages/redis/asyncio/client.py", line 677, in execute_command
    return await conn.retry.call_with_retry(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/daniel/.cache/pypoetry/virtualenvs/dispatcher-jV_AsfwX-py3.12/lib/python3.12/site-packages/redis/asyncio/retry.py", line 50, in call_with_retry
    return await do()
           ^^^^^^^^^^
  File "/home/daniel/.cache/pypoetry/virtualenvs/dispatcher-jV_AsfwX-py3.12/lib/python3.12/site-packages/redis/asyncio/client.py", line 652, in _send_command_parse_response
    return await self.parse_response(conn, command_name, **options)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/daniel/.cache/pypoetry/virtualenvs/dispatcher-jV_AsfwX-py3.12/lib/python3.12/site-packages/redis/asyncio/client.py", line 698, in parse_response
    response = await connection.read_response()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/daniel/.cache/pypoetry/virtualenvs/dispatcher-jV_AsfwX-py3.12/lib/python3.12/site-packages/redis/asyncio/connection.py", line 627, in read_response
    raise response from None

LMOVE works fine, it's just the blocking variant that does this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions