{"action":"closed","issue":{"url":"https://api.github.com/repos/cruzrr/node-weedfs/issues/14","repository_url":"https://api.github.com/repos/cruzrr/node-weedfs","labels_url":"https://api.github.com/repos/cruzrr/node-weedfs/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/cruzrr/node-weedfs/issues/14/comments","events_url":"https://api.github.com/repos/cruzrr/node-weedfs/issues/14/events","html_url":"https://github.com/cruzrr/node-weedfs/issues/14","id":80989200,"number":14,"title":"read with fileWriteStream has occured exception.","user":{"login":"breaklee","id":1390704,"avatar_url":"https://avatars.githubusercontent.com/u/1390704?v=3","gravatar_id":"","url":"https://api.github.com/users/breaklee","html_url":"https://github.com/breaklee","followers_url":"https://api.github.com/users/breaklee/followers","following_url":"https://api.github.com/users/breaklee/following{/other_user}","gists_url":"https://api.github.com/users/breaklee/gists{/gist_id}","starred_url":"https://api.github.com/users/breaklee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/breaklee/subscriptions","organizations_url":"https://api.github.com/users/breaklee/orgs","repos_url":"https://api.github.com/users/breaklee/repos","events_url":"https://api.github.com/users/breaklee/events{/privacy}","received_events_url":"https://api.github.com/users/breaklee/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cruzrr/node-weedfs/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-26T14:32:28Z","updated_at":"2016-02-22T06:12:13Z","closed_at":"2016-02-22T06:12:13Z","body":"how can i handle this error?\r\n=== code ===\r\nvar st = fs.createWriteStream(\"local-file-path\");\r\nweedfs.read(item.fid, fs);\r\n\r\n\r\n=== error ===\r\nstream.js:65\r\n  dest.on('drain', ondrain);\r\n       ^\r\nTypeError: undefined is not a function\r\n    at Request.Stream.pipe (stream.js:65:8)\r\n    at Request.pipe (/Users/breaklee/Documents/project/eazler/moez-chat/node_modules/weed-fs/node_modules/request/request.js:1514:34)\r\n    at /Users/breaklee/Documents/project/eazler/moez-chat/node_modules/weed-fs/lib/weedfs.js:150:23\r\n    at Request._callback (/Users/breaklee/Documents/project/eazler/moez-chat/node_modules/weed-fs/lib/weedfs.js:116:4)"}}