cap-js-community / event-queue

An event queue that enables secure multi-tenant enabled transactional processing of asynchronous events, featuring instant event processing with Redis Pub/Sub and load distribution across all application instances.
https://cap-js-community.github.io/event-queue/
Apache License 2.0
11 stars 1 forks source link

redis error handling #114

Closed soccermax closed 5 months ago

soccermax commented 5 months ago
Unhandled exception: Promise rejected/uncaught exception but not handled. This is considered a bug - please catch your promises/exceptions!: Cannot read properties of undefined (reading 'address')
    at process.unhandledExceptionHandler (/home/vcap/app/srv/server.js:318:7)
    at process.emit (node:events:517:28)
    at emit (node:internal/process/promises:149:20)
    at processPromiseRejections (node:internal/process/promises:283:27)
    at processTicksAndRejections (node:internal/process/task_queues:96:32)
    at runNextTicks (node:internal/process/task_queues:64:3)
    at listOnTimeout (node:internal/timers:538:9)
    at process.processTimers (node:internal/timers:512:7)
caused by: TypeError: Cannot read properties of undefined (reading 'address')
    at RedisClusterSlots._RedisClusterSlots_initiatePubSubClient (/home/vcap/app/node_modules/@redis/client/dist/lib/cluster/cluster-slots.js:392:23)
    at RedisClusterSlots.getPubSubClient (/home/vcap/app/node_modules/@redis/client/dist/lib/cluster/cluster-slots.js:133:118)
    at Commander.SUBSCRIBE (/home/vcap/app/node_modules/@redis/client/dist/lib/cluster/index.js:151:78)
    at /home/vcap/app/node_modules/@cap-js-community/event-queue/src/shared/redis.js:83:14
    at Object.dynatraceOnServiceExecutionIndicator (/home/vcap/app/dynatrace/oneagent/agent/bin/1.277.165.20231024-150054/any/nodejs/nodejsagent.js:4045:22)
    at /home/vcap/app/dynatrace/oneagent/agent/bin/1.277.165.20231024-150054/any/nodejs/nodejsagent.js:9131:59
    at n.runInContext (/home/vcap/app/dynatrace/oneagent/agent/bin/1.277.165.20231024-150054/any/nodejs/nodejsagent.js:2281:24)
    at /home/vcap/app/dynatrace/oneagent/agent/bin/1.277.165.20231024-150054/any/nodejs/nodejsagent.js:9131:35
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at runNextTicks (node:internal/process/task_queues:64:3):