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

Improve how Wasp handles and reports unavailable ports #2427

Open
sodic opened this issue Dec 20, 2024 · 0 comments
Open

Improve how Wasp handles and reports unavailable ports #2427

sodic opened this issue Dec 20, 2024 · 0 comments
Labels
dx shouldfix We should do/fix this at some point

Comments

@sodic
Copy link
Contributor

sodic commented Dec 20, 2024

Version: 0.15.2

Steps to reproduce:

  • Start a process (not Wasp) that listens on port 3001. For example: python -m http.server 3000
  • Execute wasp start.
  • Wasp will fail and tell you "Port 3001 is taken" (not 3000).

What happens:

  • The client sees port 3000 is taken and automatically falls back to 3001.
  • The server sees port 3001 is taken and crashes with the incorrect error.

It's a confusing experience because the client's message that says "Port 3000 is in use, trying another one..." is printed earlier and gets lost in the noise, while the server's message that says "Port 3001 is already in use" is the last (and possibly the only) thing the user sees.

@Martinsos Don't we already have an issue for this? I couldn't find it.

@sodic sodic added dx shouldfix We should do/fix this at some point labels Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dx shouldfix We should do/fix this at some point
Projects
None yet
Development

No branches or pull requests

1 participant