Closed
Description
I'm trying to create a keys with two fields: name and age,
The text field is created without any problem, but 'hset' fails to create the numeric field.
Create a key user:1 with two fields name and age, generate random values for both fields
GitHub Copilot
I'll help you create a Redis hash with key "user:1" containing name and age fields with random values. I'll use the appropriate Redis tool for this task.
Ran hset
{
"name": "user:1",
"key": "name",
"value": "John Doe"
}
Field 'name' set successfully in hash 'user:1'.
I've started creating the Redis hash with key "user:1". I've successfully set the "name" field to "John Doe". Now, let me add the age field with a random value.
Ran hset
{
"name": "user:1",
"key": "age",
"value": "32"
}
Error executing tool hset: 1 validation error for hsetArguments
value
Input should be a valid string [type=string_type, input_value=32, input_type=int]
For further information visit https://errors.pydantic.dev/2.10/v/string_type
Metadata
Metadata
Assignees
Labels
No labels