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.

ADF/New pipeline: IndexError: list index out of range

See original GitHub issue

Hi,

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:closed
  • Created 2 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
kritrocommented, Feb 8, 2022

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

0reactions
mirceaadamcommented, Feb 9, 2022

I am closing the issue as we found out the root cause on why the error happened. Thank you very much for the assistance

Read more comments on GitHub >

github_iconTop 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 >

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