Cannot deploy app - deployment failed, an open port was not detected

why do i get this error?
hostingpid1: an open port was not detected
2024-01-01T15:15:16Z error: The deployment failed to initialize due to a configuration or code error

Repl link/Link to where the bug appears:
Screenshots, links, or other helpful context:

code snippet

Hi @tzuming2 , welcome to the forums!
If you are deploying a bot, use Reserved VM Deployments. For websites with a backend, use Autoscale Deplooyments. For websites with no backend, use Static Deployments.
Hope this helps!

1 Like