vercel / uid-promise

Creates a cryptographically strong UID

Home Page:https://npmjs.com/uid-promise

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

(node:15610) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1)

opened this issue · comments

commented

@brieucp this is because you're missing a corresponding .then in the promise chain

adding .catch(console.log) is something that must be done on the promise chain itself (not the promise Object in the lib)