Ranking API Issues

Hi, I’ve deployed the Ranking API onto Railway and Render, a Heroku alternative and I am facing issues where I am unable to promote any user. I was facing this issue with Heroku earlier as well, so it shouldn’t be an issue just because I move platforms. Please see the below error log (sensitive information has been removed):

INFO: Started server process [1]

INFO: Waiting for application startup.

INFO: Application startup complete.

INFO: Uvicorn running on http://0.0.0.0:5911 (Press CTRL+C to quit)

INFO: IP:53288 - “GET /group/promote/?user_name=INSERTUSER&key=INSERTKEY&groupid=INSERTGROUP HTTP/1.1” 500 Internal Server Error

ERROR: Exception in ASGI application

Traceback (most recent call last):

File “/opt/venv/lib/python3.8/site-packages/uvicorn/protocols/http/h11_impl.py”, line 369, in run_asgi

result = await app(self.scope, self.receive, self.send)

File “/opt/venv/lib/python3.8/site-packages/uvicorn/middleware/proxy_headers.py”, line 59, in call

return await self.app(scope, receive, send)

File “/opt/venv/lib/python3.8/site-packages/fastapi/applications.py”, line 199, in call

await super().call(scope, receive, send)

File “/opt/venv/lib/python3.8/site-packages/starlette/applications.py”, line 112, in call

await self.middleware_stack(scope, receive, send)

File “/opt/venv/lib/python3.8/site-packages/starlette/middleware/errors.py”, line 181, in call

raise exc from None

File “/opt/venv/lib/python3.8/site-packages/starlette/middleware/errors.py”, line 159, in call

await self.app(scope, receive, _send)

File “/opt/venv/lib/python3.8/site-packages/starlette/exceptions.py”, line 82, in call

raise exc from None

File “/opt/venv/lib/python3.8/site-packages/starlette/exceptions.py”, line 71, in call

await self.app(scope, receive, sender)

File “/opt/venv/lib/python3.8/site-packages/starlette/routing.py”, line 580, in call

await route.handle(scope, receive, send)

File “/opt/venv/lib/python3.8/site-packages/starlette/routing.py”, line 241, in handle

await self.app(scope, receive, send)

File “/opt/venv/lib/python3.8/site-packages/starlette/routing.py”, line 52, in app

response = await func(request)

File “/opt/venv/lib/python3.8/site-packages/fastapi/routing.py”, line 214, in app

raw_response = await run_endpoint_function(

File “/opt/venv/lib/python3.8/site-packages/fastapi/routing.py”, line 149, in run_endpoint_function

return await dependant.call(**values)

File “/app/./main.py”, line 22, in read_items

usernameinsystem = await client.get_user_by_username(user_name)

File “/opt/venv/lib/python3.8/site-packages/ro_py/client.py”, line 131, in get_user_by_username

raise UserDoesNotExistError

ro_py.utilities.errors.UserDoesNotExistError

INFO: IP:53290 - “GET /group/promote/?user_name=INSERTUSER&key=INSERTKEY&groupid=INSERTGROUP HTTP/1.1” 500 Internal Server Error

ERROR: Exception in ASGI application

Traceback (most recent call last):

File “/opt/venv/lib/python3.8/site-packages/uvicorn/protocols/http/h11_impl.py”, line 369, in run_asgi

result = await app(self.scope, self.receive, self.send)

File “/opt/venv/lib/python3.8/site-packages/uvicorn/middleware/proxy_headers.py”, line 59, in call

return await self.app(scope, receive, send)

File “/opt/venv/lib/python3.8/site-packages/fastapi/applications.py”, line 199, in call

await super().call(scope, receive, send)

File “/opt/venv/lib/python3.8/site-packages/starlette/applications.py”, line 112, in call

await self.middleware_stack(scope, receive, send)

File “/opt/venv/lib/python3.8/site-packages/starlette/middleware/errors.py”, line 181, in call

raise exc from None

File “/opt/venv/lib/python3.8/site-packages/starlette/middleware/errors.py”, line 159, in call

await self.app(scope, receive, _send)

File “/opt/venv/lib/python3.8/site-packages/starlette/exceptions.py”, line 82, in call

raise exc from None

File “/opt/venv/lib/python3.8/site-packages/starlette/exceptions.py”, line 71, in call

await self.app(scope, receive, sender)

File “/opt/venv/lib/python3.8/site-packages/starlette/routing.py”, line 580, in call

await route.handle(scope, receive, send)

File “/opt/venv/lib/python3.8/site-packages/starlette/routing.py”, line 241, in handle

await self.app(scope, receive, send)

File “/opt/venv/lib/python3.8/site-packages/starlette/routing.py”, line 52, in app

response = await func(request)

File “/opt/venv/lib/python3.8/site-packages/fastapi/routing.py”, line 214, in app

raw_response = await run_endpoint_function(

File “/opt/venv/lib/python3.8/site-packages/fastapi/routing.py”, line 149, in run_endpoint_function

return await dependant.call(**values)

File “/app/./main.py”, line 22, in read_items

usernameinsystem = await client.get_user_by_username(user_name)

File “/opt/venv/lib/python3.8/site-packages/ro_py/client.py”, line 131, in get_user_by_username

raise UserDoesNotExistError

ro_py.utilities.errors.UserDoesNotExistError

I’d be really grateful if you could diagnose the problem and perhaps push a fix on the repo. Thanks.

The error says what the problem is. I would also recommend changing category to #scripting-support:alternate-language

If you mean “user does not exist error”, then that is being thrown for every single user which is put through. Also, this is for your automatic application Centre tutorial, I forgot to put.

Right, this is unsupported by heroku, hence I’ve stopped updating it, it may get errors. If you’re going to use it, you should have basic knowledge of python.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.