Unhandled promise rejection - Error: Can't set headers after they are sent
问题 I am new to node, and I have a simple situation, where I am posting to an endpoint on a node/express app. The issue is that I get: POST /api/v2/user 500 25.378 ms - 54 (node:19024) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: Can't set headers after they are sent. (node:19024) 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