ADF/New pipeline: IndexError: list index out of range
See original GitHub issueHi,
We are getting the below error when trying to create a new pipeline:
2022-02-04 11:15:26,985 | INFO | cdk_stacks.main | Pipeline creation/update of infra-cdk-networkroutes commenced | (main.py:31)
Traceback (most recent call last):
File "adf-build/cdk/generate_pipeline_stacks.py", line 37, in <module>
main()
File "adf-build/cdk/generate_pipeline_stacks.py", line 33, in main
PipelineStack(app, stack_input)
File "/codebuild/output/src442369410/src/adf-build/jsii/_runtime.py", line 83, in __call__
inst = super().__call__(*args, **kwargs)
File "/codebuild/output/src442369410/src/adf-build/cdk/cdk_stacks/main.py", line 195, in __init__
_is_approval = targets[0].get('name', '').startswith('approval') or \
IndexError: list index out of range
Subprocess exited with error 1
[Container] 2022/02/04 11:15:27 Command did not exit successfully cdk synth --app adf-build/cdk/generate_pipeline_stacks.py 1> /dev/null exit status 1
[Container] 2022/02/04 11:15:27 Phase complete: BUILD State: FAILED
[Container] 2022/02/04 11:15:27 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: cdk synth --app adf-build/cdk/generate_pipeline_stacks.py 1> /dev/null. Reason: exit status 1
We never had this issue before, it is new. Any ideas how to troubleshoot this ? Thank you
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
[Bug] "IndexError: list index out of range" from `az pipelines list ...
Attempting to list releases in my client's Azure DevOps instance returned a Python IndexError . To Reproduce Azure CLI version: azure-cli 2.0.62
Read more >IndexError: list index out of range when using variable
Solved: I am following the example within Editing Features: to select a feature within the feature layer. sfo_feature = [ f for f...
Read more >Python IndexError: List Index Out of Range [Easy Fix] - Finxter
To solve the “IndexError: list index out of range”, avoid do not access a non-existing list index. For example, my_list[5] causes an error...
Read more >IndexError: list index out of range and python - LearnDataSci
Summary. This index error is triggered when indexing a list using a value outside of its range of indexes. The best way to...
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 >
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 Free
Top 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
Solved in the end. The problem seems to be that we had an AWS account that was suspended, to be deleted, which was in many of the targets. Was not possible to see from the error message, but for sure, when removing those targets, it worked
I am closing the issue as we found out the root cause on why the error happened. Thank you very much for the assistance