absent-sapphire
absent-sapphire2y ago

Whatsapp integration dont have callback Url!

Help ! I couldnt get callback url in replit. Error in replit as below: Error: listen EADDRINUSE: address already in use :::3000 at Server.setupListenHandle [as _listen2] (node:net:1485:16) at listenInCluster (node:net:1533:12) at Server.listen (node:net:1621:7) at Function.listen (/home/runner/example-integration-whatsapp-1/node_modules/express/lib/application.js:635:24) at Object.<anonymous> (/home/runner/example-integration-whatsapp-1/app.js:39:5) at Module._compile (node:internal/modules/cjs/loader:1159:14) at Module._extensions..js (node:internal/modules/cjs/loader:1213:10) at Module.load (node:internal/modules/cjs/loader:1037:32) at Module._load (node:internal/modules/cjs/loader:878:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) Emitted 'error' event on Server instance at: at emitErrorNT (node:net:1512:8) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { code: 'EADDRINUSE', errno: -98, syscall: 'listen', address: '::', port: 3000 } Node.js v18.12.1  Detected change in environment, reloading shell... And the webhook verfied is not shown. #whatsapp
1 Reply
Tico | Voiceflow Assistant
The error message you're seeing, EADDRINUSE, means that the port number which the program wants to bind to and listen on is already in use. In your case, it's port 3000. This usually happens when another service is already running on that port, or if a previous instance of the same program is still running. Here's how you can resolve this issue: 1. Find the process that's using port 3000: You can do this by running the command lsof -i :3000 in your terminal. This will list all processes using port 3000. 2. Terminate the process: Once you have the PID (Process ID) of the process that's using port 3000, you can terminate it using the kill command followed by the PID, like so: kill -9 <PID>. Replace <PID> with the actual Process ID you found in the previous step. 3. Restart your program: Now that port 3000 is free, you should be able to start your program without the EADDRINUSE error. As for the webhook verification not being shown, it could be due to the server not running correctly because of the above error. Once you resolve the EADDRINUSE error and your server is running correctly, you should be able to see the webhook verification. Remember to replace the <PID> placeholder with your actual Process ID. Also, be careful when using the kill command, as it can terminate system-critical processes if not used correctly. If you're still having trouble, please provide more details about your setup and the steps you've taken so far.

Did you find this page helpful?