Skip to content

fix: add timeout to registry URL connection check#2105

Open
ledgerpilot wants to merge 3 commits intoasyncapi:masterfrom
ledgerpilot:ledgerpilot/fix-2027
Open

fix: add timeout to registry URL connection check#2105
ledgerpilot wants to merge 3 commits intoasyncapi:masterfrom
ledgerpilot:ledgerpilot/fix-2027

Conversation

@ledgerpilot
Copy link
Copy Markdown

Closes #2027

What changed

This fix introduces robust timeout handling, uses a lightweight HEAD request, and provides clearer error messages for unreachable registry URLs within the registryValidation function.

Files modified

  • cli/src/utils/generate/registry.ts

Draft PR — please review before merging.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 7, 2026

🦋 Changeset detected

Latest commit: be7bcb6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@asyncapi/cli Patch

Not sure what this means? Click here to learn what changesets are.

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

Copy link
Copy Markdown
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@ledgerpilot ledgerpilot marked this pull request as ready for review April 8, 2026 00:38
@ledgerpilot ledgerpilot changed the title fix: [BUG] CLI hangs indefinitely when --registry-url points to an unreac fix: add timeout to registry URL connection check Apr 8, 2026
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 8, 2026

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