Dragonfly Cloud is now available on the AWS Marketplace - Learn More

Error: redis.exceptions.responseerror: unknown command 'json.set'

What's Causing This Error

The error 'redis.exceptions.responseerror: unknown command 'json.set'' occurs when the Redis server encounters an unrecognized or unsupported command. In this case, the command 'json.set' is not a standard Redis command and is not supported by Redis out of the box. It is likely that the client code is attempting to execute a custom command or extension that has not been properly registered or defined in the Redis server.

Solution - Here's How To Resolve It

To resolve this error, you can take one of the following steps:

  1. Define the custom command or extension on the Redis server: If the command 'json.set' is part of a custom module or extension, you need to ensure that it is properly defined and registered on the Redis server. This can be done using the Redis Module API or the Redis Lua scripting language.

  2. Use a Redis client that supports the command: If the command 'json.set' is part of a third-party Redis module or extension, you may need to use a Redis client library that supports it. Some popular Redis clients, such as redis-py and jedis, have built-in support for third-party Redis modules and extensions.

  3. Implement the functionality manually: If neither of the above options is feasible, you may need to implement the desired functionality manually using standard Redis commands. For example, if 'json.set' is used to store JSON data in Redis, you can use the Redis HASH data type to store and retrieve JSON objects.

Was this content helpful?

Switch & save up to 80% 

Dragonfly is fully compatible with the Redis ecosystem and requires no code changes to implement. Instantly experience up to a 25X boost in performance and 80% reduction in cost