Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Response type not string compatible. #60

Open
BlinkyStitt opened this issue Aug 10, 2022 · 1 comment
Open

Response type not string compatible. #60

BlinkyStitt opened this issue Aug 10, 2022 · 1 comment

Comments

@BlinkyStitt
Copy link

BlinkyStitt commented Aug 10, 2022

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?

@brandur
Copy link
Owner

brandur commented Aug 16, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants