title: Error H14 heroku with selenium and fastapi
body: <p>I have a Fastapi with python that does some kind of web scraping. The api does the scraping part correctly and I'm sure of that by testing, but it shows this error when I visit the api page:</p>
  <p><code>2022-07-08T09:15:12.564152+00:00 app[worker.1]: INFO:     Started server process [4] 2022-07-08T09:15:12.564200+00:00 app[worker.1]: INFO:     Waiting for application startup. 2022-07-08T09:15:12.564650+00:00 app[worker.1]: INFO:     Application startup complete. 2022-07-08T09:15:12.565232+00:00 app[worker.1]: INFO:     Uvicorn running on http://0.0.0.0:47436 (Press CTRL+C to quit)                                              2022-07-08T09:16:05.643153+00:00 heroku[router]: at=error code=H14 desc=&quot;No web processes running&quot; method=GET path=&quot;/&quot; host=cryptic-plateau-86689.herokuapp.com request_id=504c098c-a538-418b-898c-70ed38496780 fwd=&quot;156.146.59.25&quot; dyno= connect= service= status=503 bytes= protocol=https</code></p>
  <p>Here's my Procfile:
  <code>worker: uvicorn main:app --host=0.0.0.0 --port=${PORT:-5000}</code></p>
  <p>And here's a small snippet of my script</p>
  <pre><code>dict = Scraping().get_books()   # this is the web scraping part
  app = FastAPI()
  
  @app.get(&quot;/&quot;)  
  def home():
      &quot;&quot;&quot;Gets everything&quot;&quot;&quot;
      return dict  
  </code></pre>
  <p>Note that I tried using <code>uvicorn main:app --host=0.0.0.0 --port=${PORT:-5000}</code> in Procfile. However, I get this error <code>Error R10 (Boot timeout) -&gt; Web process failed to bind to $PORT within 60 seconds of launch</code> which made me change it to worker according to online suggestions.</p>