Skip to content

UnhandledPromiseRejectionWarning on concurrent deployments #22

@mpdude

Description

@mpdude

This happened while several workflows were running for deployments.

Workflow 1:

2022-07-01T10:23:36.1875380Z 🎋 On branch 'master', head commit ...
2022-07-01T10:23:36.1966415Z 💡 Using appspec.yml -> branch_config 'master' for 'master'
2022-07-01T10:23:36.1967287Z 🎳 Using deployment group '...'
2022-07-01T10:23:36.9842514Z ⚙️  Updated deployment group '...'
2022-07-01T10:23:36.9843283Z 
2022-07-01T10:23:38.2323454Z 🔎 Last attempted deployment was from run number 5, this is run number 8 - proceeding.
2022-07-01T10:23:39.1556959Z (node:1604) UnhandledPromiseRejectionWarning: TypeError: object null is not iterable (cannot read property Symbol(Symbol.iterator))
2022-07-01T10:23:39.1558100Z     at Object.exports.createDeployment (/home/runner/work/_actions/webfactory/create-aws-codedeploy-deployment/master/dist/index.js:157:43)
2022-07-01T10:23:39.1558699Z     at processTicksAndRejections (internal/process/task_queues.js:97:5)
2022-07-01T10:23:39.1560649Z (node:1604) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
2022-07-01T10:23:39.1564370Z (node:1604) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Workflow 2:

2022-07-01T10:23:34.7799394Z 🎋 On branch 'master', head commit ...
2022-07-01T10:23:34.7882115Z 💡 Using appspec.yml -> branch_config 'master' for 'master'
2022-07-01T10:23:34.7882798Z 🎳 Using deployment group '...'
2022-07-01T10:23:35.6488998Z ⚙️  Updated deployment group '...'
2022-07-01T10:23:35.6491254Z 
2022-07-01T10:23:37.0387457Z 🔎 Last attempted deployment was from run number 5, this is run number 9 - proceeding.
2022-07-01T10:23:38.2165169Z 🚚️ Created deployment d-P72JNXQBI – https://console.aws.amazon.com/codesuite/codedeploy/deployments/d-P72JNXQBI?region=eu-central-1
2022-07-01T10:23:38.2165860Z 
2022-07-01T10:23:38.2167636Z 
2022-07-01T10:23:38.2169431Z ⏲  Waiting for deployment d-P72JNXQBI to finish
2022-07-01T10:27:18.3784075Z 🥳 Deployment successful

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions