-
Notifications
You must be signed in to change notification settings - Fork 553
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
Breaking Change #1047
Comments
^^^^^^^^ the trait `FromRedisValue` is not implemented for `serde_json::Value` If I specify type it works |
@zebede22 are you sure this isn't an issue with the redis-macros crate? can you provide an example that relies only on redis-rs? |
Yes, redis-rs is not related. let json_data: Value = conn.json_get(key, "$").await?; Error: error[E0277]: the trait bound `serde_json::Value: FromRedisValue` is not satisfied
--> src/redis.rs:14:33
|
14 | let json_data: Value = conn.json_get(key, "$").await?;
| ^^^^^^^^ the trait `FromRedisValue` is not implemented for `serde_json::Value`
|
= help: the following other types implement trait `FromRedisValue`:
bool
isize
i8
i16
i32
i64
i128
usize
and 44 others
note: required by a bound in `redis::JsonAsyncCommands::json_get` |
is |
It's been working until 0.24 change. Also, how to get a json from an endpoint where you have no exact json structure? how it can be done without serde_json? |
You can use a HashMap, or a string. We're trying to understand what changed, and the more moving parts there are, the harder it is to pinpoint the source of the issue.
Maybe, but I need a minimal reproducible example in order to understand the issue. If you want to create a small project to simulate the problem, that will be very helpful. |
Sounds like you have two separate versions of -> Not related to the redis crate, you just need to use the same version or ask redis-marcros to update the dependency. |
This is still happening, just happened to me after upgrading. I believe this is a redis-rs issue rather than another lib issue. |
Check your |
@zebede22 does this still happen? can you provide a reproducing example? |
I recently upgraded my redis crate from version 0.23 to 0.24. Previously, the following code snippet was working fine:
However, after upgrading to version 0.24, I started receiving an error message without making any changes to the code. Can anyone explain what might have caused this issue?
The text was updated successfully, but these errors were encountered: