Original console output:
node:events:368
throw er; // Unhandled 'error' event
^
Error [ERR_STREAM_WRITE_AFTER_END]: write after end
at new NodeError (node:internal/errors:371:5)
at ServerResponse.end (node:_http_outgoing:846:15)
at Server.<anonymous> (D:\files\Web_videos\Node\server\app.js:30:13)
at Server.emit (node:events:390:28)
at parserOnIncoming (node:_http_server:951:12)
at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)
Emitted 'error' event on ServerResponse instance at:
at emitErrorNt (node:_http_outgoing:726:9)
at processTicksAndRejections (node:internal/process/task_queues:84:21) {
code: 'ERR_STREAM_WRITE_AFTER_END'
}
Error reason:
The port number is occupied.
Solution:
Modify the port number, or kill the port number and restart the project
How to kill the port number:
1. Enter the CMD command window and write netstat – ano|findstr “8080”
2.taskkill -PID 13512 -F
Read More:
- Node js events.js:183 throw er; // Unhandled ‘error’ event
- [Solved] Angular build Error: throw er; // Unhandled ‘error’ eventEmitted ‘error’ event on ChildProcess instance
- Error code: events.js:183 Thrower; //unhandled ‘error’ event – solution
- android mediaplayer went away with unhandled event after the recording stopped
- laravel-echo-server Run Error: [ioredis] Unhandled error event: ReplyError: NOAUTH Authentication required.
- The reason and solution for the error ECONNRESET of the httpClieint request of Node.js
- Tensorflow Error polling for event status: failed to query event: CUDA_ERROR_ILLEGAL_ADDRESS
- Node.js operation mysql error Cannot enqueue Handshake after invoking quit
- [Solved] internal/modules/cjs/loader.js:892 ^Error: Cannot find module ‘C:\Users\LX\Desktop\Node_DEMO\a
- NPM install error: Cannot find module ‘D:\zip\node_modules\npm\bin\npm-cli.js‘
- Node Kubelet Error: node “xxxxx“ not found [How to Solve]
- Webpack Pack and compress ES6 files with errors: ERROR in js/xxxxxx.js from UglifyJs Unexpected token punc ()
- unhandled system error, NCCL version 2.7.8 [How to Solve]
- [Solved] unhandled error during execution of watcher callback
- Quartz: ERROR threw an unhandled Exception [How to Solve]
- [Solved] Error: ER_ACCESS_DENIED_ERROR: Access denied for user ‘root’@‘localhost’ (using password: YES)
- [Solved] error: ‘xcb_generic_event_t’ was not declared in this scope
- [Solved] throw new Error(“‘output.filename’ is required, either in config file or as –output-filename”);
- Vue3 Warning: [Vue warn]: Extraneous non-emits event listeners (changeParentProps) were passed to component
- Rabbitmq failed to stop normally: ERROR: node with name “rabbit” already running on “localhost”