Non-functioning !promote and !demote commands - 404

When I send a request to my heroku server I get a 404 error, why is this?

Please add details, or your post will be removed.

Whenever I do !promote or !demote it comes up with the failure to promote the message.

May we see your Heroku logs?

Heroku 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.10.6
To use a different version, see: Specifying a Python Runtime | Heroku Dev Center
-----> Installing python-3.10.6
-----> Installing pip 22.1.2, setuptools 60.10.0 and wheel 0.37.1
-----> Installing SQLite3
-----> Installing requirements with pip
Collecting fastapi==0.65.2
Downloading fastapi-0.65.2-py3-none-any.whl (51 kB)
Collecting ro_py==1.2.0.5
Downloading ro_py-1.2.0.5-py3-none-any.whl (69 kB)
Collecting asyncio==3.4.3
Downloading asyncio-3.4.3-py3-none-any.whl (101 kB)
Collecting python-dotenv==0.16.0
Downloading python_dotenv-0.16.0-py2.py3-none-any.whl (18 kB)
Collecting uvicorn==0.14.0
Downloading uvicorn-0.14.0-py3-none-any.whl (50 kB)
Collecting pydantic!=1.7,!=1.7.1,!=1.7.2,!=1.7.3,!=1.8,!=1.8.1,<2.0.0,>=1.6.2
Downloading pydantic-1.9.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.0 MB)
Collecting starlette==0.14.2
Downloading starlette-0.14.2-py3-none-any.whl (60 kB)
Collecting iso8601
Downloading iso8601-1.0.2-py3-none-any.whl (9.7 kB)
Collecting httpx
Downloading httpx-0.23.0-py3-none-any.whl (84 kB)
Collecting lxml
Downloading lxml-4.9.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (6.9 MB)
Collecting requests
Downloading requests-2.28.1-py3-none-any.whl (62 kB)
Collecting h11>=0.8
Downloading h11-0.13.0-py3-none-any.whl (58 kB)
Collecting click>=7.*
Downloading click-8.1.3-py3-none-any.whl (96 kB)
Collecting asgiref>=3.3.4
Downloading asgiref-3.5.2-py3-none-any.whl (22 kB)
Collecting typing-extensions>=3.7.4.3
Downloading typing_extensions-4.3.0-py3-none-any.whl (25 kB)
Collecting httpcore<0.16.0,>=0.15.0
Downloading httpcore-0.15.0-py3-none-any.whl (68 kB)
Collecting certifi
Downloading certifi-2022.6.15-py3-none-any.whl (160 kB)
Collecting sniffio
Downloading sniffio-1.2.0-py3-none-any.whl (10 kB)
Collecting rfc3986[idna2008]<2,>=1.3
Downloading rfc3986-1.5.0-py2.py3-none-any.whl (31 kB)
Collecting urllib3<1.27,>=1.21.1
Downloading urllib3-1.26.11-py2.py3-none-any.whl (139 kB)
Collecting idna<4,>=2.5
Downloading idna-3.3-py3-none-any.whl (61 kB)
Collecting charset-normalizer<3,>=2
Downloading charset_normalizer-2.1.0-py3-none-any.whl (39 kB)
Collecting anyio==3.*
Downloading anyio-3.6.1-py3-none-any.whl (80 kB)
Collecting h11>=0.8
Downloading h11-0.12.0-py3-none-any.whl (54 kB)
Installing collected packages: rfc3986, python-dotenv, asyncio, urllib3, typing-extensions, starlette, sniffio, lxml, iso8601, idna, h11, click, charset-normalizer, certifi, asgiref, uvicorn, requests, pydantic, anyio, httpcore, fastapi, httpx, ro_py
Successfully installed anyio-3.6.1 asgiref-3.5.2 asyncio-3.4.3 certifi-2022.6.15 charset-normalizer-2.1.0 click-8.1.3 fastapi-0.65.2 h11-0.12.0 httpcore-0.15.0 httpx-0.23.0 idna-3.3 iso8601-1.0.2 lxml-4.9.1 pydantic-1.9.2 python-dotenv-0.16.0 requests-2.28.1 rfc3986-1.5.0 ro_py-1.2.0.5 sniffio-1.2.0 starlette-0.14.2 typing-extensions-4.3.0 urllib3-1.26.11 uvicorn-0.14.0
-----> Discovering process types
Procfile declares types → web
-----> Compressing…
Done: 41.1M
-----> Launching…
Released v3
https://robloxranking2022.herokuapp.com/ deployed to Heroku
This app is using the Heroku-20 stack, however a newer stack is available.
To upgrade to Heroku-22, see:
Upgrading to the Latest Stack | Heroku Dev Center

