patrikx3/redis-ui

Cannot set properties of undefined (setting 'rejectUnauthorized')

Closed this issue · 3 comments

When trying to connect to a Redis Cluster with TLS without specifying the certificate manually, all I'm getting is Cannot set properties of undefined (setting 'rejectUnauthorized'). Seems like setting the "Enable TLS without additional certificate" option isn't working.
I have a pretty normal ElastiCache Cluster with transport encryption & username and password. Connecting to the same cluster with redis-cli or ioredis is no problem from the same range.
The logs also just show the same error.

I'm on v2022.10.110. I don't see that I could be newer, but correct me if I'm wrong.

image

[P3XRS] [PID: 000008]  TypeError: Cannot set properties of undefined (setting 'rejectUnauthorized')                                                                                                                                                                             │
    at module.exports (/usr/local/lib/node_modules/p3x-redis-ui/node_modules/p3x-redis-ui-server/src/lib/ioredis-cluster/set-default-options-from-server.js:29:45)                                                                                                              │
    at new Cluster (/usr/local/lib/node_modules/p3x-redis-ui/node_modules/p3x-redis-ui-server/src/lib/ioredis-cluster/cluster.js:10:19)                                                                                                                                         │
    at new Redis (/usr/local/lib/node_modules/p3x-redis-ui/node_modules/p3x-redis-ui-server/src/lib/ioredis-cluster/redis.js:16:20)                                                                                                                                             │
    at module.exports (/usr/local/lib/node_modules/p3x-redis-ui/node_modules/p3x-redis-ui-server/src/service/socket.io/request/redis-test-connection.js:55:21)                                                                                                                  │
    at Socket.<anonymous> (/usr/local/lib/node_modules/p3x-redis-ui/node_modules/p3x-redis-ui-server/src/service/socket.io/socket.js:67:55)                                                                                                                                     │
    at Socket.emit (node:events:512:28)                                                                                                                                                                                                                                         │
    at Socket.emitUntyped (/usr/local/lib/node_modules/p3x-redis-ui/node_modules/socket.io/dist/typed-events.js:69:22)                                                                                                                                                          │
    at /usr/local/lib/node_modules/p3x-redis-ui/node_modules/socket.io/dist/socket.js:703:39                                                                                                                                                                                    │
    at process.processTicksAndRejections (node:internal/process/task_queues:77:11)  

i see the error, but i stopped working on this open source code. sorry

ok, i published the fix, it should be working