Root route i.e. '/' shows Error 404. #3
Added a redirect to the repository url when the URL is "/". This is connected to issue #3 .
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/arnoob16/geeks-for-geeks-api/mn26df2xl
✅ Preview: https://geeks-for-geeks-api-git-fork-jwright707-rootrouteerror.arnoob16.vercel.app
Hey @Jwright707, Vercel Bot already deployed the changes you made
to this URL https://geeks-for-geeks-api-git-fork-jwright707-rootrouteerror.arnoob16.vercel.app/
but it shows some application error at "/" route but works fine on the specified "/userName" endpoint.
Here's the screenshot of the error, try to fix this.

Hi @arnoob16 , are you able to post the logs from vercel? I'm unable to view the logs and unable to replicate this locally.
Hi @arnoob16 , are you able to post the logs from vercel? I'm unable to view the logs and unable to replicate this locally.
Hey @Jwright707, here are the logs from Vercel.
03:36:20.340 Cloning github.com/arnoob16/GeeksForGeeksAPI (Branch: rootRouteError, Commit: cd6832b)
03:36:20.579 Cloning completed in 239ms
03:36:20.588 Analyzing source code...
03:36:20.593 Warning: Due to `builds` existing in your configuration file, the Build and Development Settings defined in your Project Settings will not apply. Learn More: https://vercel.link/unused-build-settings
03:36:21.864 Installing build runtime...
03:36:25.478 Build runtime installed: 3614.259ms
03:36:26.005 Looking up build cache...
03:36:26.291 Build cache not found
03:36:26.816 downloading files...
03:36:26.868 downloading "get-pip.py"...
03:36:27.010 runing "python get-pip.py"...
03:36:28.794 Collecting pip
03:36:28.801 Using cached pip-20.3.3-py2.py3-none-any.whl (1.5 MB)
03:36:28.897 Collecting wheel
03:36:28.918 Downloading wheel-0.36.2-py2.py3-none-any.whl (35 kB)
03:36:28.944 Installing collected packages: pip, wheel
03:36:29.819 WARNING: The scripts pip, pip3 and pip3.6 are installed in '/tmp/4d585f1a/bin' which is not on PATH.
03:36:29.819 Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
03:36:29.857 WARNING: The script wheel is installed in '/tmp/4d585f1a/bin' which is not on PATH.
03:36:29.857 Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
03:36:29.866 Successfully installed pip-20.3.3 wheel-0.36.2
03:36:30.045 running "pip install -t /tmp/58570e4c requests"...
03:36:30.626 Collecting requests
03:36:30.646 Downloading requests-2.25.1-py2.py3-none-any.whl (61 kB)
03:36:30.931 Collecting certifi>=2017.4.17
03:36:30.935 Downloading certifi-2020.12.5-py2.py3-none-any.whl (147 kB)
03:36:30.951 Collecting chardet<5,>=3.0.2
03:36:30.954 Downloading chardet-4.0.0-py2.py3-none-any.whl (178 kB)
03:36:30.970 Collecting idna<3,>=2.5
03:36:30.973 Downloading idna-2.10-py2.py3-none-any.whl (58 kB)
03:36:30.983 Collecting urllib3<1.27,>=1.21.1
03:36:30.987 Downloading urllib3-1.26.2-py2.py3-none-any.whl (136 kB)
03:36:31.048 Installing collected packages: urllib3, idna, chardet, certifi, requests
03:36:31.456 Successfully installed certifi-2020.12.5 chardet-4.0.0 idna-2.10 requests-2.25.1 urllib3-1.26.2
03:36:31.502 found "requirements.txt"
03:36:31.502 running "pip install -t /tmp/58570e4c -r /tmp/58570e4c/requirements.txt"...
03:36:32.071 Collecting beautifulsoup4==4.9.3
03:36:32.089 Downloading beautifulsoup4-4.9.3-py3-none-any.whl (115 kB)
03:36:32.202 Collecting Flask==1.1.2
03:36:32.206 Downloading Flask-1.1.2-py2.py3-none-any.whl (94 kB)
03:36:32.447 Collecting Flask_RESTful==0.3.8
03:36:32.452 Downloading Flask_RESTful-0.3.8-py2.py3-none-any.whl (25 kB)
03:36:32.800 Collecting requests==2.24.0
03:36:32.804 Downloading requests-2.24.0-py2.py3-none-any.whl (61 kB)
03:36:33.069 Collecting aniso8601>=0.82
03:36:33.074 Downloading aniso8601-8.1.0-py2.py3-none-any.whl (44 kB)
03:36:33.083 Collecting certifi>=2017.4.17
03:36:33.086 Using cached certifi-2020.12.5-py2.py3-none-any.whl (147 kB)
03:36:33.090 Collecting chardet<4,>=3.0.2
03:36:33.094 Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB)
03:36:33.105 Collecting click>=5.1
03:36:33.108 Downloading click-7.1.2-py2.py3-none-any.whl (82 kB)
03:36:33.119 Collecting idna<3,>=2.5
03:36:33.121 Using cached idna-2.10-py2.py3-none-any.whl (58 kB)
03:36:33.130 Collecting itsdangerous>=0.24
03:36:33.133 Downloading itsdangerous-1.1.0-py2.py3-none-any.whl (16 kB)
03:36:33.144 Collecting Jinja2>=2.10.1
03:36:33.147 Downloading Jinja2-2.11.2-py2.py3-none-any.whl (125 kB)
03:36:33.214 Collecting MarkupSafe>=0.23
03:36:33.219 Downloading MarkupSafe-1.1.1-cp36-cp36m-manylinux1_x86_64.whl (27 kB)
03:36:33.232 Collecting six>=1.3.0
03:36:33.235 Downloading six-1.15.0-py2.py3-none-any.whl (10 kB)
03:36:33.247 Collecting soupsieve>1.2
03:36:33.251 Downloading soupsieve-2.1-py3-none-any.whl (32 kB)
03:36:33.264 Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1
03:36:33.268 Downloading urllib3-1.25.11-py2.py3-none-any.whl (127 kB)
03:36:33.298 Collecting Werkzeug>=0.15
03:36:33.302 Downloading Werkzeug-1.0.1-py2.py3-none-any.whl (298 kB)
03:36:33.338 Collecting pytz
03:36:33.342 Downloading pytz-2020.5-py2.py3-none-any.whl (510 kB)
03:36:33.461 Installing collected packages: MarkupSafe, Werkzeug, Jinja2, itsdangerous, click, urllib3, soupsieve, six, pytz, idna, Flask, chardet, certifi, aniso8601, requests, Flask-RESTful, beautifulsoup4
03:36:34.522 Successfully installed Flask-1.1.2 Flask-RESTful-0.3.8 Jinja2-2.11.2 MarkupSafe-1.1.1 Werkzeug-1.0.1 aniso8601-8.1.0 beautifulsoup4-4.9.3 certifi-2020.12.5 chardet-3.0.4 click-7.1.2 idna-2.10 itsdangerous-1.1.0 pytz-2020.5 requests-2.24.0 six-1.15.0 soupsieve-2.1 urllib3-1.25.11
03:36:34.523 WARNING: Target directory /tmp/58570e4c/certifi already exists. Specify --upgrade to force replacement.
03:36:34.523 WARNING: Target directory /tmp/58570e4c/requests already exists. Specify --upgrade to force replacement.
03:36:34.523 WARNING: Target directory /tmp/58570e4c/certifi-2020.12.5.dist-info already exists. Specify --upgrade to force replacement.
03:36:34.524 WARNING: Target directory /tmp/58570e4c/idna already exists. Specify --upgrade to force replacement.
03:36:34.524 WARNING: Target directory /tmp/58570e4c/urllib3 already exists. Specify --upgrade to force replacement.
03:36:34.524 WARNING: Target directory /tmp/58570e4c/chardet already exists. Specify --upgrade to force replacement.
03:36:34.525 WARNING: Target directory /tmp/58570e4c/idna-2.10.dist-info already exists. Specify --upgrade to force replacement.
03:36:34.525 WARNING: Target directory /tmp/58570e4c/bin already exists. Specify --upgrade to force replacement.
03:36:34.595 entrypoint is app.py
03:36:36.900 Uploading build outputs...
03:36:39.734 Done with "app.py"
03:36:40.964 Installing build runtime...
03:36:41.489 Build runtime installed: 524.420ms
03:36:42.011 Looking up build cache...
03:36:42.329 Build cache not found
03:36:42.861 downloading files...
03:36:42.912 downloading "get-pip.py"...
03:36:42.984 runing "python get-pip.py"...
03:36:44.754 Collecting pip
03:36:44.761 Using cached pip-20.3.3-py2.py3-none-any.whl (1.5 MB)
03:36:44.858 Collecting wheel
03:36:44.860 Using cached wheel-0.36.2-py2.py3-none-any.whl (35 kB)
03:36:44.881 Installing collected packages: pip, wheel
03:36:45.780 WARNING: The scripts pip, pip3 and pip3.6 are installed in '/tmp/1005bf62/bin' which is not on PATH.
03:36:45.780 Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
03:36:45.819 WARNING: The script wheel is installed in '/tmp/1005bf62/bin' which is not on PATH.
03:36:45.819 Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
03:36:45.828 Successfully installed pip-20.3.3 wheel-0.36.2
03:36:45.880 running "pip install -t /tmp/58e276b6 requests"...
03:36:46.458 Collecting requests
03:36:46.461 Using cached requests-2.25.1-py2.py3-none-any.whl (61 kB)
03:36:46.741 Collecting certifi>=2017.4.17
03:36:46.744 Using cached certifi-2020.12.5-py2.py3-none-any.whl (147 kB)
03:36:46.747 Collecting chardet<5,>=3.0.2
03:36:46.749 Using cached chardet-4.0.0-py2.py3-none-any.whl (178 kB)
03:36:46.755 Collecting idna<3,>=2.5
03:36:46.756 Using cached idna-2.10-py2.py3-none-any.whl (58 kB)
03:36:46.762 Collecting urllib3<1.27,>=1.21.1
03:36:46.764 Using cached urllib3-1.26.2-py2.py3-none-any.whl (136 kB)
03:36:46.816 Installing collected packages: urllib3, idna, chardet, certifi, requests
03:36:47.246 Successfully installed certifi-2020.12.5 chardet-4.0.0 idna-2.10 requests-2.25.1 urllib3-1.26.2
03:36:47.291 found "requirements.txt"
03:36:47.292 running "pip install -t /tmp/58e276b6 -r /tmp/58e276b6/requirements.txt"...
03:36:47.883 Collecting beautifulsoup4==4.9.3
03:36:47.885 Using cached beautifulsoup4-4.9.3-py3-none-any.whl (115 kB)
03:36:47.987 Collecting Flask==1.1.2
03:36:47.989 Using cached Flask-1.1.2-py2.py3-none-any.whl (94 kB)
03:36:48.226 Collecting Flask_RESTful==0.3.8
03:36:48.230 Using cached Flask_RESTful-0.3.8-py2.py3-none-any.whl (25 kB)
03:36:48.577 Collecting requests==2.24.0
03:36:48.579 Using cached requests-2.24.0-py2.py3-none-any.whl (61 kB)
03:36:48.848 Collecting aniso8601>=0.82
03:36:48.850 Using cached aniso8601-8.1.0-py2.py3-none-any.whl (44 kB)
03:36:48.854 Collecting certifi>=2017.4.17
03:36:48.857 Using cached certifi-2020.12.5-py2.py3-none-any.whl (147 kB)
03:36:48.861 Collecting chardet<4,>=3.0.2
03:36:48.863 Using cached chardet-3.0.4-py2.py3-none-any.whl (133 kB)
03:36:48.868 Collecting click>=5.1
03:36:48.870 Using cached click-7.1.2-py2.py3-none-any.whl (82 kB)
03:36:48.876 Collecting idna<3,>=2.5
03:36:48.878 Using cached idna-2.10-py2.py3-none-any.whl (58 kB)
03:36:48.884 Collecting itsdangerous>=0.24
03:36:48.886 Using cached itsdangerous-1.1.0-py2.py3-none-any.whl (16 kB)
03:36:48.893 Collecting Jinja2>=2.10.1
03:36:48.895 Using cached Jinja2-2.11.2-py2.py3-none-any.whl (125 kB)
03:36:48.956 Collecting MarkupSafe>=0.23
03:36:48.958 Using cached MarkupSafe-1.1.1-cp36-cp36m-manylinux1_x86_64.whl (27 kB)
03:36:48.966 Collecting six>=1.3.0
03:36:48.967 Using cached six-1.15.0-py2.py3-none-any.whl (10 kB)
03:36:48.975 Collecting soupsieve>1.2
03:36:48.977 Using cached soupsieve-2.1-py3-none-any.whl (32 kB)
03:36:48.988 Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1
03:36:48.990 Using cached urllib3-1.25.11-py2.py3-none-any.whl (127 kB)
03:36:49.014 Collecting Werkzeug>=0.15
03:36:49.016 Using cached Werkzeug-1.0.1-py2.py3-none-any.whl (298 kB)
03:36:49.040 Collecting pytz
03:36:49.042 Using cached pytz-2020.5-py2.py3-none-any.whl (510 kB)
03:36:49.153 Installing collected packages: MarkupSafe, Werkzeug, Jinja2, itsdangerous, click, urllib3, soupsieve, six, pytz, idna, Flask, chardet, certifi, aniso8601, requests, Flask-RESTful, beautifulsoup4
03:36:50.219 Successfully installed Flask-1.1.2 Flask-RESTful-0.3.8 Jinja2-2.11.2 MarkupSafe-1.1.1 Werkzeug-1.0.1 aniso8601-8.1.0 beautifulsoup4-4.9.3 certifi-2020.12.5 chardet-3.0.4 click-7.1.2 idna-2.10 itsdangerous-1.1.0 pytz-2020.5 requests-2.24.0 six-1.15.0 soupsieve-2.1 urllib3-1.25.11
03:36:50.220 WARNING: Target directory /tmp/58e276b6/certifi already exists. Specify --upgrade to force replacement.
03:36:50.220 WARNING: Target directory /tmp/58e276b6/requests already exists. Specify --upgrade to force replacement.
03:36:50.220 WARNING: Target directory /tmp/58e276b6/certifi-2020.12.5.dist-info already exists. Specify --upgrade to force replacement.
03:36:50.221 WARNING: Target directory /tmp/58e276b6/idna already exists. Specify --upgrade to force replacement.
03:36:50.221 WARNING: Target directory /tmp/58e276b6/urllib3 already exists. Specify --upgrade to force replacement.
03:36:50.221 WARNING: Target directory /tmp/58e276b6/chardet already exists. Specify --upgrade to force replacement.
03:36:50.221 WARNING: Target directory /tmp/58e276b6/idna-2.10.dist-info already exists. Specify --upgrade to force replacement.
03:36:50.222 WARNING: Target directory /tmp/58e276b6/bin already exists. Specify --upgrade to force replacement.
03:36:50.281 entrypoint is scrap.py
03:36:52.398 Uploading build outputs...
03:36:57.590 Done with "scrap.py"
@arnoob16 Ignore that last commit, seems like its still not working. Have to keep digging into this issue.
@arnoob16 just a heads up. I'm unable to replicate this on my end, so there will be some commit pushed that you can ignore. Have to test some things out, but I'll keep you updated when a fix is there. Thank you for your patience and feedback.
@Jwright707 is attempting to deploy a commit to a Personal Account owned by @arnoob16 on Vercel.
@arnoob16 first needs to authorize it.
@arnoob16 I believe the issue that I'm running into exists on the vercel.json file. I change the src for "/" to be redirected to the repo.
Hi @arnoob16 thank you. Yes, I believe I'm seeing whats happening. I'm going to take a walk and then look into this more. I believe I'm getting somewhere. Thank you again
Hi @arnoob16 I'm noticing that Vercel needs authorization now, I'm curious if this is due to me changing the vercel.json file.
@arnoob16 I believe this should be the last commit. I added back in the redirect because it seemed like the scrap.py was returning correctly. If this doesn't work then I may have to rethink this or I might need assistance.