{"action":"closed","issue":{"url":"https://api.github.com/repos/NodeRedis/node_redis/issues/1399","repository_url":"https://api.github.com/repos/NodeRedis/node_redis","labels_url":"https://api.github.com/repos/NodeRedis/node_redis/issues/1399/labels{/name}","comments_url":"https://api.github.com/repos/NodeRedis/node_redis/issues/1399/comments","events_url":"https://api.github.com/repos/NodeRedis/node_redis/issues/1399/events","html_url":"https://github.com/NodeRedis/node_redis/issues/1399","id":387062174,"node_id":"MDU6SXNzdWUzODcwNjIxNzQ=","number":1399,"title":"Client keeps defaulting to localhost","user":{"login":"20k-ultra","id":3946250,"node_id":"MDQ6VXNlcjM5NDYyNTA=","avatar_url":"https://avatars1.githubusercontent.com/u/3946250?v=4","gravatar_id":"","url":"https://api.github.com/users/20k-ultra","html_url":"https://github.com/20k-ultra","followers_url":"https://api.github.com/users/20k-ultra/followers","following_url":"https://api.github.com/users/20k-ultra/following{/other_user}","gists_url":"https://api.github.com/users/20k-ultra/gists{/gist_id}","starred_url":"https://api.github.com/users/20k-ultra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/20k-ultra/subscriptions","organizations_url":"https://api.github.com/users/20k-ultra/orgs","repos_url":"https://api.github.com/users/20k-ultra/repos","events_url":"https://api.github.com/users/20k-ultra/events{/privacy}","received_events_url":"https://api.github.com/users/20k-ultra/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-12-04T00:12:36Z","updated_at":"2018-12-04T17:18:51Z","closed_at":"2018-12-04T17:18:51Z","author_association":"NONE","body":"**System:**\r\n\r\n- node_redis: 2.8.0\r\n- redis: 5\r\n- Alpine 3.8\r\n- Node v8.11.4\r\n\r\nI am connecting the following way:\r\n\r\n```\r\nconst   CLIENT = redis.createClient('redis://redis-cluster.amazonaws.com:6379')\r\n```\r\n\r\nExample Elasticache domain used... My issue is that when I see the logs my code is always trying to connect to **localhost** instead of my url provided. \r\n\r\nWhen I run it locally it tries to connect to the aws url but when it's actually deployed it tries localhost. Any advice? I've added a log statement to show that it's reaching the part of code that uses the aws url and not my local config.\r\n\r\nEDIT: It was a long day when I posted this issue so my apologies. After looking at my logs the url maps to 127.0.0.1 not localhost. So this issue is DNS related and not at all the redis library.\r\n\r\n[gitter]: https://gitter.im/NodeRedis/node_redis?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge"}}
{"actor":{"display_login":"20k-ultra"}}