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
v4.17.0 breaking change for Redis parser #1132
Comments
Thank you for pointing this out. Could you explain the use case why you specifying username:password combinations for Redis <= 5? Or in your case you just want to ignore |
@luin it isn't a thing related with the username: I'm experimenting the same behavior and essentially any URI string like // Connect to 127.0.0.1:6380, db 4, using password "authpassword":
new Redis("redis://:authpassword@127.0.0.1:6380/4"); doesn't work using at |
@Kikobeats I can't reproduce this issue locally with the following code: const redis = new Redis("redis://:authpassword@127.0.0.1:6379/4"); Could you log |
❯ cat config/staging.yml | grep REDIS_URI
REDIS_URI: redis://redis-instance.ec2.cloud.redislabs.com:18529
❯ cat node_modules/ioredis/package.json | grep version
"version": "4.17.0"
❯ NODE_ENV=staging node index.js
microlink-api address=:::3000 node=13.14.0 environment=staging pid=28438 status=listening version=2.17.7 +0ms
Error: connect ECONNREFUSED 127.0.0.1:6379
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1141:16)
❯ npm i ioredis@4.16 && cat node_modules/ioredis/package.json | grep version
"version": "4.16.3"
~/Projects/microlink/api next
❯ NODE_ENV=staging node index.js
microlink-api address=:::3000 node=13.14.0 environment=staging pid=30732 status=listening version=2.17.7 +0ms at |
@Kikobeats Hmm...strange. It works for me: const redis = new Redis("redis://redis-instance.ec2.cloud.redislabs.com:18529"); And ioredis does connect to redis-instance.ec2.cloud.redislabs.com instead of 127.0.0.1. |
Got this error too with DigitalOcean connect string. It looks like this: Too bad it broke our containers and whole logs were spamed with |
Fixing this with #1134. Sorry for the inconvenience and thanks for pointing this out! |
🎉 This issue has been resolved in version 4.17.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Hello, unfortunately, this is happening again in the last versions: ioredis@4.17 -> works fine .cc @luin |
@Kikobeats are you sure about 4.18? The only change in there was an update to redis-commands module, nothing that touched URI parsing code was affected. |
@AVVS Yes, I'm sure: 4.17 vs 4.18 |
I'm not sure what the cause of this would be though - v4.17.3...c016265 is the changelog and nothing affects the parsing here |
Release v4.17.0 fails to parse username:password combinations for redis version 5 and lower. The Rediss / Redis URL connection strings are no longer valid.
The text was updated successfully, but these errors were encountered: