Skip to content

Getting Error for Heroku Redis Addon Connection After Upgrading Redis NPM Version to Latest (4.6.7) #2540

@versa-dev

Description

@versa-dev

Description

I am maintaining express.js app on Heroku.
Because Heroku doesn't support Heroku Redis 4 & 5 soon, I have upgraded the Heroku Redis addon to 7.0, and also upgrade the redis npm module in my codebase of app to latest version (4.6.7).
After that the app has been broken, and I am getting following error:

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

This code snippet is my redis config file:

import * as Redis from 'redis'
import { REDIS_CONNECTION } from './../../constants';

const url = REDIS_CONNECTION;

export const createRedisClient = () => {
  return Redis.createClient({
    url,
    socket: {
      tls: true,
      rejectUnauthorized: false,
    },
  })
};

Node.js Version

16.14.2

Redis Server Version

7.0.11

Node Redis Version

4.6.7

Platform

No response

Logs

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions