-
Notifications
You must be signed in to change notification settings - Fork 1.9k
4.1.0 publish breaks when publishing an integer #2116
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
Comments
Same environment as a-koka, except for Redis Server Version: 6 on AWS Elasticache. The setEx command fail on this line if the value being sent is an array. This previously worked without conversion of the array to a string.
The I guess in reality, my usage is really incorrect. I actually recall being surprised that the array was converted to a delimited list in the previous version. |
I'm not sure if I follow this thoroughly. Publishing integer values has worked for the longest time until 4.1.0. Are we saying that publishing integers is no longer supported?
|
@leibale this is definitely a regression, the |
I am not sure if I am doing this right, but something similar has worked for me before. So now should I be making maxAge a string? @leibale |
In this version 4.1.0, Date values are not working anymore too . Before, they worked fine. |
Hi, some solution for this issue? |
hi facing the same issue solution yet |
I got the same error. It works for me adding createClient option( import connectRedis from "connect-redis";
...
const redisClient = createClient({
legacyMode: true,
});
await redisClient.connect(); |
For me, this workaround it's not working... I use many resources from v4. For while, I'm converting every value to string. |
please help my production is broken because of this update... other bugs also are introduced because of the update, i am reverting back to the working version |
@dragonlobster for while, convert to string every value on or before command db.set... when you to execute command get, convert the returned string to correct datatype... |
@a-koka i am using redis 7 and node 16 having same problem but it work sometime and give above error What to do ? |
Make sure to convert the channel and message into strings or buffers |
I found the same issue while trying to upgrade Node ACL2 to Redis 4.3.0.
|
Convert to string before send to redis client, reconvert to datatype after get from redis. It's the solution, for while. |
Thank you !!! and this should be the fix and https://github.com/tj/connect-redis
It would be great if this is specified in migration guide ~ |
This is a serious error :( |
This was working fine up until 4.0.6 but starting in version 4.1.0, publishing integers throws the following error.
Environment:
The text was updated successfully, but these errors were encountered: