Replit not running on custom domain

Hi there!

I have a website coded in Flask with Python. It was working for many months when I originally coded the project last year, and when I opened it recently, I keep getting the “Hmm… We couldn’t reach this Repl. Make sure this Repl has a port open and is ready to receive HTTP traffic.” error on the site. (The console shows “ - - [21/May/2023 15:16:23] “GET / HTTP/1.1” 200”.) I have plenty of cycles. I’ve changed the port to everything suggested on forums and even changing the .replit file to have a command, and nothing will change.

The domain I have is, which the Replit Flask/Python file is linked to. My code is linked here if you need access to it.

Please help. Thanks in advance!

Could be helpful?

So, to confirm, my custom domain is having an issue (as well as everyone else with custom domains)? And replit is aware of it and trying to fix? Is there anything else I can do? What about a TXT file alongside the CNAME/A record that someone in that thread mentioned? It seems that this would be a much larger problem that more people would be complaining about…

Hey @zdcoder13!

This issue seems to be different from the DNS issue mentioned earlier. We will investigate this issue and will follow up as soon as we have an update.


@ShaneAtReplit That would be a huge help, thanks!

Just to confirm, your webserver is running on The port shouldn’t matter. It is important that your webserver is hosted on so that it can be forwarded publicly to the URL and your custom domain.


Yes, the port is

The port can’t be Is your website hosted at

1 Like

My bad! Yes, is the host. Am I missing something as to why my website isn’t running?

This looks like it might be an issue on our end. I’ll send this to the team so we can investigate!


Sounds great! Thank you so much for your help @ShaneAtReplit and @QwertyQwerty88!


I don’t think the server works at all as I’m not able to access it from Does the web server work when you run it locally or on another service?

I have a version (the same version as the one I have on Replit) that successfully runs locally.

Understood, thank you. We will continue to investigate and will follow up once we have an update.


We have noticed that removing , debug=True from the"", port=8080) line will allow the server to work. We are still investigating why this is the case, and will follow up once we have another update.

1 Like

Awesome! The application runs. Thank you so much for your help :slight_smile:

Unfortunately, I can’t log in or create an account. The application returns a 500 error that reads:

Internal Server Error
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

Any idea on this new hurdle? :roll_eyes:

Could be something with your code, does it run locally?

Also just want to warn you, you are leaking your MongoDB username and password in your file, I would highly recommend you to put that URI in a secret and reset your password.

1 Like

The main login page will show if I run it locally, but I can’t create an account or log in. The other pages will work, but nothing will get logged into the database in MongoDB. I have changed the organization owner from my school email to my personal email (due to me losing access as a senior). Could this have anything to do with the error?

(Those MongoDB credentials were old and I have changed them since and stored the URI in a secret.)

1 Like