{"action":"created","issue":{"url":"https://api.github.com/repos/hapijs/hapi/issues/3067","repository_url":"https://api.github.com/repos/hapijs/hapi","labels_url":"https://api.github.com/repos/hapijs/hapi/issues/3067/labels{/name}","comments_url":"https://api.github.com/repos/hapijs/hapi/issues/3067/comments","events_url":"https://api.github.com/repos/hapijs/hapi/issues/3067/events","html_url":"https://github.com/hapijs/hapi/issues/3067","id":137146263,"number":3067,"title":" Unexpected end of file, errno: -5, code: 'Z_BUF_ERROR'","user":{"login":"Martindelataille","id":1131616,"avatar_url":"https://avatars.githubusercontent.com/u/1131616?v=3","gravatar_id":"","url":"https://api.github.com/users/Martindelataille","html_url":"https://github.com/Martindelataille","followers_url":"https://api.github.com/users/Martindelataille/followers","following_url":"https://api.github.com/users/Martindelataille/following{/other_user}","gists_url":"https://api.github.com/users/Martindelataille/gists{/gist_id}","starred_url":"https://api.github.com/users/Martindelataille/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Martindelataille/subscriptions","organizations_url":"https://api.github.com/users/Martindelataille/orgs","repos_url":"https://api.github.com/users/Martindelataille/repos","events_url":"https://api.github.com/users/Martindelataille/events{/privacy}","received_events_url":"https://api.github.com/users/Martindelataille/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-29T04:19:38Z","updated_at":"2016-06-05T23:35:42Z","closed_at":null,"body":"Hi,\r\n\r\nI use HAPI 13.x / Node v5.4\r\nI am uploading file and data with 'multipart/form-data'.\r\n\r\nMy configuration is like this: \r\n`  { method: 'POST', path: '/file/{slug}/upload',\r\n    config: {\r\n      payload:{\r\n        maxBytes:6048576, // NOTE 6MB\r\n        output:'stream',\r\n        parse: true,\r\n      },\r\n      handler: require('./facets/file/create'),\r\n    },\r\n  },`\r\n\r\nAfter receive datas, i upload it to AWS S3 and save receive data to my database.\r\n\r\nIt's working but sometimes, i get :\r\n`cause: { [Error: unexpected end of file] errno: -5, code: 'Z_BUF_ERROR', response: null }`\r\n\r\nIt can be due with a simple PDF of 1MB."},"comment":{"url":"https://api.github.com/repos/hapijs/hapi/issues/comments/223844836","html_url":"https://github.com/hapijs/hapi/issues/3067#issuecomment-223844836","issue_url":"https://api.github.com/repos/hapijs/hapi/issues/3067","id":223844836,"user":{"login":"mtharrison","id":916064,"avatar_url":"https://avatars.githubusercontent.com/u/916064?v=3","gravatar_id":"","url":"https://api.github.com/users/mtharrison","html_url":"https://github.com/mtharrison","followers_url":"https://api.github.com/users/mtharrison/followers","following_url":"https://api.github.com/users/mtharrison/following{/other_user}","gists_url":"https://api.github.com/users/mtharrison/gists{/gist_id}","starred_url":"https://api.github.com/users/mtharrison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtharrison/subscriptions","organizations_url":"https://api.github.com/users/mtharrison/orgs","repos_url":"https://api.github.com/users/mtharrison/repos","events_url":"https://api.github.com/users/mtharrison/events{/privacy}","received_events_url":"https://api.github.com/users/mtharrison/received_events","type":"User","site_admin":false},"created_at":"2016-06-05T23:35:42Z","updated_at":"2016-06-05T23:35:42Z","body":"@Martindelataille can you provide any code that shows this? An example gist or repo would be helpful."}}
{"actor":{"display_login":"mtharrison"}}