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

Error running plugin #55

Closed
RichieRunner opened this issue Aug 21, 2019 · 4 comments
Closed

Error running plugin #55

RichieRunner opened this issue Aug 21, 2019 · 4 comments
Labels
question Further information is requested

Comments

@RichieRunner
Copy link

I'm seeing the following error when running cypress open. I have configured plugins as specified.

Error running plugin

The following error was thrown by a plugin. We've stopped running your tests because a plugin crashed.

Error: listen EACCES 127.0.0.1:2121
at Object._errnoException (util.js:1024:11)
at _exceptionWithHostPort (util.js:1046:20)
at Server.setupListenHandle [as _listen2] (net.js:1334:19)
at listenInCluster (net.js:1392:12)
at GetAddrInfoReqWrap.doListen [as callback] (net.js:1501:7)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:97:10)

@meinaart
Copy link
Owner

Are you allowed to run local servers? Otherwise you need to disable the server in the configuration. This does disable updating snapshots via the GUI.

@meinaart meinaart added waiting for response question Further information is requested and removed waiting for response labels Aug 30, 2019
@Avgardyan
Copy link

This appears to happen when the update snapshot server is not allowed to bind on the default port `2121.

I fixed it by changing the default port for the update snapshot server in cypress.json like so:

{
  "env": {
    "cypress-plugin-snapshots": {
      "serverPort": 8081 // Port number for  "update snapshot server"
    }
  }
}

@RichieRunner
Copy link
Author

i have ran into the same issue, and tried changing the serverPort but still see EACCES 127.0.0.1:2121. I don't think it's reading from serverPort at all?

@RichieRunner
Copy link
Author

solved; i had my cypress.json in the wrong place. this works

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

No branches or pull requests

3 participants