brandur/redis-cell

Response type not string compatible.

Opened this issue · 1 comments

I have a rust app that is using redis and redis-cell. I am using the bb8 crate for connection pooling. When I put the server under heavy load, there are errors in my log. I'm unsure if this is a problem in redis-cell or bb8 or my code.

2022-08-10T21:46:09.361897Z  WARN web3_proxy::bb8_helpers: redis error err=Response was of incompatible type: "Response type not string compatible." (response was bulk(int(0), int(2000001), int(1999997), int(-1), int(0)))

Any ideas?

Hey @wysenynja, just based on what you pasted there, it does kind of look like that's a valid redis-cell response. That bulk response you can see is the one documented here:

https://github.com/brandur/redis-cell/blob/master/README.md#usage

So: (1) action allowed, (2) 2000001 total limit, (3) 1999997 remaining limit, (4) -1 seconds to retry, meaning there's no need to wait for retry, and (5) ~0 seconds until rate is fully refilled.