-
Notifications
You must be signed in to change notification settings - Fork 3.3k
{Profile} az login: Polish UnicodeDecodeError #12972
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1202,6 +1202,11 @@ def _get_authorization_code_worker(authority_url, resource, results): | |
| break | ||
| except socket.error as ex: | ||
| logger.warning("Port '%s' is taken with error '%s'. Trying with the next one", port, ex) | ||
| except UnicodeDecodeError: | ||
| logger.warning("Please make sure there is no international (Unicode) character in the computer name " | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just curious about that if we actually have international character in the compute name, the only way to get it passed is to rename the compute name ?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The link does have instructions about how to bypass it: #12957 But using Unicode as a computer name is always a bad idea.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Got it. |
||
| r"or C:\Windows\System32\drivers\etc\hosts file's 127.0.0.1 entries. " | ||
| "For more details, please see https://github.com/Azure/azure-cli/issues/12957") | ||
| break | ||
|
|
||
| if reply_url is None: | ||
| logger.warning("Error: can't reserve a port for authentication reply url") | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make sure we handle this exception in MSAL too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure.