Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NetStat access / errors when opening page (Azure) - why needed? #314

Open
hardcodet opened this issue Sep 27, 2017 · 3 comments
Open

NetStat access / errors when opening page (Azure) - why needed? #314

hardcodet opened this issue Sep 27, 2017 · 3 comments

Comments

@hardcodet
Copy link

hardcodet commented Sep 27, 2017

I did a simple trial of Phantom in Azure Functions today, and then gave Horseman a try because it offers a nicer API. I was assuming those have the same requirements, but while my Phantom-only test worked just fine, Horseman crashes with this simple snippet:

var buf = horseman
    .open('http://www.google.com')
    .catch(function(err) {
        context.log("ERROR " + err);
    })
    .close();

The logged output was as follows:
ERROR HeadlessError: Error executing command to extract phantom ports: Error: Command failed: netstat -ano | findstr /R "\<18580\>" Access is denied.

So I'm assuming Horseman wants to access stuff on the machine I'd rather not have it. Apart from me not being able to expose this on Azure: Is this really needed given that Phantom works just fine without it, or something that might be fixed?

@thEpisode
Copy link

Same error: ERROR HeadlessError: Error executing command to extract phantom ports: Error: Command failed: netstat -ano | findstr /R "<18580>" Access is denied.

@awlayton
Copy link
Collaborator

awlayton commented Oct 17, 2017

node-phantom-simple uses netstat to figure out which port PhantomJS starts on.

@thEpisode
Copy link

And what is a solution?, my solution is create a new VM with linux and deploy a basic API 😢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants