When connecting to Redis, I get an "EndOfFile" error.

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 that you are using the correct password.
Verify your connection string and add your local machine to the database cluster’s trusted sources.
Add your machine to the database cluster’s list of trusted sources.