azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

Error running az group list

Open ausafonly opened this issue 6 years ago • 6 comments

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name az group list

Errors:

400 Client Error: Bad Request for url: http://localhost:50342/oauth2/token
Traceback (most recent call last):
python3.6/site-packages/knack/cli.py, ln 215, in invoke
    cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 654, in execute
    raise ex
cli/core/commands/__init__.py, ln 718, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
cli/core/commands/__init__.py, ln 711, in _run_job
    six.reraise(*sys.exc_info())
...
python3.6/site-packages/msrestazure/azure_active_directory.py, ln 486, in get_msi_token
    result.raise_for_status()
python3.6/site-packages/requests/models.py, ln 940, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: http://localhost:50342/oauth2/token

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • Put any pre-requisite steps here...
  • az group list

Expected Behavior

Environment Summary

Linux-4.15.0-1083-azure-x86_64-with-debian-stretch-sid
Python 3.6.10
Installer: DEB

azure-cli 2.7.0

Additional Context

ausafonly avatar Jun 08 '20 18:06 ausafonly

hi @ausafonly where did you see this error? same error as in https://github.com/Azure/azure-cli/issues/13884.

yungezz avatar Jun 09 '20 01:06 yungezz

When i am running it om windows terminal using azure cloud shell

On Tue, 9 Jun, 2020, 7:18 AM Yunge Zhu, [email protected] wrote:

hi @ausafonly https://github.com/ausafonly where did you see this error? same error as in #13884 https://github.com/Azure/azure-cli/issues/13884.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Azure/azure-cli/issues/13886#issuecomment-640979137, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALR5QVTUWHABITNVJS54XODRVWIFJANCNFSM4NYUQK3Q .

ausafonly avatar Jun 09 '20 16:06 ausafonly

@ausafonly Could you pls workaround with az login ?

yonzhan avatar Jun 09 '20 21:06 yonzhan

@ausafonly any update?

yonzhan avatar Jul 04 '20 14:07 yonzhan

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @maertendMSFT.

ghost avatar Aug 18 '20 06:08 ghost

Hi @ausafonly , this is a know issue of cloud shell. The problem is tracked in #11749 . For a workaround solution, you can run az login and retry the command. Close this one first.

arrownj avatar Aug 18 '20 06:08 arrownj