{"action":"created","issue":{"url":"https://api.github.com/repos/hapijs/wreck/issues/90","labels_url":"https://api.github.com/repos/hapijs/wreck/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/hapijs/wreck/issues/90/comments","events_url":"https://api.github.com/repos/hapijs/wreck/issues/90/events","html_url":"https://github.com/hapijs/wreck/issues/90","id":85242536,"number":90,"title":"payload from callback param is empty","user":{"login":"kswedberg","id":3485,"avatar_url":"https://avatars.githubusercontent.com/u/3485?v=3","gravatar_id":"","url":"https://api.github.com/users/kswedberg","html_url":"https://github.com/kswedberg","followers_url":"https://api.github.com/users/kswedberg/followers","following_url":"https://api.github.com/users/kswedberg/following{/other_user}","gists_url":"https://api.github.com/users/kswedberg/gists{/gist_id}","starred_url":"https://api.github.com/users/kswedberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kswedberg/subscriptions","organizations_url":"https://api.github.com/users/kswedberg/orgs","repos_url":"https://api.github.com/users/kswedberg/repos","events_url":"https://api.github.com/users/kswedberg/events{/privacy}","received_events_url":"https://api.github.com/users/kswedberg/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-04T19:31:59Z","updated_at":"2015-06-04T20:48:40Z","closed_at":"2015-06-04T20:48:40Z","body":"When sending a POST with `options.payload` as a stringified JSON object, I get an empty string from the `payload` parameter of the callback function. If I add `json: true` or `json: 'force'` to the options object, I get `null` for the callback. I tried to track down where things are breaking in wreck/lib/index.js, and it looks like there might be something up with the Recorder instance. I can't see where its _write method is being called, and the buffer returned by `reader.collect()` always has a length of 0, even though in that same function I can still see the options.payload JSON. \r\n\r\nAm I doing something wrong here? Or is there a bug? Let me know if you need any more information. I would love to be able to use this plugin with my new hapi project.\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/hapijs/wreck/issues/comments/109045274","html_url":"https://github.com/hapijs/wreck/issues/90#issuecomment-109045274","issue_url":"https://api.github.com/repos/hapijs/wreck/issues/90","id":109045274,"user":{"login":"kswedberg","id":3485,"avatar_url":"https://avatars.githubusercontent.com/u/3485?v=3","gravatar_id":"","url":"https://api.github.com/users/kswedberg","html_url":"https://github.com/kswedberg","followers_url":"https://api.github.com/users/kswedberg/followers","following_url":"https://api.github.com/users/kswedberg/following{/other_user}","gists_url":"https://api.github.com/users/kswedberg/gists{/gist_id}","starred_url":"https://api.github.com/users/kswedberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kswedberg/subscriptions","organizations_url":"https://api.github.com/users/kswedberg/orgs","repos_url":"https://api.github.com/users/kswedberg/repos","events_url":"https://api.github.com/users/kswedberg/events{/privacy}","received_events_url":"https://api.github.com/users/kswedberg/received_events","type":"User","site_admin":false},"created_at":"2015-06-04T20:48:40Z","updated_at":"2015-06-04T20:48:40Z","body":"You know, I think it's actually a problem on my end with db setup so the route isn't returning anything. Sorry for the hassle."}}