I have two files ‘main.py’ and ‘keep_alive.py’. I am trying to run selenium in the main file and in other threads I am trying to run keep_alive.py which creates a flask webserver so that I can ping the keep_alive server with uptimerobot. So that both the file will run in repl.it servers 24/7. But when selenium starts the flask webserver stops running and it shows an error.
We only allow one server to be running on a repl at once. When Selenium runs, it opens up a window (called VNC) that counts toward the server limit. We recommend splitting up the two servers into different repls if possible.
We have plans to fix this issue, although we do not have an ETA on this.