soltecsis / fwcloud-api

API REST for the project FWCloud.net
GNU Affero General Public License v3.0
4 stars 6 forks source link

Before v2 publish review (backend v2) #819

Closed soltecsis-aortega closed 1 week ago

soltecsis-aortega commented 1 week ago

Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client at ServerResponse.setHeader (node:_http_outgoing:659:11) at ServerResponse.header (/opt/fwcloud/api/node_modules/express/lib/response.js:794:10) at ServerResponse.send (/opt/fwcloud/api/node_modules/express/lib/response.js:174:12) at ServerResponse.json (/opt/fwcloud/api/node_modules/express/lib/response.js:278:15) at /opt/fwcloud/api/dist/src/routes/interface/interface.js:194:37 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { code: 'ERR_HTTP_HEADERS_SENT' }

Node.js v20.16.0

TypeError: Cannot read properties of undefined (reading 'where') at EntityManager.findOne (/opt/fwcloud/api/node_modules/typeorm/entity-manager/EntityManager.js:600:22) at EntityManager.findOneOrFail (/opt/fwcloud/api/node_modules/typeorm/entity-manager/EntityManager.js:650:21) at Repository.findOneOrFail (/opt/fwcloud/api/node_modules/typeorm/repository/Repository.js:282:29) at /opt/fwcloud/api/dist/src/models/system/keepalived/keepalived_r/keepalived_r.service.js:94:172 at Array.some () at KeepalivedRuleService.store (/opt/fwcloud/api/dist/src/models/system/keepalived/keepalived_r/keepalived_r.service.js:94:63) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async KeepalivedController.create (/opt/fwcloud/api/dist/src/controllers/system/keepalived/keepalived.controller.js:74:36) at async /opt/fwcloud/api/dist/src/fonaments/http/router/router.service.js:131:33

Node.js v20.16.0