Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Portfinder (used in serve/e2e) is not finding an open port on Windows #717

Closed
isayneigh opened this issue May 22, 2017 · 6 comments
Closed
Assignees

Comments

@isayneigh
Copy link

Expected behavior

Be able to have skyux serve running and run skyux e2e in a separate terminal.

Actual behavior

If I run skyux serve and leave it running, then run skyux e2e, skyux e2e hangs indefinitely. Cancelling skyux serve allows it to continue.

Steps to reproduce

  • Run skyux serve
  • run skyux e2e
  • e2e should never complete
@Blackbaud-BobbyEarl
Copy link

Hey @blackbaud-joshlandi Do you see the same behavior with running skyux serve at the same time in Windows?

@blackbaud-joshlandi
Copy link

Yeah, this is in Windows 7. I haven't checked it in other OS'

@Blackbaud-BobbyEarl
Copy link

I realize you're specifically testing using serve in conjunction with e2e. Since you're on Windows, do you mind testing serving two spas at the same time and see if you get an error?

@blackbaud-joshlandi
Copy link

served two of the same spa and got this error:

$ skyux serve
info: SKY UX processing command serve
info: Merging App Builder skyuxconfig.json
info: Merging SPA skyuxconfig.json
info: Merging SPA skyuxconfig.${command}.json
Error: listen EADDRINUSE :::8000
    at Object.exports._errnoException (util.js:1022:11)
    at exports._exceptionWithHostPort (util.js:1045:20)
    at Server._listen2 (net.js:1259:14)
    at listen (net.js:1295:10)
    at Server.listen (net.js:1391:5)
    at Server.listen (C:\Code\GIT\skyux-spa-email\node_modules\webpack-dev-server\lib\Server.js:431:47)
    at getPort.then.port (C:\Code\GIT\skyux-spa-email\node_modules\@blackbaud\skyux-builder\cli\serve.js:62:12)
    at process._tickCallback (internal/process/next_tick.js:103:7)
    at Module.runMain (module.js:606:11)
    at run (bootstrap_node.js:394:7)
    at startup (bootstrap_node.js:149:9)
    at bootstrap_node.js:509:3

@Blackbaud-BobbyEarl Blackbaud-BobbyEarl changed the title Skyux Serve and Skyux e2e cannot be ran in unison Portfinder (used in serve/e2e) is not finding an open port on Windows Jun 27, 2017
@Blackbaud-MichaelAndrews

Fails on Windows 10 too.

@Blackbaud-BobbyEarl
Copy link

In version 1.0.0-rc.16.

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

No branches or pull requests

6 participants