Skip to content

fix: add timeout to registry validation to prevent indefinite hangs#2081

Open
sungdark wants to merge 1 commit intoasyncapi:masterfrom
sungdark:fix/registry-timeout
Open

fix: add timeout to registry validation to prevent indefinite hangs#2081
sungdark wants to merge 1 commit intoasyncapi:masterfrom
sungdark:fix/registry-timeout

Conversation

@sungdark
Copy link

Description

Fixes the CLI hanging indefinitely when --registry-url points to an unreachable host.

Changes

  • Added AbortController with 10 second timeout to prevent indefinite hangs
  • Changed from GET to HEAD request for lighter weight validation
  • Improved error messages to preserve original error and indicate timeout reason

Fixes #2027

Fixes asyncapi#2027

- Added AbortController with 10 second timeout to prevent indefinite hangs
- Changed from GET to HEAD request for lighter weight validation
- Improved error messages to preserve original error and indicate timeout
@changeset-bot
Copy link

changeset-bot bot commented Mar 25, 2026

⚠️ No Changeset found

Latest commit: 2141743

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: To Triage

Development

Successfully merging this pull request may close these issues.

[BUG] CLI hangs indefinitely when --registry-url points to an unreachable host (no timeout handling)

1 participant