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

discord.errors.LoginFailure: Improper token has been passed #7

Open
rech2020 opened this issue Jul 5, 2024 · 0 comments
Open

discord.errors.LoginFailure: Improper token has been passed #7

rech2020 opened this issue Jul 5, 2024 · 0 comments

Comments

@rech2020
Copy link

rech2020 commented Jul 5, 2024

Traceback (most recent call last):
  File "/home/codespace/.local/lib/python3.10/site-packages/discord/http.py", line 1058, in static_login
    data = await self.get_me()
  File "/home/codespace/.local/lib/python3.10/site-packages/discord/http.py", line 934, in request
    raise HTTPException(response, data)
discord.errors.HTTPException: 401 Unauthorized (error code: 0): 401: Unauthorized

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/workspaces/DiscordScraper/source/main.py", line 9, in <module>
    client.run(config["token"]) # type: ignore
  File "/home/codespace/.local/lib/python3.10/site-packages/discord/client.py", line 1106, in run
    asyncio.run(runner())
  File "/usr/local/python/3.10.13/lib/python3.10/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/local/python/3.10.13/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
    return future.result()
  File "/home/codespace/.local/lib/python3.10/site-packages/discord/client.py", line 1095, in runner
    await self.start(token, reconnect=reconnect)
  File "/home/codespace/.local/lib/python3.10/site-packages/discord/client.py", line 1025, in start
    await self.login(token)
  File "/home/codespace/.local/lib/python3.10/site-packages/discord/client.py", line 867, in login
    data = await state.http.static_login(token.strip())
  File "/home/codespace/.local/lib/python3.10/site-packages/discord/http.py", line 1062, in static_login
    raise LoginFailure('Improper token has been passed') from exc
discord.errors.LoginFailure: Improper token has been passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant