StackExchange / StackExchange/StackExchange.Redis

Unable to connect to Heroku Redis

Open
#1,679 16 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

☁️ platform:AWS ⚙️ area:ssl
Dominant language
C#
Stars
6.2k
Forks
1.6k
Avg merge
1d 15h
Merged PRs (30d)
43

Description

Hi,

We use this library in our .NET 5 aspnet application and it works fine in all the places:

Redis inside Docker
AWS Elastic Cache (when we set ssl=true in the connection string)
In Heroku Redis (free tier when we set ssl=false)

But:
In Heroku Redis paid tiers (which has TLS enabled) we get the following error:

Error accepting a client connection: error:1408F10B:SSL routines:ssl3_get_record:wrong version number

So, I updated the connection string (ssl=true):

But now it just times out.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the connection failure against a paid-tier Heroku Redis instance using the reported TLS and non-TLS connection strings. Compare the behavior and configuration with the working Docker and AWS ElastiCache cases; done means establishing a successful Heroku Redis connection without the SSL error or timeout.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, redis
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.