Skip to content

"Signalr show" fails with unexpected error when the resource doesn't exist #9904

@rachelvweber

Description

@rachelvweber

Describe the bug

"Signalr show" fails with unexpected error when the signalr service doesn't exist. When the service does exist, "signalr show" works as expected.

Command Name
az signalr show

Errors:

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


'CommandResultItem' object is not iterable
Traceback (most recent call last):
  File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-76yvurxi\knack\knack\cli.py", line 212, in invoke
  File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-76yvurxi\knack\knack\output.py", line 132, in out
  File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-76yvurxi\knack\knack\output.py", line 38, in format_json
TypeError: 'CommandResultItem' object is not iterable

To Reproduce:

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

  • az signalr show --name <nonexistent-signalr-service> --resource-group <existing-resource-group>

Expected Behavior

Printing an error message like "Signalr service doesn't exist"

Environment Summary

Windows-10-10.0.18362-SP0
Python 3.6.6
Shell: powershell.exe

azure-cli 2.0.68

Extensions:
application-insights 0.1.1

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Service AttentionThis issue is responsible by Azure service team.needs-triageThis is a new issue that needs to be triaged to the appropriate team.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions