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

The command failed with an unexpected error. Here is the traceback: '3'

Open suresh8771 opened this issue 3 years ago • 2 comments

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name az login

Errors:

The command failed with an unexpected error. Here is the traceback:
'3'
Traceback (most recent call last):
  File "/opt/az/lib/python3.6/site-packages/knack/cli.py", line 236, in invoke
    formatter = self.output.get_formatter(output_type)
  File "/opt/az/lib/python3.6/site-packages/knack/output.py", line 166, in get_formatter
    return OutputProducer._FORMAT_DICT[format_type]
KeyError: '3'

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 login --use-device-code

Expected Behavior

Environment Summary

Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-debian-bullseye-sid, Ubuntu 20.04.2 LTS
Python 3.6.10
Installer: DEB

azure-cli 2.32.0

Extensions:
account 0.2.1
alias 0.5.2
resource-graph 2.1.0

Dependencies:
msal 1.16.0
azure-mgmt-resource 20.0.0

Additional Context

suresh8771 avatar Jan 05 '22 18:01 suresh8771

@jiasli for awareness

yonzhan avatar Jan 05 '22 22:01 yonzhan

This is because you have config core.output set as 3 which is invalid. Please unset this invalid config:

az config unset core.output

See https://docs.microsoft.com/en-us/cli/azure/azure-cli-configuration

jiasli avatar Jan 06 '22 01:01 jiasli

Hi, we're sending this friendly reminder because we haven't heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!

ghost avatar Aug 19 '22 14:08 ghost

thanks for the support the issue is resolved.  On Friday, 19 August, 2022 at 07:32:21 pm IST, msftbot[bot] @.***> wrote:

Hi, we're sending this friendly reminder because we haven't heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

suresh8771 avatar Aug 19 '22 15:08 suresh8771

@jiasli thanks it solved my issue.

suresh8771 avatar Aug 19 '22 15:08 suresh8771