Skip to content

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

@ValorHeart

Description

@ValorHeart

Description

In continuation to #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

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions