WRONGPASS invalid username-password pair

See original GitHub issue

Issue

Hi, I wish I had more time to fill this out but I’m making this for others who are having this issue. Our Node applications started crashing on startup when we updated (without realizing) to 3.1.0. Thankfully this only happened on our stage servers so no harm was done! But hopefully, others find this helpful!

The error is as follows

ReplyError: WRONGPASS invalid username-password pair
    at parseError (redacted.../node_modules/redis/node_modules/redis-parser/lib/parser.js:179:12)
    at parseType (redacted.../node_modules/redis/node_modules/redis-parser/lib/parser.js:302:14) {
  command: 'AUTH',
  args: [ 'redacted', 'redacted' ],
  code: 'WRONGPASS'
}

The username-password pair is correct and works before 3.1.0 to fix this for now we downgraded to 3.0.2


Environment

  • Node.js Version: 14.15.4
  • Redis Version: Unkown (I can add once I find out)
  • Platform: MacOS 11.0.1, Heroku Node, Arch Linux

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:30 (1 by maintainers)

github_iconTop GitHub Comments

84reactions
leibalecommented, Apr 2, 2021

@darklight147 try to change the “username” to “default”

11reactions
nbasilicommented, Apr 7, 2021

Heroku deployments are broken at 3.1.0, initializing the client using:

require('redis').createClient(process.env.REDIS_URL)

where REDIS_URL is set automatically by Heroku using the format redis://h:<password>@<host>:<port>

The error is:

Uncaught ReplyError: Ready check failed: NOAUTH Authentication required.
    at parseError (/app/node_modules/redis-parser/lib/parser.js:179:12)
    at parseType (/app/node_modules/redis-parser/lib/parser.js:302:14)

This renders the latest version unusable on Heroku, everything is working fine at 3.0.2 though.

Read more comments on GitHub >

github_iconTop Results From Across the Web

WRONGPASS invalid username-password pair #1591 - GitHub
When a username is present, even if named default , the auth command is sent as auth 'default', 'password' and redis 3.0.6 rejects...
Read more >
WRONGPASS invalid username-password pair or user is ...
I am sure the user name and password correct because I could login redis using the redis-cli command. where is the problem and...
Read more >
Redis password error from one server but not from another
based on the permissions of the user. This may be why this error is being displayed: (error) WRONGPASS invalid username-password pair.
Read more >
Redis Connections Tutorial - KoderHQ
(error) WRONGPASS invalid username-password pair. And if we don't enter a password at all, Redis will raise a NOAUTH error. Output:.
Read more >
I don't know why and how to solve this - Troubleshooting
[ioredis] Unhandled error event: ReplyError: WRONGPASS invalid username-password pair or user is disabled at parseError.
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