{"action":"opened","issue":{"url":"https://api.github.com/repos/juliangruber/browser-run/issues/52","labels_url":"https://api.github.com/repos/juliangruber/browser-run/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/juliangruber/browser-run/issues/52/comments","events_url":"https://api.github.com/repos/juliangruber/browser-run/issues/52/events","html_url":"https://github.com/juliangruber/browser-run/issues/52","id":114374895,"number":52,"title":"TypeError: Cannot call method 'pipe' of undefined","user":{"login":"orbiteleven","id":331393,"avatar_url":"https://avatars.githubusercontent.com/u/331393?v=3","gravatar_id":"","url":"https://api.github.com/users/orbiteleven","html_url":"https://github.com/orbiteleven","followers_url":"https://api.github.com/users/orbiteleven/followers","following_url":"https://api.github.com/users/orbiteleven/following{/other_user}","gists_url":"https://api.github.com/users/orbiteleven/gists{/gist_id}","starred_url":"https://api.github.com/users/orbiteleven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orbiteleven/subscriptions","organizations_url":"https://api.github.com/users/orbiteleven/orgs","repos_url":"https://api.github.com/users/orbiteleven/repos","events_url":"https://api.github.com/users/orbiteleven/events{/privacy}","received_events_url":"https://api.github.com/users/orbiteleven/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-31T00:00:04Z","updated_at":"2015-10-31T00:00:04Z","closed_at":null,"body":"```\r\nTypeError: Cannot call method 'pipe' of undefined\r\n    at /Users/damon/Uber/base-api-client/node_modules/tape-run/node_modules/browser-run/index.js:91:55\r\n    at process._tickCallback (node.js:442:13)\r\n    at Function.Module.runMain (module.js:499:11)\r\n    at startup (node.js:119:16)\r\n    at node.js:929:3\r\n```\r\nEncountered this with OS X, Node v0.10.36, NPM 2.14., PhantomJS 1.9.8. Occurs with default \"electron\" too.\r\n\r\nIt looks like the error is on line 91, where `browser.setEncoding('utf8')` doesn't return `browser`:\r\n```\r\nif (browser.pipe) browser.setEncoding('utf8').pipe(output);\r\n```"}}