I am trying to deploy my FastApi web application over Heroku using a free subscription. After deploying the application through the git option under the deploy tab, build was successfull but whenever I try to access the application it doesn't load.
Below is my build logs -
-----> Building on the Heroku-20 stack
-----> Determining which buildpack to use for this app
-----> Python app detected
-----> No Python version was specified. Using the buildpack default: python-3.9.5
To use a different version, see: https://devcenter.heroku.com/articles/python-runtimes
-----> Installing python-3.9.5
-----> Installing pip 20.2.4, setuptools 47.1.1 and wheel 0.36.2
-----> Installing SQLite3
-----> Installing requirements with pip
Collecting aiofiles==0.7.0
Downloading aiofiles-0.7.0-py3-none-any.whl (13 kB)
Collecting beautifulsoup4==4.9.3
Downloading beautifulsoup4-4.9.3-py3-none-any.whl (115 kB)
Collecting bs4==0.0.1
Downloading bs4-0.0.1.tar.gz (1.1 kB)
Collecting certifi==2020.12.5
Downloading certifi-2020.12.5-py2.py3-none-any.whl (147 kB)
Collecting chardet==4.0.0
Downloading chardet-4.0.0-py2.py3-none-any.whl (178 kB)
Collecting click==7.1.2
Downloading click-7.1.2-py2.py3-none-any.whl (82 kB)
Collecting fastapi==0.65.1
Downloading fastapi-0.65.1-py3-none-any.whl (50 kB)
Collecting h11==0.12.0
Downloading h11-0.12.0-py3-none-any.whl (54 kB)
Collecting idna==2.10
Downloading idna-2.10-py2.py3-none-any.whl (58 kB)
Collecting Jinja2==3.0.1
Downloading Jinja2-3.0.1-py3-none-any.whl (133 kB)
Collecting MarkupSafe==2.0.1
Downloading MarkupSafe-2.0.1-cp39-cp39-manylinux2010_x86_64.whl (30 kB)
Collecting numpy==1.20.3
Downloading numpy-1.20.3-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (15.4 MB)
Collecting pandas==1.2.4
Downloading pandas-1.2.4-cp39-cp39-manylinux1_x86_64.whl (9.7 MB)
Collecting pydantic==1.8.2
Downloading pydantic-1.8.2-cp39-cp39-manylinux2014_x86_64.whl (11.3 MB)
Collecting python-dateutil==2.8.1
Downloading python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
Collecting python-multipart==0.0.5
Downloading python-multipart-0.0.5.tar.gz (32 kB)
Collecting pytz==2021.1
Downloading pytz-2021.1-py2.py3-none-any.whl (510 kB)
Collecting requests==2.25.1
Downloading requests-2.25.1-py2.py3-none-any.whl (61 kB)
Collecting six==1.16.0
Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting soupsieve==2.2.1
Downloading soupsieve-2.2.1-py3-none-any.whl (33 kB)
Collecting starlette==0.14.2
Downloading starlette-0.14.2-py3-none-any.whl (60 kB)
Collecting typing==3.7.4.3
Downloading typing-3.7.4.3.tar.gz (78 kB)
Collecting typing-extensions==3.10.0.0
Downloading typing_extensions-3.10.0.0-py3-none-any.whl (26 kB)
Collecting urllib3==1.26.4
Downloading urllib3-1.26.4-py2.py3-none-any.whl (153 kB)
Collecting uvicorn==0.13.4
Downloading uvicorn-0.13.4-py3-none-any.whl (46 kB)
Building wheels for collected packages: bs4, python-multipart, typing
Building wheel for bs4 (setup.py): started
Building wheel for bs4 (setup.py): finished with status 'done'
Created wheel for bs4: filename=bs4-0.0.1-py3-none-any.whl size=1273sha256=4aff1842a226daad8a3f6a9f03dc0bc933280d45dac2e5856b47dd27d9913a9d
Stored in directory: /tmp/pip-ephem-wheel-cache-ymh9_z_7/wheels/73/2b/cb/099980278a0c9a3e57ff1a89875ec07bfa0b6fcbebb9a8cad3
Building wheel for python-multipart (setup.py): started
Building wheel for python-multipart (setup.py): finished with status 'done'
Created wheel for python-multipart: filename=python_multipart-0.0.5-py3-none-any.whl size=31670 sha256=42102fac481f4d7a05c864287e7249889e64001a8bd63598b16573ad2e0553c6
Stored in directory: /tmp/pip-ephem-wheel-cache-ymh9_z_7/wheels/fe/04/d1/a10661cc45f03c3cecda50deb2d2c22f57b4e84a75b2a5987e
Building wheel for typing (setup.py): started
Building wheel for typing (setup.py): finished with status 'done'
Created wheel for typing: filename=typing-3.7.4.3-py3-none-any.whl size=26308 sha256=3150f8911fdd9304e42b3e96670be51f20abc94c44650655f193e56b75bd9ff2
Stored in directory: /tmp/pip-ephem-wheel-cache-ymh9_z_7/wheels/fa/17/1f/332799f975d1b2d7f9b3f33bbccf65031e794717d24432caee
Successfully built bs4 python-multipart typing
Installing collected packages: aiofiles, soupsieve, beautifulsoup4, bs4, certifi, chardet, click, typing-extensions, pydantic, starlette, fastapi, h11, idna, MarkupSafe, Jinja2, numpy, pytz, six, python-dateutil, pandas, python-multipart, urllib3, requests, typing, uvicorn
Successfully installed Jinja2-3.0.1 MarkupSafe-2.0.1 aiofiles-0.7.0 beautifulsoup4-4.9.3 bs4-0.0.1 certifi-2020.12.5 chardet-4.0.0 click-7.1.2 fastapi-0.65.1 h11-0.12.0 idna-2.10 numpy-1.20.3 pandas-1.2.4 pydantic-1.8.2 python-dateutil-2.8.1 python-multipart-0.0.5 pytz-2021.1 requests-2.25.1 six-1.16.0 soupsieve-2.2.1 starlette-0.14.2 typing-3.7.4.3 typing-extensions-3.10.0.0 urllib3-1.26.4 uvicorn-0.13.4
-----> Discovering process types
Procfile declares types -> web
-----> Compressing...
Done: 95M
-----> Launching...
Released v3
https://reviewscrapperpy.herokuapp.com/ deployed to Heroku
Facing below err while trying to access the application - 
Aucun commentaire:
Enregistrer un commentaire