How do I fix the "Invalid Password" error when connecting to Redis?

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.

Ensure the –tls flag is included in the connection string and check your machine’s certificate store.
Verify the format and values in the connection string for typos or formatting errors.
Prepend your database client command to the connection string.