After patient modification, my explorer can work. Now, I still receive the following error, but my web page is displayed well. Is it related to the fact that I haven't fully synchronized the blockchain?
_http_outgoing.js:561
throw new ERR_HTTP_HEADERS_SENT('set');
^
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
at ServerResponse.setHeader (_http_outgoing.js:561:11)
at ServerResponse.header (H:\eiquidus-1.99.0\node_modules\express\lib\response.js:771:10)
at ServerResponse.json (H:\eiquidus-1.99.0\node_modules\express\lib\response.js:264:10)
at ServerResponse.send (H:\eiquidus-1.99.0\node_modules\express\lib\response.js:158:21)
at H:\eiquidus-1.99.0\app.js:430:23
at H:\eiquidus-1.99.0\lib\explorer.js:287:20
at H:\eiquidus-1.99.0\lib\explorer.js:26:14
at ClientRequest.<anonymous> (H:\eiquidus-1.99.0\lib\node.js:29:5)
at ClientRequest.emit (events.js:388:22)
at Socket.socketErrorListener (_http_client.js:475:9)
at Socket.emit (events.js:376:20)
at emitErrorNT (internal/streams/destroy.js:106:8)
at emitErrorCloseNT (internal/streams/destroy.js:74:3)
at processTicksAndRejections (internal/process/task_queues.js:82:21) {
code: 'ERR_HTTP_HEADERS_SENT'
}
Cluster restarting...
This is my package.json :{
"name": "explorer",
"version": "1.99.0",
"private": true,
"scripts": {
"start": "npm run sass:compile && node --stack-size=100 ./bin/cluster",
"stop": "kill -2 $(cat tmp/cluster.pid)",
"test": "node ./node_modules/jasmine/bin/jasmine.js test/*Spec.js",
"sass:compile": "sh './scripts/sass_theme_reader.sh' './node_modules/.bin/sass --no-source-map --style=compressed' './public/css/style.scss' './public/css/style.min.css'"
},
"dependencies": {
"express": ">=4.17.1",
"async": "^3.1.0",
"intl": "^1.2.5",
"serve-favicon": "^2.5.0",
"morgan": ">=1.9.1",
"cookie-parser": "~1.4.4",
"body-parser": "~1.19.0",
"debug": ">=4.1.1",
"pug": "~3.0.0",
"postman-request": "2.88.1-postman.27",
"jsonminify": "0.4.1",
"jstransformer-markdown-it": "^2.1.0",
"mongodb": "3.6.3",
"mongoose": "5.11.4",
"qr-image": "~3.2.0",
"sass": "1.30.0",
"json": "10.0.0",
"strip-json-comments-cli": "1.0.1",
"bad-words": "3.0.4"
},
"devDependencies": {
"jasmine": "~3.6.3"
}
}