Skip to content

cpToPod passes an async function into exec's statusCallback, but the promise is never awaited #1767

Closed
@Moggers

Description

@Moggers

cpToPod passes an async function as the statusCallback; but exec does not await the function
Once upon a time it was declared as an asynchronous function but even in that case, the function wasn't awaited.
This appears to result in the throw within cptopod (in cases where stderr is populated or the websocket connection fails) coercing into a promise which never gets handled; resulting ultimately in an uncaught promise rejection.

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