Next.js Discord

Discord Forum

Manage ECONNRESET on ecs scaling/deployment activity

Unanswered
Giant panda posted this in #help-forum
Open in Discord
Giant pandaOP
We have instances running on ecs, using a load balancer. sometimes the ECONNRESET error happened and unhandled making the server to go down. I have do approach on handling all the async operations, but still getting the error message. Do we have grace shutdown inside nextjs, or i need to do custom server?

⨯ uncaughtException:  {"message":"aborted","name":"Error","stack":"Error: aborted\n    at abortIncoming (node:_http_server:838:17)\n    at socketOnClose (node:_http_server:832:3)\n    at Socket.emit (node:events:531:35)\n    at TCP.<anonymous> (node:net:346:12)\n    at TCP.callbackTrampoline (node:internal/async_hooks:130:17)","code":"ECONNRESET"}

1 Reply

Giant pandaOP
(node:1) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 end listeners added to [IncomingMessage]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit