Skip to content

[DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated #5

Description

@elmicha

Hi,

thanks for your great node! I just tried it and at first I sent only one query in an object, instead of an array of objects. I fixed that immediately, but in the log file I found this scary deprecation warning:

Mär 12 21:39:39 rpi Node-RED[21990]: 12 Mar 21:39:39 - [error] [postgres:26057d45.591592] Error: msg.payload must be an array of queries
...
Mär 12 21:39:39 rpi Node-RED[21990]: (node:21990) [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.

I don't know what "Unhandled promise rejections" are, but I guess it wouldn't be nice if Node-RED would be killed because of a simple user error.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions