AZ Deploy causes "list index out of range" error without any additional details
See original GitHub issueThis 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:
- Created a year ago
- Comments:6 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It did - I’m happy to share the path if that helps.
On Thu, Sep 29, 2022 at 1:31 AM navba-MSFT @.***> wrote:
– Walker Development Group, LLC Web: http://www.walkerdevgroup.com Phone: (513) 919-5959
@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.