Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hiredis Is Failing To Handle notEnoughData Keyword Argument #196

Open
ramchandra-st opened this issue Jul 31, 2024 · 1 comment
Open

Hiredis Is Failing To Handle notEnoughData Keyword Argument #196

ramchandra-st opened this issue Jul 31, 2024 · 1 comment

Comments

@ramchandra-st
Copy link

Hi Folks,

I'm getting the following error from hiredis.

Do you have any insight about this error?

Error traces:

self.on_connect()
  File "../lib/python3.11/site-packages/redis/connection.py", line 320, in on_connect
    self._parser.on_connect(self)
  File "/opt/hostedtoolcache/Python/3.11.0/x64/lib/python3.11/site-packages/redis/_parsers/hiredis.py", line [66], in on_connect
    self._reader = hiredis.Reader(**kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'notEnoughData' is an invalid keyword argument for this function
@darkbarker
Copy link

i have the same problem on redis==5.0.8, rollback to redis==5.0.7 works for me

...
  File ".../env/lib/python3.9/site-packages/channels_redis/core.py", line 504, in group_add
    await connection.zadd(group_key, {channel: time.time()})
  File ".../env/lib/python3.9/site-packages/redis/asyncio/client.py", line 610, in execute_command
    conn = self.connection or await pool.get_connection(command_name, **options)
  File ".../env/lib/python3.9/site-packages/redis/asyncio/connection.py", line 1049, in get_connection
    await self.ensure_connection(connection)
  File ".../env/lib/python3.9/site-packages/redis/asyncio/connection.py", line 1082, in ensure_connection
    await connection.connect()
  File ".../env/lib/python3.9/site-packages/redis/asyncio/connection.py", line 291, in connect
    await self.on_connect()
  File ".../env/lib/python3.9/site-packages/redis/asyncio/connection.py", line 325, in on_connect
    self._parser.on_connect(self)
  File ".../env/lib/python3.9/site-packages/redis/_parsers/hiredis.py", line 173, in on_connect
    self._reader = hiredis.Reader(**kwargs)
TypeError: 'notEnoughData' is an invalid keyword argument for this function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants