fix: add timeout to registry validation to prevent indefinite hanging#2057
fix: add timeout to registry validation to prevent indefinite hanging#2057ryan-the-zilla wants to merge 1 commit intoasyncapi:masterfrom
Conversation
- Added AbortController with 10s timeout - Changed from GET to HEAD request for lightweight validation - Improved error messages for timeout and network errors - Prevents CLI from hanging when registry URL is unreachable Fixes asyncapi#2027
|
There was a problem hiding this comment.
Welcome to AsyncAPI. Thanks a lot for creating your first pull request. Please check out our contributors guide useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.
|



What this PR does
Fixes #2027 - CLI hangs indefinitely when
--registry-urlpoints to an unreachable host.Changes Made:
AbortControllerwith 10 second timeout to prevent indefinite hangingTesting:
Related Issue:
Part of Bounty Program 2026-04 (#2039)
Wallet for Bounty:
AqE264DnKyJci9kV4t3eYhDtFB3H88HQusWtH5odSqHM