{"action":"created","issue":{"url":"https://api.github.com/repos/TelescopeJS/Telescope/issues/1116","labels_url":"https://api.github.com/repos/TelescopeJS/Telescope/issues/1116/labels{/name}","comments_url":"https://api.github.com/repos/TelescopeJS/Telescope/issues/1116/comments","events_url":"https://api.github.com/repos/TelescopeJS/Telescope/issues/1116/events","html_url":"https://github.com/TelescopeJS/Telescope/issues/1116","id":104559631,"number":1116,"title":"Can't send newsletter w/ mupx setup (spiderable PhantomJS error)","user":{"login":"williammwhite","id":1037848,"avatar_url":"https://avatars.githubusercontent.com/u/1037848?v=3","gravatar_id":"","url":"https://api.github.com/users/williammwhite","html_url":"https://github.com/williammwhite","followers_url":"https://api.github.com/users/williammwhite/followers","following_url":"https://api.github.com/users/williammwhite/following{/other_user}","gists_url":"https://api.github.com/users/williammwhite/gists{/gist_id}","starred_url":"https://api.github.com/users/williammwhite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/williammwhite/subscriptions","organizations_url":"https://api.github.com/users/williammwhite/orgs","repos_url":"https://api.github.com/users/williammwhite/repos","events_url":"https://api.github.com/users/williammwhite/events{/privacy}","received_events_url":"https://api.github.com/users/williammwhite/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-02T19:57:29Z","updated_at":"2015-09-02T21:37:41Z","closed_at":"2015-09-02T21:37:41Z","body":"I used mupx to setup and deploy and everything was working great until the newsletter was scheduled to be sent out.  The posts get tagged as sent but no connection is made to Mailchimp to create a new campaign.   \r\n\r\nWhen I trigger manually using the 'testCampaign' call in the browser it works fine:\r\n\r\n// Creating campaign…\r\n// Campaign created\r\n// Campaign scheduled for 2015-09-02 20:21:42\r\n\r\nBut when it gets triggered automatically (based on the time the newsletter is supposed to go out) I get:\r\n\r\nspiderable: phantomjs failed: Error: Command failed: Can't open '/dev/stdin'\r\n    at ChildProcess.exithandler (child_process.js:658:15)\r\n    at ChildProcess.emit (events.js:98:17)\r\n    at maybeClose (child_process.js:766:16)\r\n    at Process.ChildProcess._handle.onexit (child_process.js:833:5) \r\nstderr: Can't open '/dev/stdin'\r\n[104.130.132.53]     at Function.Router.dispatch (packages/iron:router/lib/router_server.js:39:1)\r\n    at Object.router (packages/iron:router/lib/router.js:15:1)\r\n    at next (/bundle/bundle/programs/server/npm/webapp/node_modules/connect/lib/proto.js:190:15)\r\n    at Object.Package [as handle] (packages/cfs:http-methods/http.methods.server.api.js:418:1)\r\nError: Meteor code must always run within a Fiber. Try wrapping callbacks that you pass to non-Meteor libraries with Meteor.bindEnvironment.\r\n    at Object.Meteor._nodeCodeMustBeInFiber (packages/meteor/dynamics_nodejs.js:9:1)\r\n    at [object Object]._.extend.get (packages/meteor/dynamics_nodejs.js:21:1)\r\n    at [object Object].RouteController.lookupOption (packages/iron:router/lib/route_controller.js:66:1)\r\n    at new Controller.extend.constructor (packages/iron:router/lib/route_controller.js:26:1)\r\n    at [object Object].ctor (packages/iron:core/lib/iron_core.js:88:1)\r\n    at Function.Router.createController (packages/iron:router/lib/router.js:201:1)\r\n    at Function.Router.dispatch (packages/iron:router/lib/router_server.js:39:1)\r\n    at Object.router (packages/iron:router/lib/router.js:15:1)\r\n    at next (/bundle/bundle/programs/server/npm/webapp/node_modules/connect/lib/proto.js:190:15)\r\n    at Object.Package [as handle] (packages/cfs:http-methods/http.methods.server.api.js:418:1)\r\nError: Meteor code must always run within a Fiber. Try wrapping callbacks that you pass to non-Meteor libraries with Meteor.bindEnvironment.\r\n\r\nI saw someone else had this issue and uninstalled phtantomJS via npm and added ongoworks:spiderable, but since everything is deployed into the docker container - how do I do this? \r\n\r\nThanks,\r\n\r\nWW"},"comment":{"url":"https://api.github.com/repos/TelescopeJS/Telescope/issues/comments/137251841","html_url":"https://github.com/TelescopeJS/Telescope/issues/1116#issuecomment-137251841","issue_url":"https://api.github.com/repos/TelescopeJS/Telescope/issues/1116","id":137251841,"user":{"login":"williammwhite","id":1037848,"avatar_url":"https://avatars.githubusercontent.com/u/1037848?v=3","gravatar_id":"","url":"https://api.github.com/users/williammwhite","html_url":"https://github.com/williammwhite","followers_url":"https://api.github.com/users/williammwhite/followers","following_url":"https://api.github.com/users/williammwhite/following{/other_user}","gists_url":"https://api.github.com/users/williammwhite/gists{/gist_id}","starred_url":"https://api.github.com/users/williammwhite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/williammwhite/subscriptions","organizations_url":"https://api.github.com/users/williammwhite/orgs","repos_url":"https://api.github.com/users/williammwhite/repos","events_url":"https://api.github.com/users/williammwhite/events{/privacy}","received_events_url":"https://api.github.com/users/williammwhite/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T21:37:41Z","updated_at":"2015-09-02T21:37:41Z","body":"OK.  This is working now. \r\n\r\nmeteor add ongoworks:spiderable solved the problem. \r\n\r\nI was confused by a lagging cron job with my second comment.  All is well.  (-:"}}