-
-
Notifications
You must be signed in to change notification settings - Fork 32
fix: improve EADDRINUSE error handling and UX #1240
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Improve user experience when port 8969 is already in use: - Add retry attempt tracking in log messages (e.g., 'retrying (1/3)') - Create PortInUseError class with actionable error message - Handle PortInUseError gracefully in CLI with clear error output - Prevent PortInUseError from being sent to Sentry in CLI context Fixes SPOTLIGHT-7Q/8C/9A
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
- Fix retry log order: check retries > MAX_RETRIES before logging to avoid showing (4/3) - Add PortInUseError handling to tail command handler - Fix linting: use single template literal instead of string concatenation
betegon
approved these changes
Jan 9, 2026
This was referenced Jan 12, 2026
This was referenced Jan 12, 2026
This was referenced Jan 12, 2026
4 tasks
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
When port 8969 is in use, the retry logic silently retries and can still fail after 3 attempts with an unhandled rejection, providing poor user experience.
Solution
Changes
PortInUseErrorclass inmain.tswith helpful error messageFixes SPOTLIGHT-7Q
Fixes SPOTLIGHT-8C
Fixes SPOTLIGHT-9A