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

2019/07/23 11:38:54 Dial EOF

An EndOfFile or EOF error occurs when:

  • Your connection string does not contain the --tls flag.
  • Your connection string is otherwise unable to encrypt the connection.

If you’re getting this error:

  • Verify that your connection string uses the --tls flag.
  • Verify that your local machine’s certificate store is up to date.
Verify the format and values in the connection string for typos or formatting errors.
Verify that the password used with the -a flag in the connection string is correct.
Prepend your database client command to the connection string.