Skip to content

AttributeError: 'NoneType' object has no attribute 'feed' (possibly race condition on async disconnect) #2349

Closed
@bentheiii

Description

@bentheiii

Version: 4.3.4
Platform: python 3.8.13 on azure

Description: unfortunately I have not been able to replicate this error locally, I'm guessing it's a bizarre race condition (possibly an async resurgence of #732)

AttributeError: 'NoneType' object has no attribute 'feed'
  File "***", line **
    await pipeline.execute()
  File "redis/asyncio/client.py", line 1352, in execute
    return await conn.retry.call_with_retry(
  File "redis/asyncio/retry.py", line 59, in call_with_retry
    return await do()
  File "redis/asyncio/client.py", line 1266, in _execute_pipeline
    await self.parse_response(connection, args[0], **options)
  File "redis/asyncio/client.py", line 1291, in parse_response
    result = await super().parse_response(connection, command_name, **options)
  File "redis/asyncio/client.py", line 505, in parse_response
    response = await connection.read_response()
  File "redis/asyncio/connection.py", line 931, in read_response
    response = await self._parser.read_response(
  File "redis/asyncio/connection.py", line 526, in read_response
    await self.read_from_socket()
  File "redis/asyncio/connection.py", line 491, in read_from_socket
    self._reader.feed(buffer)

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