Skip to content

Investigate the error in prod. build. #25

@saifulkhan

Description

@saifulkhan
/home/scrc/.pm2/logs/data-api-error-3.log last 15 lines:
3|data-api | memory, and will not scale past a single process.
3|data-api | Error: Cannot set headers after they are sent to the client
3|data-api |     at new NodeError (node:internal/errors:371:5)
3|data-api |     at ServerResponse.setHeader (node:_http_outgoing:576:11)
3|data-api |     at ServerResponse.header (/home/scrc/rampvis-api/data-api/node_modules/express/lib/response.js:771:10)
3|data-api |     at ServerResponse.json (/home/scrc/rampvis-api/data-api/node_modules/express/lib/response.js:264:10)
3|data-api |     at ServerResponse.send (/home/scrc/rampvis-api/data-api/node_modules/express/lib/response.js:158:21)
3|data-api |     at exceptionLoggingMiddleware (/home/scrc/rampvis-api/data-api/src/middleware/exception-logging.middleware.ts:33:24)
3|data-api |     at Layer.handle_error (/home/scrc/rampvis-api/data-api/node_modules/express/lib/router/layer.js:71:5)
3|data-api |     at trim_prefix (/home/scrc/rampvis-api/data-api/node_modules/express/lib/router/index.js:315:13)
3|data-api |     at /home/scrc/rampvis-api/data-api/node_modules/express/lib/router/index.js:284:7
3|data-api |     at Function.process_params (/home/scrc/rampvis-api/data-api/node_modules/express/lib/router/index.js:335:12)
3|data-api | Warning: connect.session() MemoryStore is not
3|data-api | designed for a production environment, as it will leak
3|data-api | memory, and will not scale past a single process.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions