You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an SSH tunnel running to my AWS VPC, above is redis-cli running from my development machine showing that it tunnels successfully, below is my javascript code that is not running successfully but I don't know why
constRedis=require('ioredis')constnodes=[{host: 'localhost',port: 6378}]constoptions={enableOfflineQueue: false}constclient=newRedis.Cluster(nodes,options)// ...it('ping should work',function(){this.timeout(10000)returnnewPromise(async(resolve,reject)=>{try{awaitclient.ping()resolve()}catch(err){reject(err)}})})
its reporting the following error...
Error: Cluster isn't ready and enableOfflineQueue options is false at tryConnection (node_modules/ioredis/built/cluster/index.js:599:32) at Cluster.sendCommand (node_modules/ioredis/built/cluster/index.js:522:9) at Cluster.ping (node_modules/ioredis/built/commander.js:122:25) at /Users/aronlilland/Documents/dev/controlair/oauth/test/lib/cache/client.spec.js:13:22 at new Promise (<anonymous>) at Context.<anonymous> (test/lib/cache/client.spec.js:10:12) at processImmediate (node:internal/timers:464:21)
The text was updated successfully, but these errors were encountered:
$ redis-cli -c -h localhost -p 6378 localhost:6378> ping PONG
I have an SSH tunnel running to my AWS VPC, above is redis-cli running from my development machine showing that it tunnels successfully, below is my javascript code that is not running successfully but I don't know why
its reporting the following error...
The text was updated successfully, but these errors were encountered: