Skip to content

az login doesn't work under VPN #7227

Description

Describe the bug
when trying az login on macOS 10.13.6 I get the following error:

neko@rock $ az login
Port '8400' is taken. Trying with the next one
Port '8401' is taken. Trying with the next one
Port '8402' is taken. Trying with the next one
...
Port '8998' is taken. Trying with the next one
Port '8999' is taken. Trying with the next one
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/Cellar/azure-cli/2.0.45/libexec/lib/python3.7/site-packages/azure/cli/core/_profile.py", line 1030, in _get_authorization_code_worker
if reply_url is None:
UnboundLocalError: local variable 'reply_url' referenced before assignment

Login failed

To Reproduce
try az login under Homebrew installed to default location on macOS 10.13.6

Expected behavior
A browser opens and I'm able to login

Environment summary
Reinstall Homebrew to default installation, installed python3 under Homebrew, install azure-cli under Homebrew. Moved away old .azure .azure-shell from $HOME

Additional context
Checked for blocked ports on my machine, they are not in use.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions