Error : listen EADDRINUSE: address already in use :::3000

Hi Guys, I am new to this Glitch and wish to get some advices and helps from you guys. Currently I am testing to retrieve the data from the firebase but failed to do so… The picture below shows the error in the debug. May I know how can I solve this? Thanks guys.

1 Like

Hi there. I can’t say for an absolute fact but it looks like you are trying to start your webservice on port 3000 and it is reporting that it is already in use.

“start”: “ws --port 3000 --log.format combined --directory . --blacklist ‘/.env’ ‘/.data’ ‘/.git’”

It is only a guess I don’t use Firebase. I will point you at your script.js file however in case it is important but it looks like you have made all sorts of firebase app stuff public. The apiKey, authDomain, appId and other things are plainly visible to all. I think you should check on it and change the ids if this has compromised your site.

3 Likes