When connecting to Redis I get an Invalid Password error

2019/07/23 11:34:26 Dial ERR invalid password

An Invalid Password error occurs when the password being passed with the -a flag is incorrect.

If you are getting this error, verify that you are using the correct password. To better review changes, we recommend the flags format to modify the connection string. For more on the flags format, see How to Connect to Redis, and MongoDB.