{"action":"closed","issue":{"url":"https://api.github.com/repos/request/request/issues/1780","labels_url":"https://api.github.com/repos/request/request/issues/1780/labels{/name}","comments_url":"https://api.github.com/repos/request/request/issues/1780/comments","events_url":"https://api.github.com/repos/request/request/issues/1780/events","html_url":"https://github.com/request/request/issues/1780","id":107588042,"number":1780,"title":"pipe response of request to multipart request error","user":{"login":"kevinprotoss","id":3446906,"avatar_url":"https://avatars.githubusercontent.com/u/3446906?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinprotoss","html_url":"https://github.com/kevinprotoss","followers_url":"https://api.github.com/users/kevinprotoss/followers","following_url":"https://api.github.com/users/kevinprotoss/following{/other_user}","gists_url":"https://api.github.com/users/kevinprotoss/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinprotoss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinprotoss/subscriptions","organizations_url":"https://api.github.com/users/kevinprotoss/orgs","repos_url":"https://api.github.com/users/kevinprotoss/repos","events_url":"https://api.github.com/users/kevinprotoss/events{/privacy}","received_events_url":"https://api.github.com/users/kevinprotoss/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-21T20:04:05Z","updated_at":"2015-09-25T11:25:37Z","closed_at":"2015-09-25T11:25:37Z","body":"Hi,\r\n\r\nI tried to pipe the response of a request into another multipart request. However it doesn't work. I always get such an error `[Error: write EPIPE] code: 'EPIPE', errno: 'EPIPE', syscall: 'write'`\r\n\r\nWhat does this mean?\r\n\r\nThe code is like the following:\r\n\r\n```js\r\nlet res = request.get('http://localhost:8090/banner.jpg');\r\nlet req = request\r\n  .put('http://localhost:8080/test.jpg', {\r\n    formData: {\r\n      file: res\r\n    }\r\n  })\r\n  .on('response', (response) => {\r\n    console.log('statusCode', response.statusCode);\r\n  })\r\n  .on('error', (err) => {\r\n    console.log(err);\r\n  });\r\n```\r\n\r\nAnything else I did wrong?\r\nI tried to use `form-data` module directly and it works for me. Therefore I create an issue here. I guess it might be the reason of `request` module. \r\nIn addition, the same code above works if I put a file stream in the formData. That's really wierd...\r\n\r\nBg,\r\nKevin"}}