How to use spiderable with meteor application hosted on .io module

I am trying to do promising work in my meteor application hosted on a module with SSL. I have Meteor 1.0, iron: router 1.0, spiderable and node phantomjs package

Everything works on localhost. But as soon as I deploy to the module, at first I had an error

spiderable: phantomjs failed: null 

Then I added the following environment variable to the module panel:

 METEOR_PKG_SPIDERABLE_PHANTOMJS_ARGS = --ssl-protocol=tlsv1 --ignore-ssl-errors=yes --debug=true 

This still does not work, and debugging displays several times (for example, a cycle after an error) the following message in the module console:

 2014-12-03T17:01:00 [DEBUG] WebPage - evaluateJavaScript "(function() { return (function () { if (typeof Meteor === 'undefined' || Meteor.status === undefined || !Meteor.status().connected) { return false; } if (typeof Package === 'undefined' || Package.spiderable === undefined || Package.spiderable.Spiderable === undefined || !Package.spiderable.Spiderable._initialSubscriptionsStarted) { return false; } Tracker.flush(); return DDP._allSubscriptionsReady(); })(); })()" 2014-12-03T17:01:00 [DEBUG] WebPage - evaluateJavaScript result QVariant(bool, false) 

If anyone knows how to solve this or managed to deploy the meteor project on modulus.io with SSL and spiderable. Let me know how to do it :)

Thank you so much!

+7
ssl meteor modulus
source share
1 answer

I solved my problem as follows:

This gave me more error information: Parse Error. Then it was a javascript file that was once compiled / reduced, an error caused by select2 was displayed. The js library that used it was flat-ui.js ( http://designmodo.imtqy.com/Flat-UI/ ).

I discovered this by testing many deployments on * .meteor.com and adding / removing a .js file.

  1. I am editing the flat-ui.js library to avoid the Parsing error.

  2. I redistributed to both modul.io and * .meteor.com. Everyone worked great on * .meteor.com, but still didn't work on modulus.io. This allows me to think of an SSL error, but I only saw "spiderable: phantomjs failed: null" in the moduleul.io logs.

  3. I add the following environment variable to the module panel:

    METEOR_PKG_SPIDERABLE_PHANTOMJS_ARGS = --debug = true

and it seems like it was a SSL Handshake error:

 [DEBUG] Network - Resource request error: 6 ( "SSL handshake failed" ) 
  1. I add one more parameter to the METEOR_PKG_SPIDERABLE_PHANTOMJS_ARGS environment variable:

    METEOR_PKG_SPIDERABLE_PHANTOMJS_ARGS = --ignore-ssl-errors = yes --debug = true

Now everything works fine on modul.io.

Summarizing:

  • solve javascript errors
  • add METEOR_PKG_SPIDERABLE_PHANTOMJS_ARGS = --ignore-ssl-errors = yes

Hope this helps some dudes

+4
source share