-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Sign-in fails with hostname-only URL and retry prompt does not respond #2503
Copy link
Copy link
Open
Labels
Description
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:
- Entering a hostname without the
https://scheme causes aTypeError: Invalid URL. - The message says
Press any key to retry, but no key works exceptEsc.
This makes the recovery flow confusing, because the prompt does not behave as described.
Affected version
GitHub Copilot CLI 1.0.17.
Steps to reproduce the behavior
- Open the GitHub Enterprise login flow.
- Enter
company.ghe.comas the server URL. - Continue without adding
https://. - Observe the
TypeError: Invalid URLerror. - Try to retry using the keyboard.
- 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 tohttps://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 onlyEsc.
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Fields
Give feedbackNo fields configured for Bug.