Skip to content

Unexpected UnhandledPromiseRejectionWarning with Node-API library on Node 12.2.0 on Ubuntu #7621

@janpio

Description

@janpio

Only present in 12.2.0 with Node-API library enabled (afaik, double check!)

$ ts-node ./script.ts
(node:1874) UnhandledPromiseRejectionWarning: Error: 
    at /home/runner/work/e2e-tests/e2e-tests/generic/basic/node_modules/@prisma/client/runtime/index.js:22747:77
    at new Promise (<anonymous>)
    at NAPIEngine.start (/home/runner/work/e2e-tests/e2e-tests/generic/basic/node_modules/@prisma/client/runtime/index.js:22744:31)
    at NAPIEngine.request (/home/runner/work/e2e-tests/e2e-tests/generic/basic/node_modules/@prisma/client/runtime/index.js:22815:9)
    at cb (/home/runner/work/e2e-tests/e2e-tests/generic/basic/node_modules/@prisma/client/runtime/index.js:33760:26)
(node:1874) 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(). (rejection id: 2)
(node:1874) [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.

via https://github.com/prisma/e2e-tests/runs/2804081663?check_suite_focus=true

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions