Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear up invalid token error for ShardManager #196

Open
TAG-Epic opened this issue Feb 19, 2023 · 0 comments
Open

Clear up invalid token error for ShardManager #196

TAG-Epic opened this issue Feb 19, 2023 · 0 comments
Labels
scope/nextcore.gateway Any changes to the nextcore.gateway namespace type/bug A bug fix

Comments

@TAG-Epic
Copy link
Member

  File "/home/epic/Development/selfbot-detector/selfbot_detector/__init__.py", line 14, in main
    await shard_manager.connect()
  File "/home/epic/.cache/pypoetry/virtualenvs/selfbot-detector-XhbWVyWE-py3.10/lib/python3.10/site-packages/nextcore/gateway/shard_manager.py", line 163, in connect
    connection_info = await self._http_client.get_gateway_bot(self.authentication)
  File "/home/epic/.cache/pypoetry/virtualenvs/selfbot-detector-XhbWVyWE-py3.10/lib/python3.10/site-packages/nextcore/http/client/wrappers/gateway.py", line 115, in get_gateway_bot
    r = await self._request(
  File "/home/epic/.cache/pypoetry/virtualenvs/selfbot-detector-XhbWVyWE-py3.10/lib/python3.10/site-packages/nextcore/http/client/client.py", line 321, in _request
    await self._handle_response_error(route, response, rate_limit_storage)
  File "/home/epic/.cache/pypoetry/virtualenvs/selfbot-detector-XhbWVyWE-py3.10/lib/python3.10/site-packages/nextcore/http/client/client.py", line 333, in _handle_response_error
    raise UnauthorizedError(error, response)
nextcore.http.errors.UnauthorizedError: (0) 401: Unauthorized

This should really be cleared up so its easier for people to understand that they used the wrong token

@TAG-Epic TAG-Epic added scope/nextcore.gateway Any changes to the nextcore.gateway namespace type/bug A bug fix labels Feb 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope/nextcore.gateway Any changes to the nextcore.gateway namespace type/bug A bug fix
Projects
None yet
Development

No branches or pull requests

1 participant