{"action":"created","issue":{"url":"https://api.github.com/repos/NodeRedis/node_redis/issues/646","labels_url":"https://api.github.com/repos/NodeRedis/node_redis/issues/646/labels{/name}","comments_url":"https://api.github.com/repos/NodeRedis/node_redis/issues/646/comments","events_url":"https://api.github.com/repos/NodeRedis/node_redis/issues/646/events","html_url":"https://github.com/NodeRedis/node_redis/issues/646","id":40314099,"number":646,"title":"hgetall on a non-existent key returns null","user":{"login":"jsu1212","id":4029325,"avatar_url":"https://avatars.githubusercontent.com/u/4029325?v=3","gravatar_id":"","url":"https://api.github.com/users/jsu1212","html_url":"https://github.com/jsu1212","followers_url":"https://api.github.com/users/jsu1212/followers","following_url":"https://api.github.com/users/jsu1212/following{/other_user}","gists_url":"https://api.github.com/users/jsu1212/gists{/gist_id}","starred_url":"https://api.github.com/users/jsu1212/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsu1212/subscriptions","organizations_url":"https://api.github.com/users/jsu1212/orgs","repos_url":"https://api.github.com/users/jsu1212/repos","events_url":"https://api.github.com/users/jsu1212/events{/privacy}","received_events_url":"https://api.github.com/users/jsu1212/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-08-15T00:40:15Z","updated_at":"2015-08-15T19:38:20Z","closed_at":"2015-08-15T19:38:20Z","body":"```\r\nvar redis = require('redis');\r\nvar c = redis.createClient();\r\n\r\nc.hgetall('key-does-not-exist', function (err, val) {\r\n    console.log(val);\r\n});\r\n```\r\n\r\nThis prints null.  I believe this is due to https://github.com/mranney/node_redis/blob/master/index.js#L613.  I think a more useful return value would be {}, which would be in line with what the redis-py client does.\r\n\r\nChanging this would have some serious backwards compatibility implications though."},"comment":{"url":"https://api.github.com/repos/NodeRedis/node_redis/issues/comments/131434626","html_url":"https://github.com/NodeRedis/node_redis/issues/646#issuecomment-131434626","issue_url":"https://api.github.com/repos/NodeRedis/node_redis/issues/646","id":131434626,"user":{"login":"blainsmith","id":483829,"avatar_url":"https://avatars.githubusercontent.com/u/483829?v=3","gravatar_id":"","url":"https://api.github.com/users/blainsmith","html_url":"https://github.com/blainsmith","followers_url":"https://api.github.com/users/blainsmith/followers","following_url":"https://api.github.com/users/blainsmith/following{/other_user}","gists_url":"https://api.github.com/users/blainsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/blainsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blainsmith/subscriptions","organizations_url":"https://api.github.com/users/blainsmith/orgs","repos_url":"https://api.github.com/users/blainsmith/repos","events_url":"https://api.github.com/users/blainsmith/events{/privacy}","received_events_url":"https://api.github.com/users/blainsmith/received_events","type":"User","site_admin":false},"created_at":"2015-08-15T19:38:20Z","updated_at":"2015-08-15T19:38:20Z","body":"In order to better support this project and its new group of collaborators under a new org we are trying to clean up and close issues older than 6 months. Your issue may have been fixed since the issue was open, however, if you are still experiencing a problem **please** re-open this issue and we will label it accordingly."}}