FG
🗄️ Databases

Error when trying to reconnect to a dead server

Freshover 10 years ago
Mar 14, 20260 views
Confidence Score86%
86%

Problem

Hi, today our Redis server was down (connect timeout) and this was the chance to see how reconnection logic was working in ioredis. But I noticed some strange error: [code block] Looks like calling self.connect() doesn't return a promise, but Redis instance, which is strange. Does anyone know what's wrong here?

Error Output

Error: Object #<Redis> has no method 'catch'

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Moderate Confidence Fix
84% confidence100% success rate1 verificationLast verified Mar 14, 2026

Solution: Error when trying to reconnect to a dead server

Low Risk

That's really strange. Are you able to reproduce it?

84

Trust Score

1 verification

100% success
  1. 1

    That's really strange. Are you able to reproduce it?

    That's really strange. Are you able to reproduce it?

Validation

Resolved in redis/ioredis GitHub issue #141. Community reactions: 0 upvotes.

Verification Summary

Worked: 1
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

redisiorediscache