{"action":"created","issue":{"url":"https://api.github.com/repos/wavded/ogre/issues/55","repository_url":"https://api.github.com/repos/wavded/ogre","labels_url":"https://api.github.com/repos/wavded/ogre/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/wavded/ogre/issues/55/comments","events_url":"https://api.github.com/repos/wavded/ogre/issues/55/events","html_url":"https://github.com/wavded/ogre/issues/55","id":173852580,"number":55,"title":"Problem when sending files via http.post: stream ended unexpectedly","user":{"login":"TimoRuetten","id":7010059,"avatar_url":"https://avatars.githubusercontent.com/u/7010059?v=3","gravatar_id":"","url":"https://api.github.com/users/TimoRuetten","html_url":"https://github.com/TimoRuetten","followers_url":"https://api.github.com/users/TimoRuetten/followers","following_url":"https://api.github.com/users/TimoRuetten/following{/other_user}","gists_url":"https://api.github.com/users/TimoRuetten/gists{/gist_id}","starred_url":"https://api.github.com/users/TimoRuetten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TimoRuetten/subscriptions","organizations_url":"https://api.github.com/users/TimoRuetten/orgs","repos_url":"https://api.github.com/users/TimoRuetten/repos","events_url":"https://api.github.com/users/TimoRuetten/events{/privacy}","received_events_url":"https://api.github.com/users/TimoRuetten/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-29T19:29:58Z","updated_at":"2016-08-30T16:33:31Z","closed_at":null,"body":"I am trying to use your service to convert my files into GeoJSON.\r\n\r\nFor this I am using the http.post module you can find here:\r\nhttps://www.npmjs.com/package/http-post\r\n\r\nThis is my full code for sending an existing file to your service to get the GeoJSON back:\r\n\r\n```\r\nhttp.post('http://ogre.adc4gis.com/convert', {\r\n\r\n}, [\r\n  {\r\n    param: 'upload',\r\n    path:'/existing/file.zip'\r\n  }\r\n], function(res){\r\n  res.setEncoding('utf8');\r\n  res.on('data', function(chunk) {\r\n    console.log(chunk);\r\n  });\r\n});\r\n```\r\n\r\nAnd this is the result I am getting:\r\n`{\"error\":true,\"msg\":\"stream ended unexpectedly\"}`\r\n\r\n\r\nIs there something I am missing ?"},"comment":{"url":"https://api.github.com/repos/wavded/ogre/issues/comments/243499346","html_url":"https://github.com/wavded/ogre/issues/55#issuecomment-243499346","issue_url":"https://api.github.com/repos/wavded/ogre/issues/55","id":243499346,"user":{"login":"wavded","id":26638,"avatar_url":"https://avatars.githubusercontent.com/u/26638?v=3","gravatar_id":"","url":"https://api.github.com/users/wavded","html_url":"https://github.com/wavded","followers_url":"https://api.github.com/users/wavded/followers","following_url":"https://api.github.com/users/wavded/following{/other_user}","gists_url":"https://api.github.com/users/wavded/gists{/gist_id}","starred_url":"https://api.github.com/users/wavded/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wavded/subscriptions","organizations_url":"https://api.github.com/users/wavded/orgs","repos_url":"https://api.github.com/users/wavded/repos","events_url":"https://api.github.com/users/wavded/events{/privacy}","received_events_url":"https://api.github.com/users/wavded/received_events","type":"User","site_admin":false},"created_at":"2016-08-30T16:33:31Z","updated_at":"2016-08-30T16:33:31Z","body":"Hmm, I just tried and didn't have any issues using `request`:\r\n\r\n```js\r\nvar request = require('request')\r\nvar fs = require('fs')\r\n\r\nrequest.post({\r\n  url: 'http://ogre.adc4gis.com/convert',\r\n  formData: {upload: fs.createReadStream(__dirname + '/samples/sample.shp.zip')},\r\n}, function(er, res, body) {\r\n  if (er) return console.log(er)\r\n  console.log(body)\r\n})\r\n```\r\n\r\nWhat version of Node are you running?  And I'm assuming you are on the latest request package."}}
{"actor":{"display_login":"wavded"}}