node-redis icon indicating copy to clipboard operation
node-redis copied to clipboard

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

Open ValorHeart opened this issue 2 months ago • 2 comments

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


ValorHeart avatar Oct 27 '25 15:10 ValorHeart

Closing as duplicate of #3023

nkaradzhov avatar Oct 28 '25 08:10 nkaradzhov

@ValorHeart I'm sorry—I haven't had my coffee yet. I will try to take a look into this soon!

nkaradzhov avatar Oct 28 '25 08:10 nkaradzhov