{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-sdk-js/issues/1586","repository_url":"https://api.github.com/repos/aws/aws-sdk-js","labels_url":"https://api.github.com/repos/aws/aws-sdk-js/issues/1586/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-sdk-js/issues/1586/comments","events_url":"https://api.github.com/repos/aws/aws-sdk-js/issues/1586/events","html_url":"https://github.com/aws/aws-sdk-js/issues/1586","id":236998284,"number":1586,"title":"s3.getObject returns a body with buffer data ","user":{"login":"replicat0r","id":4330865,"avatar_url":"https://avatars2.githubusercontent.com/u/4330865?v=3","gravatar_id":"","url":"https://api.github.com/users/replicat0r","html_url":"https://github.com/replicat0r","followers_url":"https://api.github.com/users/replicat0r/followers","following_url":"https://api.github.com/users/replicat0r/following{/other_user}","gists_url":"https://api.github.com/users/replicat0r/gists{/gist_id}","starred_url":"https://api.github.com/users/replicat0r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/replicat0r/subscriptions","organizations_url":"https://api.github.com/users/replicat0r/orgs","repos_url":"https://api.github.com/users/replicat0r/repos","events_url":"https://api.github.com/users/replicat0r/events{/privacy}","received_events_url":"https://api.github.com/users/replicat0r/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-06-19T19:32:37Z","updated_at":"2017-06-19T19:36:45Z","closed_at":null,"body":"I have a simple service that allows user to upload a json, and later fetch it if they like. The code works last week, Now a week later, the service is breaking, I have made no change to the code since then. \r\n\r\nAfter some investigation, I found out that even the file is uploaded file, when I use s3 to fetch the object, this is the response I would get back\r\n\r\n{\"AcceptRanges\":\"bytes\",\"LastModified\":\"2017-04-27T14:45:03.000Z\",\"ContentLength\":1979,\"ETag\":\"\\\"0c9fe5331bd43a0829667996ae1d30a5\\\"\",\"ContentType\":\"binary/octet-stream\",\"Metadata\":{},\"Body\":{\"type\":\"Buffer\",\"data\":[]}}\r\n\r\nWhen I manually download the file, the object itself is fine. However fetching it via s3 seems to return an empty binary object. \r\n\r\nI am using the latest version of the the sdk, 2.7.x\r\n\r\nWhat can i do to fix this?"},"comment":{"url":"https://api.github.com/repos/aws/aws-sdk-js/issues/comments/309546852","html_url":"https://github.com/aws/aws-sdk-js/issues/1586#issuecomment-309546852","issue_url":"https://api.github.com/repos/aws/aws-sdk-js/issues/1586","id":309546852,"user":{"login":"replicat0r","id":4330865,"avatar_url":"https://avatars2.githubusercontent.com/u/4330865?v=3","gravatar_id":"","url":"https://api.github.com/users/replicat0r","html_url":"https://github.com/replicat0r","followers_url":"https://api.github.com/users/replicat0r/followers","following_url":"https://api.github.com/users/replicat0r/following{/other_user}","gists_url":"https://api.github.com/users/replicat0r/gists{/gist_id}","starred_url":"https://api.github.com/users/replicat0r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/replicat0r/subscriptions","organizations_url":"https://api.github.com/users/replicat0r/orgs","repos_url":"https://api.github.com/users/replicat0r/repos","events_url":"https://api.github.com/users/replicat0r/events{/privacy}","received_events_url":"https://api.github.com/users/replicat0r/received_events","type":"User","site_admin":false},"created_at":"2017-06-19T19:36:45Z","updated_at":"2017-06-19T19:36:45Z","body":"Nodejs v7.9.0"}}
{"actor":{"display_login":"replicat0r"}}