Uploaded image for project: 'Qt License server'
  1. Qt License server
  2. QLS-1402

on-prem: prettier error msg if port already in use

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • P2: Important
    • 3.4.0
    • None
    • On-premise server
    • 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 

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            lapham Lam Pham
            iknd Iikka Eklund
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes