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.

AZ Deploy causes "list index out of range" error without any additional details

See original GitHub issue

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name az webapp deploy

Errors:

The command failed with an unexpected error. Here is the traceback:
list index out of range
Traceback (most recent call last):
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 663, in execute
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 726, in _run_jobs_serially
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 697, in _run_job
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 333, in __call__
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/appservice/custom.py", line 4871, in perform_onedeploy
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/appservice/custom.py", line 5033, in _perform_onedeploy_internal
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/appservice/custom.py", line 4972, in _update_artifact_type
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 webapp deploy --resource-group {} --name {} --src-path {}

Expected Behavior

Environment Summary

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

azure-cli 2.40.0

Additional Context

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
twalker45106commented, Sep 29, 2022

It did - I’m happy to share the path if that helps.

On Thu, Sep 29, 2022 at 1:31 AM navba-MSFT @.***> wrote:

@twalker45106 https://github.com/twalker45106 Thanks for reaching out to us and reporting this issue. Could you please confirm if the --src-path argument (filename) you had passed in not have an extension? You should ensure that the file name passed in for --src-path has an extension, such as “name.zip”. See below:

https://github.com/Azure/azure-cli/blob/1a0baa99c5ad8b2c33c7d03af0683ca22037bd60/src/azure-cli/azure/cli/command_modules/appservice/custom.py#L4972-L4978

Awaiting your reply.

— Reply to this email directly, view it on GitHub https://github.com/Azure/azure-cli/issues/24050#issuecomment-1261771239, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALJT6MAH5ULYOK56HCNS4UDWAUSS7ANCNFSM6AAAAAAQYBWW2Y . You are receiving this because you were mentioned.Message ID: @.***>

– Walker Development Group, LLC Web: http://www.walkerdevgroup.com Phone: (513) 919-5959

0reactions
navba-MSFTcommented, Oct 6, 2022

@twalker45106 The action is pending on you to provide us your --src-path so that we can try to recreate the issue at our end. Please feel free to reopen this thread with these details and we would be happy to help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

List Index Out of Range – Python Error Message Solved
In this article you'll see a few of the reasons that cause the list index out of range Python error. Besides knowing why...
Read more >
Azure Function list operation show index out of range
The coding I tested pass in local, but it got error on Azure function. Result: Failure Exception: IndexError: list index out of range...
Read more >
AzureML and PowerBI compatible endpoint error
However when I try to send some data using the first script using the REST API, all that is returned is "list index...
Read more >
I'm trying to deploy this code for 2 days but always getting ...
I'm trying to deploy this code for 2 days but always getting an: IndexError: list index out of range. Im doing the Patrick...
Read more >
Error: list index out of range
Very often, when working with Azure CLI, you might get an error like the following one: ERROR: The command failed with an unexpected...
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