{"action":"created","issue":{"url":"https://api.github.com/repos/amir20/phantomjs-node/issues/525","repository_url":"https://api.github.com/repos/amir20/phantomjs-node","labels_url":"https://api.github.com/repos/amir20/phantomjs-node/issues/525/labels{/name}","comments_url":"https://api.github.com/repos/amir20/phantomjs-node/issues/525/comments","events_url":"https://api.github.com/repos/amir20/phantomjs-node/issues/525/events","html_url":"https://github.com/amir20/phantomjs-node/issues/525","id":171300816,"number":525,"title":"Failing on instance.createPage()","user":{"login":"joedunu","id":9999333,"avatar_url":"https://avatars.githubusercontent.com/u/9999333?v=3","gravatar_id":"","url":"https://api.github.com/users/joedunu","html_url":"https://github.com/joedunu","followers_url":"https://api.github.com/users/joedunu/followers","following_url":"https://api.github.com/users/joedunu/following{/other_user}","gists_url":"https://api.github.com/users/joedunu/gists{/gist_id}","starred_url":"https://api.github.com/users/joedunu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joedunu/subscriptions","organizations_url":"https://api.github.com/users/joedunu/orgs","repos_url":"https://api.github.com/users/joedunu/repos","events_url":"https://api.github.com/users/joedunu/events{/privacy}","received_events_url":"https://api.github.com/users/joedunu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/amir20/phantomjs-node/labels/Awaiting%20Response","name":"Awaiting Response","color":"d4c5f9"},{"url":"https://api.github.com/repos/amir20/phantomjs-node/labels/Cannot%20Reproduce","name":"Cannot Reproduce","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-16T01:31:07Z","updated_at":"2016-08-16T18:01:49Z","closed_at":null,"body":"### Expected behavior\r\n\r\nReturn a promise for creating page\r\n\r\n### Actual behavior\r\n\r\nFailing with 'error:  TypeError: undefined is not a function' at line: /phantom/lib/phantom.js:240:56\r\n\r\n### Steps to reproduce the behavior\r\n\r\n1. create phantom session:  phantom.create([], undefined)\r\n2. phantomSession.createPage() \r\n\r\n`function createPhantomSession() {`\r\n`  var defer = Q.defer();`\r\n`  if (phantomSession) {`\r\n`    defer.resolve(phantomSession);`\r\n`  } else {`\r\n`    var params = undefined;`\r\n`    // Phantom path override option`\r\n`    if (config.phantom.path) {`\r\n`     params = {phantomPath: config.phantom.path};`\r\n`    }`\r\n   ` phantom.create([], params).then(function (ph) {`\r\n    `  console.info('New phantom session created');`\r\n   `   phantomSession = ph;`\r\n`      defer.resolve(phantomSession);`\r\n`    })`\r\n`  }`\r\n`  return defer.promise;`\r\n`}`\r\n\r\n`return createPhantomSession().then(function () {`\r\n `   return phantomSession.createPage();`\r\n ` }).then(function (page) {`\r\n\r\n### Environment\r\n\r\n- OS: UBUNTU 14.04.5\r\n- Node version (`node -v`): 0.12.9\r\n- package version: 2.1.16\r\n"},"comment":{"url":"https://api.github.com/repos/amir20/phantomjs-node/issues/comments/240185828","html_url":"https://github.com/amir20/phantomjs-node/issues/525#issuecomment-240185828","issue_url":"https://api.github.com/repos/amir20/phantomjs-node/issues/525","id":240185828,"user":{"login":"amir20","id":260667,"avatar_url":"https://avatars.githubusercontent.com/u/260667?v=3","gravatar_id":"","url":"https://api.github.com/users/amir20","html_url":"https://github.com/amir20","followers_url":"https://api.github.com/users/amir20/followers","following_url":"https://api.github.com/users/amir20/following{/other_user}","gists_url":"https://api.github.com/users/amir20/gists{/gist_id}","starred_url":"https://api.github.com/users/amir20/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amir20/subscriptions","organizations_url":"https://api.github.com/users/amir20/orgs","repos_url":"https://api.github.com/users/amir20/repos","events_url":"https://api.github.com/users/amir20/events{/privacy}","received_events_url":"https://api.github.com/users/amir20/received_events","type":"User","site_admin":false},"created_at":"2016-08-16T18:01:49Z","updated_at":"2016-08-16T18:01:49Z","body":"> node version: 0.12.7\r\n\r\nThat node version is not supported. "}}
{"actor":{"display_login":"amir20"}}