{"action":"created","issue":{"url":"https://api.github.com/repos/Borewit/music-metadata/issues/43","repository_url":"https://api.github.com/repos/Borewit/music-metadata","labels_url":"https://api.github.com/repos/Borewit/music-metadata/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/Borewit/music-metadata/issues/43/comments","events_url":"https://api.github.com/repos/Borewit/music-metadata/issues/43/events","html_url":"https://github.com/Borewit/music-metadata/issues/43","id":259654890,"number":43,"title":"this.s.once is not a function","user":{"login":"thisisnish","id":18157520,"avatar_url":"https://avatars2.githubusercontent.com/u/18157520?v=4","gravatar_id":"","url":"https://api.github.com/users/thisisnish","html_url":"https://github.com/thisisnish","followers_url":"https://api.github.com/users/thisisnish/followers","following_url":"https://api.github.com/users/thisisnish/following{/other_user}","gists_url":"https://api.github.com/users/thisisnish/gists{/gist_id}","starred_url":"https://api.github.com/users/thisisnish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thisisnish/subscriptions","organizations_url":"https://api.github.com/users/thisisnish/orgs","repos_url":"https://api.github.com/users/thisisnish/repos","events_url":"https://api.github.com/users/thisisnish/events{/privacy}","received_events_url":"https://api.github.com/users/thisisnish/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-09-21T22:48:35Z","updated_at":"2017-09-22T18:07:29Z","closed_at":null,"author_association":"NONE","body":"While trying to read an audio stream, the package throw below error. \r\n\r\n`     Uncaught TypeError: this.s.once is not a function\r\n      at new StreamReader (node_modules/then-read-stream/lib/index.js:28:16)\r\n      at new ReadStreamTokenizer (node_modules/strtok3/lib/ReadStreamTokenizer.js:20:30)\r\n      at Object.fromStream (node_modules/strtok3/lib/index.js:37:28)\r\n      at Function.ParserFactory.parseStream (node_modules/music-metadata/lib/ParserFactory.js:54:24)\r\n      at MusicMetadataParser.parseStream (node_modules/music-metadata/lib/index.js:103:46)\r\n      at Object.parseStream (node_modules/music-metadata/lib/index.js:289:46)\r\n      at audioType (app/controllers/uploads.js:63:15)\r\n      at IncomingMessage.<anonymous> (app/controllers/uploads.js:104:11)\r\n      at IncomingMessage.Readable.read (_stream_readable.js:381:10)\r\n      at flow (_stream_readable.js:761:34)\r\n      at resume_ (_stream_readable.js:743:3)\r\n      at _combinedTickCallback (internal/process/next_tick.js:74:11)\r\n      at process._tickDomainCallback (internal/process/next_tick.js:122:9)`"},"comment":{"url":"https://api.github.com/repos/Borewit/music-metadata/issues/comments/331520584","html_url":"https://github.com/Borewit/music-metadata/issues/43#issuecomment-331520584","issue_url":"https://api.github.com/repos/Borewit/music-metadata/issues/43","id":331520584,"user":{"login":"Borewit","id":23255260,"avatar_url":"https://avatars0.githubusercontent.com/u/23255260?v=4","gravatar_id":"","url":"https://api.github.com/users/Borewit","html_url":"https://github.com/Borewit","followers_url":"https://api.github.com/users/Borewit/followers","following_url":"https://api.github.com/users/Borewit/following{/other_user}","gists_url":"https://api.github.com/users/Borewit/gists{/gist_id}","starred_url":"https://api.github.com/users/Borewit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Borewit/subscriptions","organizations_url":"https://api.github.com/users/Borewit/orgs","repos_url":"https://api.github.com/users/Borewit/repos","events_url":"https://api.github.com/users/Borewit/events{/privacy}","received_events_url":"https://api.github.com/users/Borewit/received_events","type":"User","site_admin":false},"created_at":"2017-09-22T18:07:29Z","updated_at":"2017-09-22T18:07:29Z","author_association":"OWNER","body":"It looks like that the argument `stream` you provide to `MusicMetadataParser.parseStream(stream: Stream.Readable, mimeType: string, opts?: IOptions)` is actually not [stream (instance of Stream.Readable)](https://nodejs.org/api/stream.html#stream_class_stream_readable).\r\n\r\nI released a [new version of then-read-stream](https://github.com/Borewit/then-read-stream/releases/tag/v1.0.4) which checks the argument and throws an error if a stream is not provided.\r\n\r\nLet me know if I can help you with something."}}
{"actor":{"display_login":"Borewit"}}