question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exception when running acr build

See original GitHub issue

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name az acr build

Errors:

list index out of range
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 579, in execute
    parsed_args = self.parser.parse_args(args)
python3.6/site-packages/knack/parser.py, ln 262, in parse_args
    return super(CLICommandParser, self).parse_args(args)
az/lib/python3.6/argparse.py, ln 1734, in parse_args
    args, argv = self.parse_known_args(args, namespace)
...
azure/cli/core/command_recommender.py, ln 61, in __init__
    self.parameters = self._normalize_parameters(parameters)
azure/cli/core/command_recommender.py, ln 244, in _normalize_parameters
    standard_form = sorted_options[0]
IndexError: list index out of range

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 acr build -t {} -n {} {}

Expected Behavior

Environment Summary

Linux-5.4.0-52-generic-x86_64-with-debian-buster-sid
Python 3.6.10
Installer: DEB

azure-cli 2.12.0 *

Additional Context

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
christopher-o-toolecommented, Dec 18, 2020

@houk-ms @yungezz

This is a known issue resulting from improper handling of positional arguments whilst normalizing parameters for failure recovery recommendations. Newer versions of CLI will no longer have this issue.

1reaction
yugangw-msftcommented, Dec 17, 2020

Can core team take a look first? The error is from the generic argument parsing layer

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure Container Registry throws exception when building
I'm trying to push a docker image to my recently created azure container registry I'm using the az acr build command in the...
Read more >
az acr build from quickstart not working · Issue #19968 - GitHub
Describe the bug I am unable to use az acr build with the Azure CLI. The 5 different methods I have tried when...
Read more >
Troubleshoot login to registry - Azure Container Registry
Unable to access a registry using az acr login and you receive error CONNECTIVITY_REFRESH_TOKEN_ERROR. Access to registry was denied. Response ...
Read more >
Deploy existing .NET apps as Windows containers ...
Exercise 3: Publish Docker Images to Azure Container Registry (ACR). Now that you have validated that the application is running successfully in ...
Read more >
maven build is failure due to ACR not authorized, why?
[ERROR] To see the full stack trace of the errors, re-run Maven with ... ://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found