question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

v4.17.0 breaking change for Redis parser

See original GitHub issue

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.

[ERROR] The server returned "wrong number of arguments for 'auth' command". You are probably passing both username and password to Redis version 5 or below. You should only pass the 'password' option for Redis version 5 and under.
[ioredis] Unhandled error event: ReplyError: NOAUTH Authentication required.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
luincommented, May 16, 2020

@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 redis.options and post the result here? username property should be null.

1reaction
Kikobeatscommented, May 16, 2020

@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 v4.17.0, but works as expected at v4.16.x

Read more comments on GitHub >

github_iconTop Results From Across the Web

Redis 4.0.1 - GitHub
In general this change should not break compatibility with the past since in the past two different forms were provided by the server...
Read more >
Redis - npm
A modern, high performance Redis client. Latest version: 4.5.1, last published: a month ago. Start using redis in your project by running ...
Read more >
Where is node-redis v4 documentation/migration guide?
node-redis refactored its API in v4 to support Promises. For some reason, they also decided to change the signature of most commands, ...
Read more >
Session handling in Express Using Redis | Code for geek
4 : Retrieve information regarding particular key. Run this command on terminal. GET. Once you have installed Redis, by running the first command...
Read more >
ioredis | Yarn - Package Manager
BREAKING CHANGES · slotsRefreshInterval is disabled by default, previously, the default value was 5000. · Redis#serverInfo is removed. · Support for third-party ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found