skip to Main Content

Redis keeps failing on Windows 10 with Node.JS : Error: Redis connection to 127.0.0.1:6379 failed – connect ECONNREFUSED 127.0.0.1:6379

Consider the code : const mongoose = require("mongoose"); const redis = require("redis"); const util = require("util"); const redisUrl = "redis://127.0.0.1:6379"; const client = redis.createClient(redisUrl); client.hget = util.promisify(client.hget); const exec = mongoose.Query.prototype.exec; mongoose.Query.prototype.cache = function(options = {}) { this.useCache = true;…

VIEW QUESTION

How to handle "Redis.exceptions.ConnectionError: Connection has data"

I receive following output: Traceback (most recent call last): File "/home/ec2-user/env/lib64/python3.7/site-packages/redis/connection.py", line 1192, in get_connection raise ConnectionError('Connection has data') redis.exceptions.ConnectionError: Connection has data During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/ec2-user/env/lib64/python3.7/site-packages/eventlet/hubs/hub.py", line…

VIEW QUESTION

Bursts of Redis errors

We've recently created a new Standard 1 GB Azure Redis cache specifically for distributed locking - separated from our main Redis cache. This was done to improve stability on our main Redis cache which is a very long term issue…

VIEW QUESTION
Back To Top
Search