Meteor scary mistakes

My phantomjs / spiderable package continues to run smoothly.

spiderable: phantomjs failed: Error: Command failed: at ChildProcess.exithandler (child_process.js:648:15) at ChildProcess.emit (events.js:98:17) at maybeClose (child_process.js:756:16) at Process.ChildProcess._handle.onexit (child_process.js:823:5) spiderable: phantomjs failed: Error: Command failed: at ChildProcess.exithandler (child_process.js:648:15) at ChildProcess.emit (events.js:98:17) at maybeClose (child_process.js:756:16) at Process.ChildProcess._handle.onexit (child_process.js:823:5) spiderable: phantomjs failed: Error: Command failed: at ChildProcess.exithandler (child_process.js:648:15) at ChildProcess.emit (events.js:98:17) at maybeClose (child_process.js:756:16) at Process.ChildProcess._handle.onexit (child_process.js:823:5) spiderable: phantomjs failed: Error: Command failed: at ChildProcess.exithandler (child_process.js:648:15) at ChildProcess.emit (events.js:98:17) at maybeClose (child_process.js:756:16) at Process.ChildProcess._handle.onexit (child_process.js:823:5) spiderable: phantomjs failed: Error: Command failed: at ChildProcess.exithandler (child_process.js:648:15) at ChildProcess.emit (events.js:98:17) at maybeClose (child_process.js:756:16) at Process.ChildProcess._handle.onexit (child_process.js:823:5) /mnt/data/2/programs/server/packages/meteorhacks:kadira.js:2569 throw err; ^ TypeError: Cannot read property 'stack' of null at Object.Meteor._debug (packages/meteorhacks:kadira/lib/hijack/error.js:53) at packages/spiderable/spiderable_server.js:101 at ChildProcess.exithandler (child_process.js:646:7) at ChildProcess.emit (events.js:98:17) at maybeClose (child_process.js:756:16) at Process.ChildProcess._handle.onexit (child_process.js:823:5) [2014-09-10T07:44:15.144Z] Application CRASH detected. Exit code 7. 

If I go to the regular URL on the site, I don’t see an error, but if I drive logs, this happens quite often. Any idea on how to debug and figure this out?

+7
phantomjs meteor
source share
2 answers

Spiderable is known for being rather unreliable. Instead, I suggest using Prerender if you can: http://prerender.io

+1
source share

Spirerable package only works as a wrapper for phantomjs. Read the notes:

If you are deploying a meteorite packet application, you must install phantomjs ( http://phantomjs.org ) somewhere in your $ PATH. If you use meteor deployment, this will already be taken care of.

So, you must install phantomjs on your server yourself:

 sudo npm install phantomjs 

These packages may be useful:

dfischer: phantomjs

 meteor add dfischer:phantomjs 

or gadicohen: phantomjs

 meteor add gadicohen:phantomjs 
0
source share

All Articles