We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 689187e commit d909595Copy full SHA for d909595
index.js
@@ -136,7 +136,7 @@ function errorHandler(
136
err.message === 'Connection is closed.' ||
137
err.name === 'RedisError' ||
138
err.name === 'MaxRetriesPerRequestError' ||
139
- Object.getPrototypeOf(err.constructor).name === 'RedisError'
+ (err.constructor && Object.getPrototypeOf(err.constructor).name === 'RedisError')
140
) {
141
// redis errors (e.g. ioredis' MaxRetriesPerRequestError)
142
err.status = 408;
0 commit comments