fix: add timeout and HEAD request to registryValidation#2064
fix: add timeout and HEAD request to registryValidation#2064yw13931835525-cyber wants to merge 1 commit intoasyncapi:masterfrom
Conversation
- Add 10 second timeout using AbortController - Use HEAD instead of GET for lighter request - Preserve original network error message - Throw clear timeout error message Closes 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.
|



Description
Fixes issue #2027 - CLI hangs indefinitely when
--registry-urlpoints to an unreachable host.Changes
Testing
Timeout fetching registryURL after 10000ms: <url>Closes #2027