skip to Main Content

Error Connecting to Online redis Database

I am trying to connect to my online redis database. const redis = require('redis'); const client = redis.createClient({ password: '<password>', socket: { host: <host> port: <port> } }); client.on('connect', function() { console.log('client connected'); }); client.on('error', function(err) { console.error('Error connecting to…

VIEW QUESTION

Redis – TypeError: Invalid argument type while push list to List in Node JS

Hey I am getting this error /home/gm/Desktop/ZulfDemo/streamusingws/node_modules/@redis/client/dist/lib/client/RESP2/encoder.js:17 throw new TypeError('Invalid argument type'); While I am trying to run this script const redis = require("redis"); const redisclient = redis.createClient(); (async () => { await redisclient.connect(); })(); console.log("Connecting to the Redis"); redisclient.on("ready",…

VIEW QUESTION
Back To Top
Search