Mongodb – backend error ErrorCaptureStackTrace(err);
When i hit an api : "http://localhost:4040/api/v1/user/getAUser" I got a Error how to solve this server is running on port 4040 DB connection successful node:internal/errors:496 ErrorCaptureStackTrace(err); ^ Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client at…