My ranking commands is not working - ro_py.utilities.errors.Unauthorized: [401] Authorization has been denied for this request

When I tried to use the !promote commands there is something pop up on my right side my screen.
Roblox 01_06_2022 19_06_35 (2)

1 Like

Hi! Welcome to the forums, it looks like you are getting an error, try going to your heroku logs, then try run the script again & see what pops up in the heroku logs!

The building logs or thing?

The normal logs after your app is running.

I can’t found the logs location

Oh there is it’s like this

What rank are you trying to rank the user to?

To the next rank from OR-1 Recruit to OR-2 Private

  • Please change your API key, or can you blur out your API key.

  • What user are you trying to promote?

My friends account Etrue86

Is he owner of the group?

He’s not the owner of the group

Can you copy and paste the entire log script inside of code tags and make sure your hiding your API key?

2022-06-01T13:00:02.652881+00:00 heroku[router]: at=info method=GET path="/group/promote?user_name=zildjiancai123&key=&groupid=13301770" host=roblox-auto-rank-bot.herokuapp.com request_id=85d8a7c3-e1dc-4717-a787-c2728495bd55 fwd="128.116.56.154" dyno=web.1 connect=0ms service=2ms status=307 bytes=271 protocol=https

2022-06-01T13:00:04.084839+00:00 app[web.1]: INFO:     128.116.56.154:0 - "GET /group/promote/?user_name=zildjiancai123&key=&groupid=13301770 HTTP/1.1" 500 Internal Server Error

2022-06-01T13:00:04.086203+00:00 app[web.1]: ERROR:    Exception in ASGI application

2022-06-01T13:00:04.086204+00:00 app[web.1]: Traceback (most recent call last):

2022-06-01T13:00:04.086206+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 369, in run_asgi

2022-06-01T13:00:04.086206+00:00 app[web.1]:     result = await app(self.scope, self.receive, self.send)

2022-06-01T13:00:04.086207+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 59, in __call__

2022-06-01T13:00:04.086207+00:00 app[web.1]:     return await self.app(scope, receive, send)

2022-06-01T13:00:04.086213+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.10/site-packages/fastapi/applications.py", line 199, in __call__

2022-06-01T13:00:04.086213+00:00 app[web.1]:     await super().__call__(scope, receive, send)

2022-06-01T13:00:04.086214+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.10/site-packages/starlette/applications.py", line 112, in __call__

2022-06-01T13:00:04.086214+00:00 app[web.1]:     await self.middleware_stack(scope, receive, send)

2022-06-01T13:00:04.086214+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.10/site-packages/starlette/middleware/errors.py", line 181, in __call__

2022-06-01T13:00:04.086215+00:00 app[web.1]:     raise exc from None

2022-06-01T13:00:04.086215+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.10/site-packages/starlette/middleware/errors.py", line 159, in __call__

2022-06-01T13:00:04.086216+00:00 app[web.1]:     await self.app(scope, receive, _send)

2022-06-01T13:00:04.086216+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.10/site-packages/starlette/exceptions.py", line 82, in __call__

2022-06-01T13:00:04.086216+00:00 app[web.1]:     raise exc from None

2022-06-01T13:00:04.086216+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.10/site-packages/starlette/exceptions.py", line 71, in __call__

2022-06-01T13:00:04.086217+00:00 app[web.1]:     await self.app(scope, receive, sender)

2022-06-01T13:00:04.086217+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.10/site-packages/starlette/routing.py", line 580, in __call__

2022-06-01T13:00:04.086217+00:00 app[web.1]:     await route.handle(scope, receive, send)

2022-06-01T13:00:04.086218+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.10/site-packages/starlette/routing.py", line 241, in handle

2022-06-01T13:00:04.086218+00:00 app[web.1]:     await self.app(scope, receive, send)

2022-06-01T13:00:04.086219+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.10/site-packages/starlette/routing.py", line 52, in app

2022-06-01T13:00:04.086219+00:00 app[web.1]:     response = await func(request)

2022-06-01T13:00:04.086219+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.10/site-packages/fastapi/routing.py", line 214, in app

2022-06-01T13:00:04.086219+00:00 app[web.1]:     raw_response = await run_endpoint_function(

2022-06-01T13:00:04.086220+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.10/site-packages/fastapi/routing.py", line 149, in run_endpoint_function

2022-06-01T13:00:04.086220+00:00 app[web.1]:     return await dependant.call(**values)

2022-06-01T13:00:04.086220+00:00 app[web.1]:   File "/app/./main.py", line 25, in read_items

2022-06-01T13:00:04.086221+00:00 app[web.1]:     await membertorank.promote()

2022-06-01T13:00:04.086221+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.10/site-packages/ro_py/groups.py", line 436, in promote

2022-06-01T13:00:04.086221+00:00 app[web.1]:     return await self.change_rank(1)

2022-06-01T13:00:04.086221+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.10/site-packages/ro_py/groups.py", line 424, in change_rank

2022-06-01T13:00:04.086222+00:00 app[web.1]:     await self.setrank(roles[role_counter + num].id)

2022-06-01T13:00:04.086222+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.10/site-packages/ro_py/groups.py", line 461, in setrank

2022-06-01T13:00:04.086222+00:00 app[web.1]:     rank_request = await self.requests.patch(

2022-06-01T13:00:04.086222+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.10/site-packages/ro_py/utilities/requests.py", line 99, in patch

2022-06-01T13:00:04.086223+00:00 app[web.1]:     return await self.request("patch", *args, **kwargs)

2022-06-01T13:00:04.086223+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.10/site-packages/ro_py/utilities/requests.py", line 78, in request

2022-06-01T13:00:04.086223+00:00 app[web.1]:     raise request_exception(f"[{this_request.status_code}] {get_request_error[0]['message']}")

2022-06-01T13:00:04.086223+00:00 app[web.1]: ro_py.utilities.errors.Unauthorized: [401] Authorization has been denied for this request.

2022-06-01T13:00:04.085597+00:00 heroku[router]: at=info method=GET path="/group/promote/?user_name=zildjiancai123&key=&groupid=13301770" host=roblox-auto-rank-bot.herokuapp.com request_id=36b6888a-c647-436a-938d-5b54b873a465 fwd="128.116.56.154" dyno=web.1 connect=0ms service=1278ms status=500 bytes=193 protocol=https

This is the script in the logs

Here is the error, something is wrong with the cookie, try getting the cookie again!

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