{"action":"opened","issue":{"url":"https://api.github.com/repos/NodeRedis/node_redis/issues/1050","repository_url":"https://api.github.com/repos/NodeRedis/node_redis","labels_url":"https://api.github.com/repos/NodeRedis/node_redis/issues/1050/labels{/name}","comments_url":"https://api.github.com/repos/NodeRedis/node_redis/issues/1050/comments","events_url":"https://api.github.com/repos/NodeRedis/node_redis/issues/1050/events","html_url":"https://github.com/NodeRedis/node_redis/issues/1050","id":151836724,"number":1050,"title":"allow handling of \"READONLY You can't write against a read only slave.\" with retry_strategy","user":{"login":"samzilverberg","id":229485,"avatar_url":"https://avatars.githubusercontent.com/u/229485?v=3","gravatar_id":"","url":"https://api.github.com/users/samzilverberg","html_url":"https://github.com/samzilverberg","followers_url":"https://api.github.com/users/samzilverberg/followers","following_url":"https://api.github.com/users/samzilverberg/following{/other_user}","gists_url":"https://api.github.com/users/samzilverberg/gists{/gist_id}","starred_url":"https://api.github.com/users/samzilverberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samzilverberg/subscriptions","organizations_url":"https://api.github.com/users/samzilverberg/orgs","repos_url":"https://api.github.com/users/samzilverberg/repos","events_url":"https://api.github.com/users/samzilverberg/events{/privacy}","received_events_url":"https://api.github.com/users/samzilverberg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-29T10:27:09Z","updated_at":"2016-04-29T10:27:09Z","closed_at":null,"body":"* **Version**: 2.5.3\r\n* **Platform**: node js 0.10.x \r\n\r\nsimiliar to #830 but not about supporting multiple connection strings, rather about error handling and retry.\r\n\r\nWhat i've experiences using ElasticCache, is that when the master is demoted, the next 'write' operation (set) would return this error:\r\nREADONLY You can't write against a read only slave.\r\n\r\nI've tried writing a retry_strategy to catch this kind of error (and also a stale connection one) but it doesnt seem to be catching this one.\r\nI tried some debugging and cant seem to see the retry_strategy catching this kind of err.\r\n\r\nam i doing something wrong? or is the lib not using retry_strategy for this kind of err?"}}