-
Notifications
You must be signed in to change notification settings - Fork 123
Description
below is the detail of the exception:
File "/root/myproject/mystatement/src/deps/event_store.py", line 64, in main
await andrew.save()
File "/root/deps/miniconda3/envs/spps/lib/python3.8/site-packages/aredis_om/model/model.py", line 1303, in save
await db.hset(self.key(), mapping=document)
File "/root/deps/miniconda3/envs/spps/lib/python3.8/site-packages/aioredis/client.py", line 1064, in execute_command
return await self.parse_response(conn, command_name, **options)
File "/root/deps/miniconda3/envs/spps/lib/python3.8/site-packages/aioredis/client.py", line 1080, in parse_response
response = await connection.read_response()
File "/root/deps/miniconda3/envs/spps/lib/python3.8/site-packages/aioredis/connection.py", line 868, in read_response
raise response from None
aioredis.exceptions.ResponseError: wrong number of arguments for 'hset' command
above exception happened after running:
class Customer(HashModel):
first_name: str
last_name: str
email: str
join_date: datetime.date
age: int
bio: Optional[str]
# First, we create a new `Customer` object:
andrew = Customer(
first_name="Andrew",
last_name="Brookins",
email="andrew.brookins@example.com",
join_date=datetime.date.today(),
age=38,
bio="Python developer, works at Redis, Inc.",
)
print(andrew.pk)
await andrew.save()
a = await Customer.get(andrew.pk)
print(a)
pip show aioredis:
Name: aioredis
Version: 2.0.0
pip show redis-om
Name: redis-om
Version: 0.0.20