Skip to content

Sign-in fails with hostname-only URL and retry prompt does not respond #2503

@dhcgn

Description

@dhcgn

Describe the bug

When attempting to sign in to GitHub Enterprise using only the hostname (for example, company.ghe.com instead of https://company.ghe.com), the following error is shown:

Error during sign-in: TypeError: Invalid URL
Press any key to retry

There are two issues here:

  1. Entering a hostname without the https:// scheme causes a TypeError: Invalid URL.
  2. The message says Press any key to retry, but no key works except Esc.

This makes the recovery flow confusing, because the prompt does not behave as described.

Image

Affected version

GitHub Copilot CLI 1.0.17.

Steps to reproduce the behavior

  1. Open the GitHub Enterprise login flow.
  2. Enter company.ghe.com as the server URL.
  3. Continue without adding https://.
  4. Observe the TypeError: Invalid URL error.
  5. Try to retry using the keyboard.
  6. Observe that “Press any key to retry” does not work, except for Esc.

Expected behavior

  • Entering only the hostname (for example, company.ghe.com) should work, and the URL should be normalized automatically to https://company.ghe.com.
  • If hostname-only input is not supported, the application should show a clear validation message telling the user that a full URL including https:// is required.
  • If the UI says Press any key to retry, then any key should actually trigger the retry action, not only Esc.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions