Live data from Hacker News

Serverless PhantomJS with IronWorker

blog.iron.io

11–17 of 17 posts

Re: Serverless PhantomJS with IronWorker

#11
post #7
post #4

On the iron_worker upload crawler step: ERROR -- IronWorkerNG: Can't find src with path='node_modules'

Hey Dentldir, make sure you get everything from that phantom-nodejs folder.... Try a git clone https://github.com/iron-io/iron_worker_examples and then follow the directions from /binary/phantom-nodejs

Much better. I manually downloaded the files the first time and missed the directory. Thanks.

Re: Serverless PhantomJS with IronWorker

#14
post #13

I'll echo another - how about wkhtmltopdf ?

Hey LogicX,

https://github.com/iron-io/iron_worker_examples/tree/master/...

then follow the blog post.

Let me know if you have any questions or issues. I'll try and do something more exciting later like grab 100 sites, create pdfs, and store them in S3 all in parallel.

Re: Serverless PhantomJS with IronWorker

#15

What about a CasperJs version as well?

casperjs is pretty unreliable, I wouldn't bother. Even for relatively trivial frontend testing we were using it for, it would crash ~50% of the time on Linux and Mac.

PhantomJS 1.6 is massively unstable. Downgrade to 1.5. I'm really surprised this hasn't been fixed yet - there are bugs in their tracker related to it.

Re: Serverless PhantomJS with IronWorker

#16

Earlier quoted context omitted.

casperjs is pretty unreliable, I wouldn't bother. Even for relatively trivial frontend testing we were using it for, it would crash ~50% of the time on Linux and Mac.

PhantomJS 1.6 is massively unstable. Downgrade to 1.5. I'm really surprised this hasn't been fixed yet - there are bugs in their tracker related to it.

That appears to have fixed it.

Re: Serverless PhantomJS with IronWorker

#17

Earlier quoted context omitted.

PhantomJS 1.6 is massively unstable. Downgrade to 1.5. I'm really surprised this hasn't been fixed yet - there are bugs in their tracker related to it.

That appears to have fixed it.

I'm happy to learn that (casperjs author here)
Post reply on HN