{"action":"created","issue":{"url":"https://api.github.com/repos/iron-meteor/iron-router/issues/1192","labels_url":"https://api.github.com/repos/iron-meteor/iron-router/issues/1192/labels{/name}","comments_url":"https://api.github.com/repos/iron-meteor/iron-router/issues/1192/comments","events_url":"https://api.github.com/repos/iron-meteor/iron-router/issues/1192/events","html_url":"https://github.com/iron-meteor/iron-router/issues/1192","id":55222155,"number":1192,"title":"Spiderable fiber issue","user":{"login":"wolasss","id":1525324,"avatar_url":"https://avatars.githubusercontent.com/u/1525324?v=3","gravatar_id":"","url":"https://api.github.com/users/wolasss","html_url":"https://github.com/wolasss","followers_url":"https://api.github.com/users/wolasss/followers","following_url":"https://api.github.com/users/wolasss/following{/other_user}","gists_url":"https://api.github.com/users/wolasss/gists{/gist_id}","starred_url":"https://api.github.com/users/wolasss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolasss/subscriptions","organizations_url":"https://api.github.com/users/wolasss/orgs","repos_url":"https://api.github.com/users/wolasss/repos","events_url":"https://api.github.com/users/wolasss/events{/privacy}","received_events_url":"https://api.github.com/users/wolasss/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-01-22T23:04:19Z","updated_at":"2015-02-16T22:10:59Z","closed_at":null,"body":"Well, I had some issues with iron router and spiderable on production environment (similar to this: [issue 1069](https://github.com/EventedMind/iron-router/issues/1069) and [stack overflow question](http://stackoverflow.com/questions/27135534/meteor-js-spiderable-and-iron-router-fiber-error-on-production-server)), and I managed to reproduce the bug on clean meteor instance with iron router. \r\n\r\nSo steps are:\r\n\r\n```\r\nmeteor create app\r\ncd app\r\nmeteor add iron:router\r\nmeteor add spiderable\r\n```\r\n\r\nNow run the application, and visit site at \"http://localhost:3000/?_escaped_fragment_=\". And server logs following error:\r\n\r\n```\r\nI20150122-23:59:24.062(1)? spiderable: phantomjs failed: { [Error: Command failed: ] killed: true, code: null, signal: 'SIGTERM' }\r\nI20150122-23:59:24.063(1)? stderr:\r\nW20150122-23:59:24.064(1)? (STDERR) Error: Meteor code must always run within a Fiber. Try wrapping callbacks that you pass to non-Meteor libraries with Meteor.bindEnvironment.\r\nW20150122-23:59:24.064(1)? (STDERR)     at Object.Meteor._nodeCodeMustBeInFiber (packages/meteor/dynamics_nodejs.js:9:1)\r\nW20150122-23:59:24.064(1)? (STDERR)     at [object Object]._.extend.get (packages/meteor/dynamics_nodejs.js:21:1)\r\nW20150122-23:59:24.064(1)? (STDERR)     at [object Object].RouteController.lookupOption (packages/iron:router/lib/route_controller.js:66:1)\r\nW20150122-23:59:24.064(1)? (STDERR)     at new Controller.extend.constructor (packages/iron:router/lib/route_controller.js:26:1)\r\nW20150122-23:59:24.065(1)? (STDERR)     at [object Object].ctor (packages/iron:core/lib/iron_core.js:88:1)\r\nW20150122-23:59:24.065(1)? (STDERR)     at Function.Router.createController (packages/iron:router/lib/router.js:201:1)\r\nW20150122-23:59:24.065(1)? (STDERR)     at Function.Router.dispatch (packages/iron:router/lib/router_server.js:39:1)\r\nW20150122-23:59:24.065(1)? (STDERR)     at Object.router (packages/iron:router/lib/router.js:15:1)\r\nW20150122-23:59:24.065(1)? (STDERR)     at next (/Users/wolas/.meteor/packages/webapp/.1.1.6.ik9rx6++os+web.browser+web.cordova/npm/node_modules/connect/lib/proto.js:190:15)\r\nW20150122-23:59:24.065(1)? (STDERR)     at packages/spiderable/spiderable_server.js:123:1\r\n```\r\n\r\nMeteor version: 1.0.3.1\r\nphantomjs version: 1.9.8,\r\nnode: v0.10.29\r\nmac os x\r\n\r\nSeems critical to me."},"comment":{"url":"https://api.github.com/repos/iron-meteor/iron-router/issues/comments/74580199","html_url":"https://github.com/iron-meteor/iron-router/issues/1192#issuecomment-74580199","issue_url":"https://api.github.com/repos/iron-meteor/iron-router/issues/1192","id":74580199,"user":{"login":"themeteorchef","id":8183166,"avatar_url":"https://avatars.githubusercontent.com/u/8183166?v=3","gravatar_id":"","url":"https://api.github.com/users/themeteorchef","html_url":"https://github.com/themeteorchef","followers_url":"https://api.github.com/users/themeteorchef/followers","following_url":"https://api.github.com/users/themeteorchef/following{/other_user}","gists_url":"https://api.github.com/users/themeteorchef/gists{/gist_id}","starred_url":"https://api.github.com/users/themeteorchef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/themeteorchef/subscriptions","organizations_url":"https://api.github.com/users/themeteorchef/orgs","repos_url":"https://api.github.com/users/themeteorchef/repos","events_url":"https://api.github.com/users/themeteorchef/events{/privacy}","received_events_url":"https://api.github.com/users/themeteorchef/received_events","type":"User","site_admin":false},"created_at":"2015-02-16T22:10:59Z","updated_at":"2015-02-16T22:10:59Z","body":"Attempting this now and getting similar output. Again, just visiting `http://localhost:3000/route/path?_escaped_fragment_=`:\r\n\r\n```\r\nI20150216-16:08:31.862(-6)? spiderable: phantomjs failed: { [Error: Command failed: ] killed: true, code: null, signal: 'SIGTERM' }\r\nI20150216-16:08:31.864(-6)? stderr:\r\nW20150216-16:08:31.888(-6)? (STDERR) Error: Meteor code must always run within a Fiber. Try wrapping callbacks that you pass to non-Meteor libraries with Meteor.bindEnvironment.\r\nW20150216-16:08:31.888(-6)? (STDERR)     at Object.Meteor._nodeCodeMustBeInFiber (packages/meteor/dynamics_nodejs.js:9:1)\r\nW20150216-16:08:31.888(-6)? (STDERR)     at [object Object]._.extend.get (packages/meteor/dynamics_nodejs.js:21:1)\r\nW20150216-16:08:31.888(-6)? (STDERR)     at [object Object].RouteController.lookupOption (packages/iron:router/lib/route_controller.js:66:1)\r\nW20150216-16:08:31.888(-6)? (STDERR)     at new Controller.extend.constructor (packages/iron:router/lib/route_controller.js:26:1)\r\nW20150216-16:08:31.888(-6)? (STDERR)     at [object Object].ctor (packages/iron:core/lib/iron_core.js:88:1)\r\nW20150216-16:08:31.888(-6)? (STDERR)     at Function.Router.createController (packages/iron:router/lib/router.js:201:1)\r\nW20150216-16:08:31.888(-6)? (STDERR)     at Function.Router.dispatch (packages/iron:router/lib/router_server.js:39:1)\r\nW20150216-16:08:31.888(-6)? (STDERR)     at Object.router (packages/iron:router/lib/router.js:15:1)\r\nW20150216-16:08:31.888(-6)? (STDERR)     at next (/Users/rglover/.meteor/packages/webapp/.1.1.6.1dih7yh++os+web.browser+web.cordova/npm/node_modules/connect/lib/proto.js:190:15)\r\nW20150216-16:08:31.889(-6)? (STDERR)     at packages/ongoworks:spiderable/spiderable_server.js:131:1\r\n```\r\n\r\nThis is after uninstalling the original `spiderable` package as well as `gadicohen:phantomjs`.\r\n\r\nSounds like @Volvox may be correct here."}}