azure-cli-extensions: App Insights - Error listing components

Cannot list app insight components with python 3.8.2

Command Name az monitor app-insights component show Extension Name: application-insights. Version: 0.1.7.

Errors:

Unable to deserialize to object: ApplicationInsightsComponentPaged, AttributeError: 'list' object has no attribute 'get'
Traceback (most recent call last):
python3.8/site-packages/msrest/serialization.py, ln 1355, in _deserialize
    found_value = key_extractor(attr, attr_desc, data)
python3.8/site-packages/msrest/serialization.py, ln 1119, in rest_key_extractor
    return working_data.get(key)
AttributeError: 'list' object has no attribute 'get'

...

python3.8/site-packages/msrest/serialization.py, ln 1119, in rest_key_extractor
    return working_data.get(key)
msrest.exceptions.DeserializationError: Unable to deserialize to object: ApplicationInsightsComponentPaged, AttributeError: 'list' object has no attribute 'get'

To Reproduce:

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

  • az monitor app-insights component show

Expected Behavior

Environment Summary

Linux-5.6.8-arch1-1-x86_64-with-glibc2.2.5
Python 3.8.2
Installer: 

azure-cli 2.5.1

Extensions:
interactive 0.4.4
application-insights 0.1.7

Additional Context

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 17 (9 by maintainers)

Most upvoted comments

Yes, I believe the account did not have application insights after all. But I expected an empty response instead of an exception