Open
Description
Current Behavior
I'm trying to connect to my Digital Ocean hosted Redis database using this configuration:
RedisModule.forRootAsync({
imports: [ConfigModule],
inject: [ConfigService],
useFactory: async (configService: ConfigService) => {
return {
readyLog: true,
config: {
url: 'rediss://default:<password>@<host>:25061',
},
};
},
}),
I take the connection string from DO, and it is correct. But when I try to connect, I get an error:
var err = new errorClasses.AbortError(error_attributes);
^
AbortError: Redis connection lost and command aborted. It might have been processed.
at RedisClient.flush_and_error (/Users/***/Desktop/server/node_modules/redis/index.js:298:23)
at RedisClient.connection_gone (/Users/***/Desktop/server/node_modules/redis/index.js:603:14)
at Socket.<anonymous> (/Users/***/Desktop/server/node_modules/redis/index.js:231:14)
at Object.onceWrapper (node:events:641:28)
at Socket.emit (node:events:539:35)
at endReadableNT (node:internal/streams/readable:1345:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
at new Command (/Users/***/Desktop/server/node_modules/redis/lib/command.js:12:22)
at RedisClient.info (/Users/***/Desktop/server/node_modules/redis/lib/individualCommands.js:169:39)
at RedisClient.ready_check (/Users/***/Desktop/server/node_modules/redis/index.js:470:10)
at RedisClient.on_connect (/Users/***/Desktop/server/node_modules/redis/index.js:364:14)
at Socket.<anonymous> (/Users/***/Desktop/server/node_modules/redis/index.js:213:14)
at Object.onceWrapper (node:events:641:28)
at Socket.emit (node:events:539:35)
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1173:10)
I believe this error is related to SSL/TLS connection and configuration
Context
Sorry if my problem is stupid or already solved. I am new to Redis
Your Environment
- Version used: 8.2.2
- NestJS version: 8.0.0
- Node.js version: 16.15.0
- Operating System and version (macOS, Windows, Linux): macOS
Metadata
Assignees
Labels
No labels