{"action":"created","issue":{"url":"https://api.github.com/repos/python-lz4/python-lz4/issues/143","repository_url":"https://api.github.com/repos/python-lz4/python-lz4","labels_url":"https://api.github.com/repos/python-lz4/python-lz4/issues/143/labels{/name}","comments_url":"https://api.github.com/repos/python-lz4/python-lz4/issues/143/comments","events_url":"https://api.github.com/repos/python-lz4/python-lz4/issues/143/events","html_url":"https://github.com/python-lz4/python-lz4/issues/143","id":345680423,"node_id":"MDU6SXNzdWUzNDU2ODA0MjM=","number":143,"title":"LZ4F_getFrameInfo failed with code: ERROR_frameType_unknown","user":{"login":"Nitika123","id":20179339,"node_id":"MDQ6VXNlcjIwMTc5MzM5","avatar_url":"https://avatars1.githubusercontent.com/u/20179339?v=4","gravatar_id":"","url":"https://api.github.com/users/Nitika123","html_url":"https://github.com/Nitika123","followers_url":"https://api.github.com/users/Nitika123/followers","following_url":"https://api.github.com/users/Nitika123/following{/other_user}","gists_url":"https://api.github.com/users/Nitika123/gists{/gist_id}","starred_url":"https://api.github.com/users/Nitika123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nitika123/subscriptions","organizations_url":"https://api.github.com/users/Nitika123/orgs","repos_url":"https://api.github.com/users/Nitika123/repos","events_url":"https://api.github.com/users/Nitika123/events{/privacy}","received_events_url":"https://api.github.com/users/Nitika123/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-07-30T09:30:21Z","updated_at":"2018-07-30T09:59:39Z","closed_at":null,"author_association":"NONE","body":"I compressed the data using lz4 java library (https://github.com/lz4/lz4-java) and want to decompress it in python using your library. And the compressed data is available in redis cluster. When I execute the following code:\r\n\r\n    from rediscluster import StrictRedisCluster\r\n    startup_nodes = [{\"host\": \"my_host\", \"port\": \"7002\"}]\r\n    rc = StrictRedisCluster(startup_nodes=startup_nodes, decode_responses=False)\r\n    result=rc.hget(\"key\",\"field\")\r\n    from lz4.frame import compress, decompress\r\n    decompress(result)\r\n\r\nI am getting the error:\"LZ4F_getFrameInfo failed with code: ERROR_frameType_unknown\"\r\n\r\nWhat am I doing wrong? \r\n"},"comment":{"url":"https://api.github.com/repos/python-lz4/python-lz4/issues/comments/408811924","html_url":"https://github.com/python-lz4/python-lz4/issues/143#issuecomment-408811924","issue_url":"https://api.github.com/repos/python-lz4/python-lz4/issues/143","id":408811924,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODgxMTkyNA==","user":{"login":"jonathanunderwood","id":992114,"node_id":"MDQ6VXNlcjk5MjExNA==","avatar_url":"https://avatars2.githubusercontent.com/u/992114?v=4","gravatar_id":"","url":"https://api.github.com/users/jonathanunderwood","html_url":"https://github.com/jonathanunderwood","followers_url":"https://api.github.com/users/jonathanunderwood/followers","following_url":"https://api.github.com/users/jonathanunderwood/following{/other_user}","gists_url":"https://api.github.com/users/jonathanunderwood/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanunderwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanunderwood/subscriptions","organizations_url":"https://api.github.com/users/jonathanunderwood/orgs","repos_url":"https://api.github.com/users/jonathanunderwood/repos","events_url":"https://api.github.com/users/jonathanunderwood/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanunderwood/received_events","type":"User","site_admin":false},"created_at":"2018-07-30T09:59:39Z","updated_at":"2018-07-30T09:59:39Z","author_association":"MEMBER","body":"It seems the Java bindings don't store the uncompressed size in the compressed string, so you'll need to specify it:\r\n\r\n```\r\n>>> import lz4.block as lb\r\n>>> c=b'\\xfc\\x0b\\x84\\xb0s_w_photogallery\\xdc\\x00\\x15\\xc0\\xc0\\xa13\\xc0\\x01\\x00\\xa0\\xa820180516\\xaa2\\x00\\xf5\\x19images\\xdc\\x00\\x15\\xb40.024513947590870666\\xa40.29\\xa244\\xa12F\\x00b\\xa30.9\\xa11\\x06\\x00b\\xc0\\xc0\\xa3184Q\\x00@725\\xa9Q\\x00Rvideo|\\x00\\x1515\\x00\\x10\\xc0*\\x00 .02\\x002\\xa2491\\x00q407\\xa5sto\\xa9\\x00\\xf6\\x10\\xb30.04410888138287304\\xa42.22\\xa3858\\xa24I\\x00\\xf0\\x14\\xa31.1\\xa15\\xa42.71\\xa215\\xa40.05\\xa11\\xa41353\\xa820180725'\r\n>>> lb.decompress(c, uncompressed_size=266)\r\nb'\\x84\\xb0s_w_photogallery\\xdc\\x00\\x15\\xc0\\xc0\\xa13\\xc0\\xc0\\xc0\\xc0\\xc0\\xc0\\xc0\\xc0\\xc0\\xc0\\xc0\\xc0\\xc0\\xc0\\xc0\\xc0\\xc0\\xa820180516\\xaas_w_images\\xdc\\x00\\x15\\xb40.024513947590870666\\xa40.29\\xa244\\xa12\\xc0\\xc0\\xc0\\xc0\\xc0\\xc0\\xc0\\xc0\\xc0\\xa30.9\\xa11\\xa30.9\\xa11\\xc0\\xc0\\xa3184\\xa820180725\\xa9s_w_video\\xdc\\x00\\x15\\xc0\\xc0\\xa11\\xc0\\xc0\\xc0\\xc0\\xc0\\xc0\\xc0\\xc0\\xc0\\xc0\\xc0\\xc0\\xa31.0\\xa11\\xc0\\xc0\\xa249\\xa820180407\\xa5story\\xdc\\x00\\x15\\xb30.04410888138287304\\xa42.22\\xa3858\\xa241\\xc0\\xc0\\xc0\\xc0\\xc0\\xc0\\xc0\\xc0\\xc0\\xa31.1\\xa15\\xa42.71\\xa215\\xa40.05\\xa11\\xa41353\\xa820180725'\r\n```\r\n\r\n"}}
{"actor":{"display_login":"jonathanunderwood"}}