jeffbski / jeffbski/wait-on

Should throw error when trying to use tcp://

Open
#140 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2k
Forks
87
PR merge metrics
No merged PRs in 30d

Description

I accindentally misconfigured my health check of my mongodb with `npx wait-on tcp://127.0.0.1:27117 -t 10000`
After troubleshooting for an eternity, I saw that the correct syntax for the TCP protocol is `npx wait-on tcp:127.0.0.1:27117 -t 10000` (without the double slash)

The wait-on package should throw an error right away when tcp:// is used as protocol

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the `npx wait-on` entry point and reproduce the command using `tcp://127.0.0.1:27117`. Trace how the resource protocol is parsed, then verify that the double-slash form fails immediately while the documented `tcp:` form continues to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli, networking
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.