Please insert them in code tags.

Heroku 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.10.6
To use a different version, see: [Specifying a Python Runtime | Heroku Dev Center](https://devcenter.heroku.com/articles/python-runtimes)
-----> Installing python-3.10.6
-----> Installing pip 22.1.2, setuptools 60.10.0 and wheel 0.37.1
-----> Installing SQLite3
-----> Installing requirements with pip
Collecting fastapi==0.65.2
Downloading fastapi-0.65.2-py3-none-any.whl (51 kB)
Collecting ro_py==1.2.0.5
Downloading ro_py-1.2.0.5-py3-none-any.whl (69 kB)
Collecting asyncio==3.4.3
Downloading asyncio-3.4.3-py3-none-any.whl (101 kB)
Collecting python-dotenv==0.16.0
Downloading python_dotenv-0.16.0-py2.py3-none-any.whl (18 kB)
Collecting uvicorn==0.14.0
Downloading uvicorn-0.14.0-py3-none-any.whl (50 kB)
Collecting pydantic!=1.7,!=1.7.1,!=1.7.2,!=1.7.3,!=1.8,!=1.8.1,<2.0.0,>=1.6.2
Downloading pydantic-1.9.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.0 MB)
Collecting starlette==0.14.2
Downloading starlette-0.14.2-py3-none-any.whl (60 kB)
Collecting iso8601
Downloading iso8601-1.0.2-py3-none-any.whl (9.7 kB)
Collecting httpx
Downloading httpx-0.23.0-py3-none-any.whl (84 kB)
Collecting lxml
Downloading lxml-4.9.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (6.9 MB)
Collecting requests
Downloading requests-2.28.1-py3-none-any.whl (62 kB)
Collecting h11>=0.8
Downloading h11-0.13.0-py3-none-any.whl (58 kB)
Collecting click>=7.*
Downloading click-8.1.3-py3-none-any.whl (96 kB)
Collecting asgiref>=3.3.4
Downloading asgiref-3.5.2-py3-none-any.whl (22 kB)
Collecting typing-extensions>=3.7.4.3
Downloading typing_extensions-4.3.0-py3-none-any.whl (25 kB)
Collecting httpcore<0.16.0,>=0.15.0
Downloading httpcore-0.15.0-py3-none-any.whl (68 kB)
Collecting certifi
Downloading certifi-2022.6.15-py3-none-any.whl (160 kB)
Collecting sniffio
Downloading sniffio-1.2.0-py3-none-any.whl (10 kB)
Collecting rfc3986[idna2008]<2,>=1.3
Downloading rfc3986-1.5.0-py2.py3-none-any.whl (31 kB)
Collecting urllib3<1.27,>=1.21.1
Downloading urllib3-1.26.11-py2.py3-none-any.whl (139 kB)
Collecting idna<4,>=2.5
Downloading idna-3.3-py3-none-any.whl (61 kB)
Collecting charset-normalizer<3,>=2
Downloading charset_normalizer-2.1.0-py3-none-any.whl (39 kB)
Collecting anyio==3.*
Downloading anyio-3.6.1-py3-none-any.whl (80 kB)
Collecting h11>=0.8
Downloading h11-0.12.0-py3-none-any.whl (54 kB)
Installing collected packages: rfc3986, python-dotenv, asyncio, urllib3, typing-extensions, starlette, sniffio, lxml, iso8601, idna, h11, click, charset-normalizer, certifi, asgiref, uvicorn, requests, pydantic, anyio, httpcore, fastapi, httpx, ro_py
Successfully installed anyio-3.6.1 asgiref-3.5.2 asyncio-3.4.3 certifi-2022.6.15 charset-normalizer-2.1.0 click-8.1.3 fastapi-0.65.2 h11-0.12.0 httpcore-0.15.0 httpx-0.23.0 idna-3.3 iso8601-1.0.2 lxml-4.9.1 pydantic-1.9.2 python-dotenv-0.16.0 requests-2.28.1 rfc3986-1.5.0 ro_py-1.2.0.5 sniffio-1.2.0 starlette-0.14.2 typing-extensions-4.3.0 urllib3-1.26.11 uvicorn-0.14.0
-----> Discovering process types
Procfile declares types → web
-----> Compressing…
Done: 41.1M
-----> Launching…
Released v3
[https://robloxranking2022.herokuapp.com/ ](https://robloxranking2022.herokuapp.com/) deployed to Heroku
This app is using the Heroku-20 stack, however a newer stack is available.
To upgrade to Heroku-22, see:
[Upgrading to the Latest Stack | Heroku Dev Center](https://devcenter.heroku.com/articles/upgrading-to-the-latest-stack)

I did it for him so its quicker.

These are the build logs…

Where do I find the heroku logs then?

2022-08-16T01:07:31.504808+00:00 app[web.1]: INFO:     Shutting down
2022-08-16T01:07:31.540838+00:00 app[web.1]: INFO:     Shutting down
2022-08-16T01:07:31.605167+00:00 app[web.1]: INFO:     Waiting for application shutdown.
2022-08-16T01:07:31.605309+00:00 app[web.1]: INFO:     Application shutdown complete.
2022-08-16T01:07:31.605361+00:00 app[web.1]: INFO:     Finished server process [11]
2022-08-16T01:07:31.641338+00:00 app[web.1]: INFO:     Waiting for application shutdown.
2022-08-16T01:07:31.641474+00:00 app[web.1]: INFO:     Application shutdown complete.
2022-08-16T01:07:31.641541+00:00 app[web.1]: INFO:     Finished server process [10]
2022-08-16T01:07:31.695693+00:00 app[web.1]: INFO:     Stopping parent process [4]
2022-08-16T01:07:31.855805+00:00 heroku[web.1]: Process exited with status 0

Alright, then send a request to the server.

A deploy?
Is that what is needed?

image
even when I have auto deploys on.

We need to see your heroku logs, make to search as soo many people have the same question

2022-08-16T01:07:31.504808+00:00 app[web.1]: INFO:     Shutting down
2022-08-16T01:07:31.540838+00:00 app[web.1]: INFO:     Shutting down
2022-08-16T01:07:31.605167+00:00 app[web.1]: INFO:     Waiting for application shutdown.
2022-08-16T01:07:31.605309+00:00 app[web.1]: INFO:     Application shutdown complete.
2022-08-16T01:07:31.605361+00:00 app[web.1]: INFO:     Finished server process [11]
2022-08-16T01:07:31.641338+00:00 app[web.1]: INFO:     Waiting for application shutdown.
2022-08-16T01:07:31.641474+00:00 app[web.1]: INFO:     Application shutdown complete.
2022-08-16T01:07:31.641541+00:00 app[web.1]: INFO:     Finished server process [10]
2022-08-16T01:07:31.695693+00:00 app[web.1]: INFO:     Stopping parent process [4]
2022-08-16T01:07:31.855805+00:00 heroku[web.1]: Process exited with status 0

Keep your logs open and then send a screenshot after you sent a request to the server.

By request to the server, what do you mean?

Send a rank or something, something that will cause it to break and show you the logs.

1 Like

Ok. I will go check that now.

Nothing happens. What do I do?