Ranking commands don't work - 401

Everything works except for the ranking, it doesn’t change the rank. It gives all the notification, I did all the steps etc. NOTHING works other than the notifications.

1 Like

2022-07-14T14:45:39.534006+00:00 app[web.1]: return await self.change_rank(-1)
2022-07-14T14:45:39.534006+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/ro_py/groups.py”, line 424, in change_rank
2022-07-14T14:45:39.534007+00:00 app[web.1]: await self.setrank(roles[role_counter + num].id)
2022-07-14T14:45:39.534007+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/ro_py/groups.py”, line 461, in setrank
2022-07-14T14:45:39.534007+00:00 app[web.1]: rank_request = await self.requests.patch(
2022-07-14T14:45:39.534007+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/ro_py/utilities/requests.py”, line 99, in patch
2022-07-14T14:45:39.534008+00:00 app[web.1]: return await self.request(“patch”, *args, **kwargs)
2022-07-14T14:45:39.534008+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/ro_py/utilities/requests.py”, line 78, in request
2022-07-14T14:45:39.534008+00:00 app[web.1]: raise request_exception(f"[{this_request.status_code}] {get_request_error[0][‘message’]}“)
2022-07-14T14:45:39.534009+00:00 app[web.1]: ro_py.utilities.errors.Unauthorized: [401] Authorization has been denied for this request.
2022-07-14T14:48:35.944164+00:00 heroku[router]: at=info method=GET path=”/group/promote?user_name=Ellie_Nocare&key=sedrasydyatsdkalqpbq&groupid=14700116" host=kekio-ranking-system.herokuapp.com request_id=737e86bd-5844-4259-8abf-07a93ac9dc0d fwd=“128.116.48.157” dyno=web.1 connect=0ms service=1ms status=307 bytes=275 protocol=https
2022-07-14T14:48:35.945646+00:00 app[web.1]: INFO: 128.116.48.157:0 - “GET /group/promote?user_name=Ellie_Nocare&key=sedrasydyatsdkalqpbq&groupid=14700116 HTTP/1.1” 307 Temporary Redirect
2022-07-14T14:48:36.780492+00:00 heroku[router]: at=info method=GET path=“/group/promote/?user_name=Ellie_Nocare&key=sedrasydyatsdkalqpbq&groupid=14700116” host=kekio-ranking-system.herokuapp.com request_id=935d11ee-a44a-4c10-ad1f-b7ab6b7ea9f5 fwd=“128.116.48.157” dyno=web.1 connect=0ms service=767ms status=500 bytes=193 protocol=https
2022-07-14T14:48:36.781786+00:00 app[web.1]: INFO: 128.116.48.157:0 - “GET /group/promote/?user_name=Ellie_Nocare&key=sedrasydyatsdkalqpbq&groupid=14700116 HTTP/1.1” 500 Internal Server Error
2022-07-14T14:48:36.782369+00:00 app[web.1]: ERROR: Exception in ASGI application
2022-07-14T14:48:36.782369+00:00 app[web.1]: Traceback (most recent call last):
2022-07-14T14:48:36.782379+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-07-14T14:48:36.782379+00:00 app[web.1]: result = await app(self.scope, self.receive, self.send)
2022-07-14T14:48:36.782380+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py”, line 59, in call
2022-07-14T14:48:36.782380+00:00 app[web.1]: return await self.app(scope, receive, send)
2022-07-14T14:48:36.782381+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/fastapi/applications.py”, line 199, in call
2022-07-14T14:48:36.782381+00:00 app[web.1]: await super().call(scope, receive, send)
2022-07-14T14:48:36.782382+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/starlette/applications.py”, line 112, in call
2022-07-14T14:48:36.782382+00:00 app[web.1]: await self.middleware_stack(scope, receive, send)
2022-07-14T14:48:36.782382+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/starlette/middleware/errors.py”, line 181, in call
2022-07-14T14:48:36.782383+00:00 app[web.1]: raise exc from None
2022-07-14T14:48:36.782383+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/starlette/middleware/errors.py”, line 159, in call
2022-07-14T14:48:36.782384+00:00 app[web.1]: await self.app(scope, receive, _send)
2022-07-14T14:48:36.782384+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/starlette/exceptions.py”, line 82, in call
2022-07-14T14:48:36.782384+00:00 app[web.1]: raise exc from None
2022-07-14T14:48:36.782385+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/starlette/exceptions.py”, line 71, in call
2022-07-14T14:48:36.782385+00:00 app[web.1]: await self.app(scope, receive, sender)
2022-07-14T14:48:36.782386+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/starlette/routing.py”, line 580, in call
2022-07-14T14:48:36.782386+00:00 app[web.1]: await route.handle(scope, receive, send)
2022-07-14T14:48:36.782386+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/starlette/routing.py”, line 241, in handle
2022-07-14T14:48:36.782387+00:00 app[web.1]: await self.app(scope, receive, send)
2022-07-14T14:48:36.782387+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/starlette/routing.py”, line 52, in app
2022-07-14T14:48:36.782387+00:00 app[web.1]: response = await func(request)
2022-07-14T14:48:36.782388+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/fastapi/routing.py”, line 214, in app
2022-07-14T14:48:36.782388+00:00 app[web.1]: raw_response = await run_endpoint_function(
2022-07-14T14:48:36.782388+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/fastapi/routing.py”, line 149, in run_endpoint_function
2022-07-14T14:48:36.782389+00:00 app[web.1]: return await dependant.call(**values)
2022-07-14T14:48:36.782389+00:00 app[web.1]: File “/app/./main.py”, line 25, in read_items
2022-07-14T14:48:36.782389+00:00 app[web.1]: await membertorank.promote()
2022-07-14T14:48:36.782390+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/ro_py/groups.py”, line 436, in promote
2022-07-14T14:48:36.782390+00:00 app[web.1]: return await self.change_rank(1)
2022-07-14T14:48:36.782391+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/ro_py/groups.py”, line 424, in change_rank
2022-07-14T14:48:36.782391+00:00 app[web.1]: await self.setrank(roles[role_counter + num].id)
2022-07-14T14:48:36.782391+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/ro_py/groups.py”, line 461, in setrank
2022-07-14T14:48:36.782392+00:00 app[web.1]: rank_request = await self.requests.patch(
2022-07-14T14:48:36.782392+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/ro_py/utilities/requests.py”, line 99, in patch
2022-07-14T14:48:36.782392+00:00 app[web.1]: return await self.request(“patch”, *args, **kwargs)
2022-07-14T14:48:36.782393+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/ro_py/utilities/requests.py”, line 78, in request
2022-07-14T14:48:36.782393+00:00 app[web.1]: raise request_exception(f"[{this_request.status_code}] {get_request_error[0][‘message’]}“)
2022-07-14T14:48:36.782393+00:00 app[web.1]: ro_py.utilities.errors.Unauthorized: [401] Authorization has been denied for this request.
2022-07-14T14:48:38.180279+00:00 heroku[router]: at=info method=GET path=”/group/demote?user_name=Ellie_Nocare&key=sedrasydyatsdkalqpbq&groupid=14700116" host=kekio-ranking-system.herokuapp.com request_id=8d026ce5-1ba5-45a4-89df-500dcd00cfcc fwd=“128.116.48.157” dyno=web.1 connect=0ms service=2ms status=307 bytes=274 protocol=https
2022-07-14T14:48:38.180698+00:00 app[web.1]: INFO: 128.116.48.157:0 - “GET /group/demote?user_name=Ellie_Nocare&key=sedrasydyatsdkalqpbq&groupid=14700116 HTTP/1.1” 307 Temporary Redirect
2022-07-14T14:48:39.013622+00:00 heroku[router]: at=info method=GET path=“/group/demote/?user_name=Ellie_Nocare&key=sedrasydyatsdkalqpbq&groupid=14700116” host=kekio-ranking-system.herokuapp.com request_id=492da061-a133-47f3-a411-8872445dfcd9 fwd=“128.116.48.157” dyno=web.1 connect=0ms service=769ms status=500 bytes=193 protocol=https
2022-07-14T14:48:39.014812+00:00 app[web.1]: INFO: 128.116.48.157:0 - “GET /group/demote/?user_name=Ellie_Nocare&key=sedrasydyatsdkalqpbq&groupid=14700116 HTTP/1.1” 500 Internal Server Error
2022-07-14T14:48:39.017264+00:00 app[web.1]: ERROR: Exception in ASGI application
2022-07-14T14:48:39.017265+00:00 app[web.1]: Traceback (most recent call last):
2022-07-14T14:48:39.017266+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-07-14T14:48:39.017266+00:00 app[web.1]: result = await app(self.scope, self.receive, self.send)
2022-07-14T14:48:39.017267+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py”, line 59, in call
2022-07-14T14:48:39.017267+00:00 app[web.1]: return await self.app(scope, receive, send)
2022-07-14T14:48:39.017268+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/fastapi/applications.py”, line 199, in call
2022-07-14T14:48:39.017268+00:00 app[web.1]: await super().call(scope, receive, send)
2022-07-14T14:48:39.017268+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/starlette/applications.py”, line 112, in call
2022-07-14T14:48:39.017269+00:00 app[web.1]: await self.middleware_stack(scope, receive, send)
2022-07-14T14:48:39.017269+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/starlette/middleware/errors.py”, line 181, in call
2022-07-14T14:48:39.017271+00:00 app[web.1]: raise exc from None
2022-07-14T14:48:39.017271+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/starlette/middleware/errors.py”, line 159, in call
2022-07-14T14:48:39.017272+00:00 app[web.1]: await self.app(scope, receive, _send)
2022-07-14T14:48:39.017272+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/starlette/exceptions.py”, line 82, in call
2022-07-14T14:48:39.017273+00:00 app[web.1]: raise exc from None
2022-07-14T14:48:39.017273+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/starlette/exceptions.py”, line 71, in call
2022-07-14T14:48:39.017273+00:00 app[web.1]: await self.app(scope, receive, sender)
2022-07-14T14:48:39.017273+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/starlette/routing.py”, line 580, in call
2022-07-14T14:48:39.017274+00:00 app[web.1]: await route.handle(scope, receive, send)
2022-07-14T14:48:39.017274+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/starlette/routing.py”, line 241, in handle
2022-07-14T14:48:39.017275+00:00 app[web.1]: await self.app(scope, receive, send)
2022-07-14T14:48:39.017275+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/starlette/routing.py”, line 52, in app
2022-07-14T14:48:39.017275+00:00 app[web.1]: response = await func(request)
2022-07-14T14:48:39.017276+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/fastapi/routing.py”, line 214, in app
2022-07-14T14:48:39.017276+00:00 app[web.1]: raw_response = await run_endpoint_function(
2022-07-14T14:48:39.017280+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/fastapi/routing.py”, line 149, in run_endpoint_function
2022-07-14T14:48:39.017280+00:00 app[web.1]: return await dependant.call(**values)
2022-07-14T14:48:39.017281+00:00 app[web.1]: File “/app/./main.py”, line 37, in read_items
2022-07-14T14:48:39.017281+00:00 app[web.1]: await membertorank.demote()
2022-07-14T14:48:39.017281+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/ro_py/groups.py”, line 446, in demote
2022-07-14T14:48:39.017281+00:00 app[web.1]: return await self.change_rank(-1)
2022-07-14T14:48:39.017282+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/ro_py/groups.py”, line 424, in change_rank
2022-07-14T14:48:39.017282+00:00 app[web.1]: await self.setrank(roles[role_counter + num].id)
2022-07-14T14:48:39.017282+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/ro_py/groups.py”, line 461, in setrank
2022-07-14T14:48:39.017283+00:00 app[web.1]: rank_request = await self.requests.patch(
2022-07-14T14:48:39.017283+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/ro_py/utilities/requests.py”, line 99, in patch
2022-07-14T14:48:39.017283+00:00 app[web.1]: return await self.request(“patch”, *args, **kwargs)
2022-07-14T14:48:39.017283+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.10/site-packages/ro_py/utilities/requests.py”, line 78, in request
2022-07-14T14:48:39.017284+00:00 app[web.1]: raise request_exception(f"[{this_request.status_code}] {get_request_error[0][‘message’]}")
2022-07-14T14:48:39.017284+00:00 app[web.1]: ro_py.utilities.errors.Unauthorized: [401] Authorization has been denied for this request.

The cookie is incorrect, try getting the cookie again.

Also please research before making posts, as this is them most common issue we encounter.

Apologies, I’m only new. I’ve restarted the whole tutorial just in case I missed something. I’m testing it now.

How exactly do I get the “Correct” cookie?

You follow the tutorial precisely.

I have, I put the correct code in, pressed “X” on the inspect element. I never logged out, I then closed the window and put the API key in. I then pressed “Commit Changes”. It didn’t work.

Are you using incognito?

Yep. I’ve retried around like 5 times now.

Are you logging out of the bot/

The bots online, it just doesn’t rank.

The bot shouldn’t be showing as online.

It just went offline now.

Is it working now?

Make sure to close the tab.

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