Error message
When querying redis using python, all key information will be reported as errors
redis.exceptions.ResponseError: unknown command `KEYS`, with args beginning with: `*`,
The code is as follows
import redis
pool = redis.ConnectionPool(host='127.0,0.1', port=6379, db=0, password='123456')
r = redis.StrictRedis(connection_pool=pool_16_6)
print(r.keys())
Solution:
for key in r.scan_iter("*"):
print(key)
Read More:
- Error reported when springboot connects to redis nested exception is redis.clients.jedis . exceptions.JedisConnectionException
- [Solved] selenium.common.exceptions.WebDriverException: Message: An unknown server-side error
- [Solved] Redis executes the monitor command error: noauth authentication required
- Redis use command access exception: (error) noauth authentication required
- Redis cannot double-click redis-server.exe to start normally
- [Solved] Redis—-(error) MISCONF Redis is configured to save RDB snapshots
- [Solved] Redis Cache Error: org.springframework.data.redis.serializer.SerializationException: Could not read JSON..
- [Solved] Redis Execute redis-cli shutdown Error: (error) ERR Errors trying to SHUTDOWN. Check logs.
- [Solved] Error in integrating redis with springboot: unable to connect to redis
- [Solved] ffmpeg error reporting: subprocess. Calledprocesserror: Command ‘ffmpeg, unknown encoder: “libx264″“
- [Solved] appium Error: An unknown server-side error occurred while processing the command
- Redis Exception | DENIED Redis is running in protected mode because protected mode is enabled
- [Solved] SpringBoot integration with Redis error: java.net.ConnectException: Connection refused: no further information
- Report Duplicate keys detected: ‘0’. This may cause an update error in VUE and the solution
- [Solved] Latex&VScode Error: I found no bibdata command//command//citation—while reading file*.aux
- Vue el-table Error: Duplicated keys detected This may casuse an update error
- [Solved] Mac starts redis error: there is no specified conf file
- [Solved] gateway Error: reactor.core.Exceptions$ErrorCallbackNotImplemented
- [Solved] Lumen Error: Class redis does not exist
- Spring Connect Redis Error: Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: MOVED 12910 172.16.4.99:6379