Error on glitch

I can’t add a project to uptimerobot because I have an error:
image

Hi @Woojton, welcome to the Glitch forum!

Can you provide your project name and a screenshot of your UptimeRobot configuration so we can see if we can figure out what’s going on?

Project name: gamersix
Screenshot:image

I highly suggest making your project private and regenerating your token, as you are not using .env for your token so it is public and anyone could have it by now.

Hey @Woojton I’ll second @Callum-OKane’s suggestion - ideally you should move your bot’s token into your .env file and use the environment variable in your bot.login() call (after you’ve reset the token, of course). This is useful even though you’ve made your project private just in case you need to make it public again for any reason.

As far as why your bot’s site isn’t responding, while you have something listening on the correct port (so Glitch isn’t trying to start your project over and over again) you don’t have it sending the full response. Since you’re building an http server manually, you’ll need to have it close the response after it sends the header information, so inside https://glitch.com/edit/#!/gamersix?path=index.js:25:0, after writeHead() you should add res.end(); which will tell your server to send the response it started to write.

Hope this helps!

Thank you, how to close topic?