-
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
Conversation
|
add to S168 |
| 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 " |
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.
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 ?
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.
The link does have instructions about how to bypass it: #12957
But using Unicode as a computer name is always a bad idea.
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.
Got it.
| break | ||
| except socket.error as ex: | ||
| logger.warning("Port '%s' is taken with error '%s'. Trying with the next one", port, ex) | ||
| except UnicodeDecodeError: |
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.
except UnicodeDecodeError: [](start = 8, length = 26)
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.
qianwens
left a comment
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.
![]()
Description
Fix #12957, #7989
If the computer name or
C:\Windows\System32\drivers\etc\hosts127.0.0.1entries contain international characters (Unicode), Azure CLI fails with a nasty error:This PR refines the error message to:
Testing Guide
Change computer name to a Unicode string like
测试or add127.0.0.1 测试toC:\Windows\System32\drivers\etc\hosts. Runaz login.