EADDRINUSE error while locally running the app

[WARN] We recommend to move to platform version 2.2 as we plan to deprecate the previous versions soon.        Please refer https://community.developers.freshworks.com/t/how-to-migrate-to-platform-version-2-2/3443 to know more details(node:2932) Warning: Accessing non-existent property 'VERSION' of module exports inside circular dependency(Use `node --trace-warnings ...` to show where the warning was created)uncaughtException: listen EADDRINUSE: address already in use :::10001Error: listen EADDRINUSE: address already in use :::10001    at Server.setupListenHandle [as _listen2] (net.js:1318:16)    at listenInCluster (net.js:1366:12)    at Server.listen (net.js:1452:7)    at Function.serverListen [as listen] (C:\Users\nikhi\AppData\Roaming\npm\node_modules\fdk\node_modules\express-ws\lib\index.js:42:40)
    at C:\Users\nikhi\AppData\Roaming\npm\node_modules\fdk\lib\cli\run.js:65:24
    at new Promise (<anonymous>)
    at listenOn (C:\Users\nikhi\AppData\Roaming\npm\node_modules\fdk\lib\cli\run.js:64:10)
    at Object.run (C:\Users\nikhi\AppData\Roaming\npm\node_modules\fdk\lib\cli\run.js:221:26)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async runCLI (C:\Users\nikhi\AppData\Roaming\npm\node_modules\fdk\index.js:223:7)
{"error":{"code":"EADDRINUSE","errno":-4091,"syscall":"listen","address":"::","port":10001},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::10001\nError: listen EADDRINUSE: address already in use :::10001\n    at Server.setupListenHandle [as _listen2] (net.js:1318:16)\n    at listenInCluster (net.js:1366:12)\n    at Server.listen (net.js:1452:7)\n    at Function.serverListen [as listen] (C:\\Users\\nikhi\\AppData\\Roaming\\npm\\node_modules\\fdk\\node_modules\\express-ws\\lib\\index.js:42:40)\n    at C:\\Users\\nikhi\\AppData\\Roaming\\npm\\node_modules\\fdk\\lib\\cli\\run.js:65:24\n    at new Promise (<anonymous>)\n    at listenOn (C:\\Users\\nikhi\\AppData\\Roaming\\npm\\node_modules\\fdk\\lib\\cli\\run.js:64:10)\n    at Object.run (C:\\Users\\nikhi\\AppData\\Roaming\\npm\\node_modules\\fdk\\lib\\cli\\run.js:221:26)\n    at processTicksAndRejections (internal/process/task_queues.js:93:5)\n    at async runCLI (C:\\Users\\nikhi\\AppData\\Roaming\\npm\\node_modules\\fdk\\index.js:223:7)","stack":"Error: listen EADDRINUSE: address already in use :::10001\n    at Server.setupListenHandle [as _listen2] (net.js:1318:16)\n    at listenInCluster (net.js:1366:12)\n    at Server.listen (net.js:1452:7)\n    at Function.serverListen [as listen] (C:\\Users\\nikhi\\AppData\\Roaming\\npm\\node_modules\\fdk\\node_modules\\express-ws\\lib\\index.js:42:40)\n    at C:\\Users\\nikhi\\AppData\\Roaming\\npm\\node_modules\\fdk\\lib\\cli\\run.js:65:24\n    at new Promise (<anonymous>)\n    at listenOn (C:\\Users\\nikhi\\AppData\\Roaming\\npm\\node_modules\\fdk\\lib\\cli\\run.js:64:10)\n    at Object.run (C:\\Users\\nikhi\\AppData\\Roaming\\npm\\node_modules\\fdk\\lib\\cli\\run.js:221:26)\n    at processTicksAndRejections (internal/process/task_queues.js:93:5)\n    at async runCLI (C:\\Users\\nikhi\\AppData\\Roaming\\npm\\node_modules\\fdk\\index.js:223:7)","exception":true,"date":"Tue Sep 14 2021 21:52:02 GMT+0530 (India Standard Time)","process":{"pid":2932,"uid":null,"gid":null,"cwd":"D:\\Labs\\freshworks-project\\krusty-krab-nikhilfurious","execPath":"C:\\Program Files\\nodejs\\node.exe","version":"v14.16.1","argv":["C:\\Program Files\\nodejs\\node.exe","C:\\Users\\nikhi\\AppData\\Roaming\\npm\\node_modules\\fdk\\index.js","run"],"memoryUsage":{"rss":126926848,"heapTotal":92327936,"heapUsed":59478600,"external":1877763,"arrayBuffers":261485}},"os":{"loadavg":[0,0,0],"uptime":630068},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1318,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1366,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1452,"method":"listen","native":false},{"column":40,"file":"C:\\Users\\nikhi\\AppData\\Roaming\\npm\\node_modules\\fdk\\node_modules\\express-ws\\lib\\index.js","function":"Function.serverListen [as listen]","line":42,"method":"serverListen [as listen]","native":false},{"column":24,"file":"C:\\Users\\nikhi\\AppData\\Roaming\\npm\\node_modules\\fdk\\lib\\cli\\run.js","function":null,"line":65,"method":null,"native":false},{"column":null,"file":null,"function":"new Promise","line":null,"method":null,"native":false},{"column":10,"file":"C:\\Users\\nikhi\\AppData\\Roaming\\npm\\node_modules\\fdk\\lib\\cli\\run.js","function":"listenOn","line":64,"method":null,"native":false},{"column":26,"file":"C:\\Users\\nikhi\\AppData\\Roaming\\npm\\node_modules\\fdk\\lib\\cli\\run.js","function":"Object.run","line":221,"method":"run","native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":93,"method":null,"native":false},{"column":7,"file":"C:\\Users\\nikhi\\AppData\\Roaming\\npm\\node_modules\\fdk\\index.js","function":"async runCLI","line":223,"method":null,"native":false}]}
PS D:\Labs\freshworks-project\krusty-krab-nikhilfurious> fdk run 

        [WARN] We recommend to move to platform version 2.2 as we plan to deprecate the previous versions soon.
        Please refer https://community.developers.freshworks.com/t/how-to-migrate-to-platform-version-2-2/3443 to know more details  

(node:1292) Warning: Accessing non-existent property 'VERSION' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
uncaughtException: listen EADDRINUSE: address already in use :::10001
Error: listen EADDRINUSE: address already in use :::10001
    at Server.setupListenHandle [as _listen2] (net.js:1318:16)
    at listenInCluster (net.js:1366:12)
    at Server.listen (net.js:1452:7)
    at Function.serverListen [as listen] (C:\Users\nikhi\AppData\Roaming\npm\node_modules\fdk\node_modules\express-ws\lib\index.js:42:40)
    at C:\Users\nikhi\AppData\Roaming\npm\node_modules\fdk\lib\cli\run.js:65:24
    at new Promise (<anonymous>)
    at listenOn (C:\Users\nikhi\AppData\Roaming\npm\node_modules\fdk\lib\cli\run.js:64:10)
    at Object.run (C:\Users\nikhi\AppData\Roaming\npm\node_modules\fdk\lib\cli\run.js:221:26)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async runCLI (C:\Users\nikhi\AppData\Roaming\npm\node_modules\fdk\index.js:223:7)
{"error":{"code":"EADDRINUSE","errno":-4091,"syscall":"listen","address":"::","port":10001},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::10001\nError: listen EADDRINUSE: address already in use :::10001\n    at Server.setupListenHandle [as _listen2] (net.js:1318:16)\n    at listenInCluster (net.js:1366:12)\n    at Server.listen (net.js:1452:7)\n    at Function.serverListen [as listen] (C:\\Users\\nikhi\\AppData\\Roaming\\npm\\node_modules\\fdk\\node_modules\\express-ws\\lib\\index.js:42:40)\n    at C:\\Users\\nikhi\\AppData\\Roaming\\npm\\node_modules\\fdk\\lib\\cli\\run.js:65:24\n    at new Promise (<anonymous>)\n    at listenOn (C:\\Users\\nikhi\\AppData\\Roaming\\npm\\node_modules\\fdk\\lib\\cli\\run.js:64:10)\n    at Object.run (C:\\Users\\nikhi\\AppData\\Roaming\\npm\\node_modules\\fdk\\lib\\cli\\run.js:221:26)\n    at processTicksAndRejections (internal/process/task_queues.js:93:5)\n    at async runCLI (C:\\Users\\nikhi\\AppData\\Roaming\\npm\\node_modules\\fdk\\index.js:223:7)","stack":"Error: listen EADDRINUSE: address already in use :::10001\n    at Server.setupListenHandle [as _listen2] (net.js:1318:16)\n    at listenInCluster (net.js:1366:12)\n    at Server.listen (net.js:1452:7)\n    at Function.serverListen [as listen] (C:\\Users\\nikhi\\AppData\\Roaming\\npm\\node_modules\\fdk\\node_modules\\express-ws\\lib\\index.js:42:40)\n    at C:\\Users\\nikhi\\AppData\\Roaming\\npm\\node_modules\\fdk\\lib\\cli\\run.js:65:24\n    at new Promise (<anonymous>)\n    at listenOn (C:\\Users\\nikhi\\AppData\\Roaming\\npm\\node_modules\\fdk\\lib\\cli\\run.js:64:10)\n    at Object.run (C:\\Users\\nikhi\\AppData\\Roaming\\npm\\node_modules\\fdk\\lib\\cli\\run.js:221:26)\n    at processTicksAndRejections (internal/process/task_queues.js:93:5)\n    at async runCLI (C:\\Users\\nikhi\\AppData\\Roaming\\npm\\node_modules\\fdk\\index.js:223:7)","exception":true,"date":"Tue Sep 14 2021 21:53:17 GMT+0530 (India Standard Time)","process":{"pid":1292,"uid":null,"gid":null,"cwd":"D:\\Labs\\freshworks-project\\krusty-krab-nikhilfurious","execPath":"C:\\Program Files\\nodejs\\node.exe","version":"v14.16.1","argv":["C:\\Program Files\\nodejs\\node.exe","C:\\Users\\nikhi\\AppData\\Roaming\\npm\\node_modules\\fdk\\index.js","run"],"memoryUsage":{"rss":127979520,"heapTotal":92852224,"heapUsed":59365904,"external":1847851,"arrayBuffers":231573}},"os":{"loadavg":[0,0,0],"uptime":630142},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1318,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1366,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1452,"method":"listen","native":false},{"column":40,"file":"C:\\Users\\nikhi\\AppData\\Roaming\\npm\\node_modules\\fdk\\node_modules\\express-ws\\lib\\index.js","function":"Function.serverListen [as listen]","line":42,"method":"serverListen [as listen]","native":false},{"column":24,"file":"C:\\Users\\nikhi\\AppData\\Roaming\\npm\\node_modules\\fdk\\lib\\cli\\run.js","function":null,"line":65,"method":null,"native":false},{"column":null,"file":null,"function":"new Promise","line":null,"method":null,"native":false},{"column":10,"file":"C:\\Users\\nikhi\\AppData\\Roaming\\npm\\node_modules\\fdk\\lib\\cli\\run.js","function":"listenOn","line":64,"method":null,"native":false},{"column":26,"file":"C:\\Users\\nikhi\\AppData\\Roaming\\npm\\node_modules\\fdk\\lib\\cli\\run.js","function":"Object.run","line":221,"method":"run","native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":93,"method":null,"native":false},{"column":7,"file":"C:\\Users\\nikhi\\AppData\\Roaming\\npm\\node_modules\\fdk\\index.js","function":"async runCLI","line":223,"method":null,"native":false}]}

Hey @nikhil_chandak,

The error EADDRINUSE usually arises when you have an instance of the app already running successfully in the machine in the same port.

Kindly check if you have another Freshworks app running in a different tab in the terminal or if you have any other application running in the same port. If nothing works out, try restarting the machine or closing all the terminal/command-line apps, which will stop all the processes, and then you can try to run your app in a new terminal/command line window.

Hope this helps!

Stay Safe :slight_smile: