Details
-
Task
-
Resolution: Fixed
-
P2: Important
-
None
-
None
Description
If the PORT is already in use, the server prints a stack trace. Instead we should show a proper error message to the user.
2024-10-21 12:07:33 - error: uncaughtException: listen EADDRINUSE: address already in use :::8080 Error: listen EADDRINUSE: address already in use :::8080 at Server.setupListenHandle (node:net:1422:16) at Server._listen2 (C:\snapshot\tqtc-license-server\node_modules\async-listener\index.js:97:23) at listenInCluster (node:net:1470:12) at Server.listen (node:net:1558:7) at Function.listen (C:\snapshot\tqtc-license-server\node_modules\express\lib\application.js:635:24) at C:\snapshot\tqtc-license-server\dist\server.js:49:17 at Generator.next (<anonymous>) at fulfilled (C:\snapshot\tqtc-license-server\dist\server.js:5:58) at propagateAslWrapper (C:\snapshot\tqtc-license-server\node_modules\async-listener\index.js:504:23) at C:\snapshot\tqtc-license-server\node_modules\async-listener\glue.js:188:31 at C:\snapshot\tqtc-license-server\node_modules\async-listener\index.js:541:70 at C:\snapshot\tqtc-license-server\node_modules\async-listener\glue.js:188:31 at processTicksAndRejections (node:internal/process/task_queues:95:5) at process.runNextTicks [as _tickCallback] (node:internal/process/task_queues:64:3) at Function.runMain (pkg/prelude/bootstrap.js:1980:13) at node:internal/main/run_main_module:17:47