redis / redis/node-redis

Typescript error configuring client socket at version v5.9 (Heroku example)

Open
#3,113 2 comments 0 reactions 1 assignee View on GitHub

@nkaradzhov is already working on this.

Since Oct 28, 2025.

Bug
Dominant language
TypeScript
Stars
17.6k
Forks
2k
Avg merge
2d 3h
Merged PRs (30d)
40

Description

Description

In continuation to https://github.com/redis/node-redis/issues/3023
The issue still happening

Configured according to: https://devcenter.heroku.com/articles/connecting-heroku-redis#connecting-in-node-js

import { createClient, type RedisClientType } from 'redis';

const redis_url = process.env.REDIS_URL || 'redis://127.0.0.1:6379';
const client: RedisClientType = createClient({
  url: redis_url,
  socket: {
    tls: redis_url.match(/rediss:/) != null,
    rejectUnauthorized: false,
  },
});
Image
Node.js Version

v22.16.0

Redis Server Version

No response

Node Redis Version

5.9.0

Platform

MacOS

Logs

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.