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

Json Encoder MemoryError during job list

Open jjdharini22 opened this issue 2 years ago • 6 comments

This is autogenerated. Please review and update as needed.

Describe the bug

Az singularity job list cli failed with MemoryError when trying to list jobs in json format.

Command Name az singularity job list Extension Name: singularity-cli. Version: 1.0.20472898.

Errors:

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

Traceback (most recent call last):
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 237, in invoke
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/output.py", line 146, in out
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/output.py", line 37, in format_json
  File "json\__init__.py", line 238, in dumps
  File "json\encoder.py", line 202, in encode
MemoryError

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 singularity job list --resource-group {} --account-name {} --only-show-errors

Expected Behavior

Environment Summary

Windows-10-10.0.22000-SP0
Python 3.10.5
Installer: MSI

azure-cli 2.38.0 *

Extensions:
azure-devops 0.25.0
singularity-cli 1.0.20472898

Dependencies:
msal 1.18.0b1
azure-mgmt-resource 21.1.0b1

Additional Context

jjdharini22 avatar Sep 30 '22 17:09 jjdharini22

Thank you for your feedback. This has been routed to the support team for assistance.

ghost avatar Sep 30 '22 22:09 ghost

route to CXP team

yonzhan avatar Sep 30 '22 22:09 yonzhan

@jjdharini22 Apologies for the late reply. Thanks for reaching out to us and reporting this issue. We are looking into this issue and we will provide an update.

navba-MSFT avatar Oct 11 '22 03:10 navba-MSFT

@jjdharini22 Could you please confirm if this is the Singularity-cli python client you are using ? Please run the same command with --debug argument and share the detailed debug logs here ? Awaiting your reply.

navba-MSFT avatar Oct 11 '22 05:10 navba-MSFT

No, this is Singularity which is an AI Infrastructure Azure service. https://singularitydocs.azurewebsites.net/

I ran the command with --debug argument. Please find the logs here.

jjdharini22 avatar Oct 12 '22 16:10 jjdharini22

@jjdharini22 Thanks for sharing the details, Could you please try to update your AzCLI to most recent version and see if that helps ?

navba-MSFT avatar Oct 14 '22 05:10 navba-MSFT

Yes, I updated to the latest AzCli. That does not help. Still seeing the same error.

jjdharini22 avatar Oct 16 '22 13:10 jjdharini22

@jjdharini22 Please refer to our internal Teams group conversation and let us know if you have any follow-up questions.

navba-MSFT avatar Oct 21 '22 05:10 navba-MSFT

@jjdharini22 Please track this issue in our internal Teams conversation with the CLI Product team.

navba-MSFT avatar Oct 26 '22 05:10 navba-MSFT