Skip to content

serverDestroy always fails with error #4

@fabb

Description

@fabb

On shutdown, when serverDestroy is called, it always fails with this error:

Error happened during graceful shutdown TypeError: Cannot read property 'apply' of undefined

The problem seems to be that serverDestroy is defined like this:

const serverDestroy = promisify(server.destroy, server)

But server.destroy does not take a callback (anymore?):

destroy(error?: Error): void;

Looks like the callback was never meant to be used externally: nodejs/node#32809

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