You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/backend/src/services/redis_service.py", line 94, in get_cached_profiles
fetched_profiles = await self.client.json().mget(keys, Path.root_path())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/venv/lib/python3.12/site-packages/redis/asyncio/client.py", line 616, in execute_command
return await conn.retry.call_with_retry(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/venv/lib/python3.12/site-packages/redis/asyncio/retry.py", line 59, in call_with_retry
return await do()
^^^^^^^^^^
File "/opt/venv/lib/python3.12/site-packages/redis/asyncio/client.py", line 589, in _send_command_parse_response
await conn.send_command(*args)
File "/opt/venv/lib/python3.12/site-packages/redis/asyncio/connection.py", line 505, in send_command
await self.send_packed_command(
File "/opt/venv/lib/python3.12/site-packages/redis/asyncio/connection.py", line 480, in send_packed_command
self._writer.writelines(command)
File "/usr/local/lib/python3.12/asyncio/streams.py", line 349, in writelines
self._transport.writelines(data)
File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 1182, in writelines
self._write_ready()
TypeError: 'NoneType' object is not callable
I am experiencing this issue especially in peak traffic.
@aelamran Hi, I think there might be an issue in which client are you using sync or async? There might be an issue if you're trying to use async client outside of running event loop which lead to the fact that some references are None.
Please check whether you creating a correct instance of client
@aelamran Hi, I think there might be an issue in which client are you using sync or async? There might be an issue if you're trying to use async client outside of running event loop which lead to the fact that some references are None.
Please check whether you creating a correct instance of client
Sorry, I shared how I am setting my client without sharing the module import, it's indeed async: import redis.asyncio as redis
I am experiencing this issue especially in peak traffic.
My redis service is initialized this way:
Am I missing something in my redis client?
I saw an issue similar to this here but upgrading python to 3.12.9 didn't help.
python 3.12.9
redis 5.2.1
The text was updated successfully, but these errors were encountered: