{"action":"created","issue":{"url":"https://api.github.com/repos/cloudinary/cloudinary_npm/issues/42","labels_url":"https://api.github.com/repos/cloudinary/cloudinary_npm/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/cloudinary/cloudinary_npm/issues/42/comments","events_url":"https://api.github.com/repos/cloudinary/cloudinary_npm/issues/42/events","html_url":"https://github.com/cloudinary/cloudinary_npm/issues/42","id":53112939,"number":42,"title":"Bug in samples/basic","user":{"login":"mycaule","id":6161385,"avatar_url":"https://avatars.githubusercontent.com/u/6161385?v=3","gravatar_id":"","url":"https://api.github.com/users/mycaule","html_url":"https://github.com/mycaule","followers_url":"https://api.github.com/users/mycaule/followers","following_url":"https://api.github.com/users/mycaule/following{/other_user}","gists_url":"https://api.github.com/users/mycaule/gists{/gist_id}","starred_url":"https://api.github.com/users/mycaule/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mycaule/subscriptions","organizations_url":"https://api.github.com/users/mycaule/orgs","repos_url":"https://api.github.com/users/mycaule/repos","events_url":"https://api.github.com/users/mycaule/events{/privacy}","received_events_url":"https://api.github.com/users/mycaule/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-12-30T12:36:59Z","updated_at":"2015-12-08T20:40:44Z","closed_at":"2015-02-26T08:10:37Z","body":"[basic.js#L41](https://github.com/cloudinary/cloudinary_npm/blob/master/samples/basic/basic.js#L41) causes the above error. \r\n\r\nWhen I comment the line, the sample code runs without problem. \r\n\r\n```\r\n_stream_writable.js:175\r\n    encoding = state.defaultEncoding;\r\n                    ^\r\nTypeError: Cannot read property 'defaultEncoding' of undefined\r\n    at ReadStream.Writable.write (_stream_writable.js:175:21)\r\n    at ReadStream.emit (events.js:95:17)\r\n    at ReadStream.<anonymous> (_stream_readable.js:748:14)\r\n    at ReadStream.emit (events.js:92:17)\r\n    at emitReadable_ (_stream_readable.js:410:10)\r\n    at emitReadable (_stream_readable.js:406:5)\r\n    at readableAddChunk (_stream_readable.js:168:9)\r\n    at ReadStream.Readable.push (_stream_readable.js:130:10)\r\n    at onread (fs.js:1568:12)\r\n    at Object.wrapper [as oncomplete] (fs.js:459:17)\r\n```"},"comment":{"url":"https://api.github.com/repos/cloudinary/cloudinary_npm/issues/comments/163011759","html_url":"https://github.com/cloudinary/cloudinary_npm/issues/42#issuecomment-163011759","issue_url":"https://api.github.com/repos/cloudinary/cloudinary_npm/issues/42","id":163011759,"user":{"login":"zkiiito","id":1292871,"avatar_url":"https://avatars.githubusercontent.com/u/1292871?v=3","gravatar_id":"","url":"https://api.github.com/users/zkiiito","html_url":"https://github.com/zkiiito","followers_url":"https://api.github.com/users/zkiiito/followers","following_url":"https://api.github.com/users/zkiiito/following{/other_user}","gists_url":"https://api.github.com/users/zkiiito/gists{/gist_id}","starred_url":"https://api.github.com/users/zkiiito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zkiiito/subscriptions","organizations_url":"https://api.github.com/users/zkiiito/orgs","repos_url":"https://api.github.com/users/zkiiito/repos","events_url":"https://api.github.com/users/zkiiito/events{/privacy}","received_events_url":"https://api.github.com/users/zkiiito/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T20:40:44Z","updated_at":"2015-12-08T20:40:44Z","body":"actually, this bug still exists in the documentation on heroku:\r\nhttps://devcenter.heroku.com/articles/cloudinary#using-with-node-js"}}