fac-12 / dater

Week 8 project using Express and Handlebars
0 stars 0 forks source link

Undefined next / Catch for all promise chains #22

Open BartBucknill opened 6 years ago

BartBucknill commented 6 years ago

I'm seeing '(node:1504) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): ReferenceError: next is not defined' in terminal from some routes.

Somewhere next() is called, but is not defined (presumably not in the parameters), and this error also indicates that a .catch is probably missing in this promise chain, although it may be possible to have this error even when it is handled (https://stackoverflow.com/questions/40500490/what-is-an-unhandled-promise-rejection).