-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
SentinelIterator throws error after upgrade from v3 to v4 #936
SentinelIterator throws error after upgrade from v3 to v4 #936
Comments
Thank you for pointing this out. This issue is caused by passing an option that was handled by |
I've upgraded from v3.2.1 but still, that code lies there as well. |
## [4.13.1](v4.13.0...v4.13.1) (2019-07-22) ### Bug Fixes * keep sentinels of options immutable ([bacb7e1](bacb7e1)), closes [#936](#936)
🎉 This issue has been resolved in version 4.13.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [4.13.1](redis/ioredis@v4.13.0...v4.13.1) (2019-07-22) ### Bug Fixes * keep sentinels of options immutable ([bacb7e1](redis/ioredis@bacb7e1)), closes [#936](redis/ioredis#936)
I get this error after upgrading to the latest version. Sentinels are properly configured.
Changing this line from
https://github.com/luin/ioredis/blob/e593e349fd2811eed2f1a369ffb3a06205909482/lib/connectors/SentinelConnector/SentinelIterator.ts#L42
to
this.sentinels = [...this.sentinels, sentinel];
fixed it for me. I wonder why nobody else is getting this :/
The text was updated successfully, but these errors were encountered: