{"action":"created","issue":{"url":"https://api.github.com/repos/hit9/ssdb.py/issues/6","repository_url":"https://api.github.com/repos/hit9/ssdb.py","labels_url":"https://api.github.com/repos/hit9/ssdb.py/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/hit9/ssdb.py/issues/6/comments","events_url":"https://api.github.com/repos/hit9/ssdb.py/issues/6/events","html_url":"https://github.com/hit9/ssdb.py/issues/6","id":149754711,"number":6,"title":"Problem with not valid utf-8 data from ssdb","user":{"login":"bdfy","id":673961,"avatar_url":"https://avatars.githubusercontent.com/u/673961?v=3","gravatar_id":"","url":"https://api.github.com/users/bdfy","html_url":"https://github.com/bdfy","followers_url":"https://api.github.com/users/bdfy/followers","following_url":"https://api.github.com/users/bdfy/following{/other_user}","gists_url":"https://api.github.com/users/bdfy/gists{/gist_id}","starred_url":"https://api.github.com/users/bdfy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdfy/subscriptions","organizations_url":"https://api.github.com/users/bdfy/orgs","repos_url":"https://api.github.com/users/bdfy/repos","events_url":"https://api.github.com/users/bdfy/events{/privacy}","received_events_url":"https://api.github.com/users/bdfy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-20T12:34:04Z","updated_at":"2016-04-20T14:39:34Z","closed_at":null,"body":"simple \"bad\" ruby script:\r\n\r\nrequire 'zlib'.\r\nrequire 'date'.\r\nrequire 'redis'\r\nrequire 'cgi'\r\nrequire 'json'\r\nrequire 'uri'\r\n\r\n@redis = Redis.new(:host => '127.0.0.1', :port => 2380,:thread_safe => true, :db => 0)\r\n@redis.set 'test', \" \\xD0\\xAE\\xD0\\xB7\\xD0\\xB5\\xD1\\x80\\xD0\\xB0\\xD0\\xB3\\xD0\\xB5\\xD0\\xBD\\xD1\\x82 64\\xD1\\x8\"\r\n@redis.set 'test1', \" \\xD0\\xAE\\xD0\\xB7\\xD0\\xB5\\xD1\\x80\\xD0\\xB0\\xD0\\xB3\\xD0\\xB5\\xD0\\xBD\\xD1\\x82 64\\xD1\\x8\".encode('UTF-8', :invalid => :replace, :undef => :replace)\r\n\r\npython script:\r\nimport ssdb\r\ndb = ssdb.Client(host=\"localhost\", port=2380)\r\n\r\n    print ( db.get(\"test1\") )\r\n    try:\r\n        print ( db.get(\"test\") )\r\n    except:\r\n        db.conn.commands = []\r\n    print ( db.get(\"test1\") )\r\n    print ( db.get(\"test1\") )\r\n\r\n\r\nresult, exception, despite try/except:\r\nTraceback (most recent call last):\r\n  File \"./1.py\", line 14, in <module>\r\n    print ( db.get(\"test1\") )\r\n  File \"/usr/lib/python3.4/site-packages/ssdb.py\", line 199, in method\r\n    return self.conn.request()[0]\r\n  File \"/usr/lib/python3.4/site-packages/ssdb.py\", line 170, in request\r\n    self.parser.feed(string(buf))\r\n  File \"/usr/lib/python3.4/site-packages/ssdb.py\", line 21, in <lambda>\r\n    string = lambda binary: binary.decode('utf8')\r\nUnicodeDecodeError: 'utf-8' codec can't decode byte 0xd1 in position 30: invalid continuation byte\r\n\r\n  db.conn.commands = [] solve this problem\r\n"},"comment":{"url":"https://api.github.com/repos/hit9/ssdb.py/issues/comments/212451413","html_url":"https://github.com/hit9/ssdb.py/issues/6#issuecomment-212451413","issue_url":"https://api.github.com/repos/hit9/ssdb.py/issues/6","id":212451413,"user":{"login":"hit9","id":1687443,"avatar_url":"https://avatars.githubusercontent.com/u/1687443?v=3","gravatar_id":"","url":"https://api.github.com/users/hit9","html_url":"https://github.com/hit9","followers_url":"https://api.github.com/users/hit9/followers","following_url":"https://api.github.com/users/hit9/following{/other_user}","gists_url":"https://api.github.com/users/hit9/gists{/gist_id}","starred_url":"https://api.github.com/users/hit9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hit9/subscriptions","organizations_url":"https://api.github.com/users/hit9/orgs","repos_url":"https://api.github.com/users/hit9/repos","events_url":"https://api.github.com/users/hit9/events{/privacy}","received_events_url":"https://api.github.com/users/hit9/received_events","type":"User","site_admin":false},"created_at":"2016-04-20T14:39:34Z","updated_at":"2016-04-20T14:39:34Z","body":"Hi, I no more maintains this project, pull requests are welcome!"}}