baudehlo / node-phantom-simple

Simple bridge to phantomjs for Node
MIT License
201 stars 70 forks source link

Can node-phantom-simple handle multiple phantomjs instances #111

Closed MaestroJurko closed 8 years ago

MaestroJurko commented 8 years ago

As soon as I have multiple phantomjs instances, I am starting to get issues of PhantomJS kills. Were there any stress tests of multiple phantomjs instances running at one time?

baudehlo commented 8 years ago

You must be doing something wrong, because it was specifically written for this use-case.

On Thu, Jan 14, 2016 at 4:09 PM, mato75 notifications@github.com wrote:

As soon as I have multiple phantomjs instances, I am starting to get issues of PhantomJS kills Were there any stress tests of multiple phantomjs instances running at one time?

— Reply to this email directly or view it on GitHub https://github.com/baudehlo/node-phantom-simple/issues/111.

MaestroJurko commented 8 years ago

I am getting this issue all the time and there is no more info then this:

   [SyntaxError: Unexpected token E]

And after this, all hell breaks lose. HELP!!!!

MaestroJurko commented 8 years ago

Ok, found the problem. Issue is in parsing data, because data is this:

{ [HeadlessError: Error parsing JSON from phantom: SyntaxError: Unexpected token E
Data from phantom was: Error 403: Directory Listing Denied
Directory listing denied]
  name: 'HeadlessError',
  message: 'Error parsing JSON from phantom: SyntaxError: Unexpected token E\nData from phantom was: Error 403: Directory Listing Denied\nDirectory listing denied' }
ohenepee commented 8 years ago

Why was this ISSUE closed? The problem hasn't yet been solved or did @mato75 find a solution?

MaestroJurko commented 8 years ago

Yes, will write my solution, but don't have time right now.

8acker commented 8 years ago

any news on this bug? same here +1

awlayton commented 8 years ago

The "bug" for this issue never actually existed @tbouchnafa. node-phantom-simple does work with multiple instances.

rubenstolk commented 4 years ago

@puppeteer701 what was your solution?