Сергей Кислицин
Ученик
(108),
на голосовании
7 месяцев назад
File "/home/container/.local/lib/python3.11/site-packages/disnake/http.py", line 468, in static_login data: user.User = await self.request(Route("GET", "/users/@me")) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/container/.local/lib/python3.11/site-packages/disnake/http.py", line 421, in request raise HTTPException(response, data) disnake.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 "/home/container/bot.py", line 7, in <module> bot.run (cfg.TOKEN) File "/home/container/.local/lib/python3.11/site-packages/disnake/client.py", line 1128, in run return future.result() ^^^^^^^^^^^^^^^ File "/home/container/.local/lib/python3.11/site-packages/disnake/client.py", line 1107, in runner await self.start(*args, **kwargs) File "/home/container/.local/lib/python3.11/site-packages/disnake/client.py", line 1068, in start await self.login(token) File "/home/container/.local/lib/python3.11/site-packages/disnake/ext/commands/interaction_bot_base.py", line 224, in login await super().login(token) File "/home/container/.local/lib/python3.11/site-packages/disnake/ext/commands/common_bot_base.py", line 130, in login await super().login(token=token) # type: ignore ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/container/.local/lib/python3.11/site-packages/disnake/client.py", line 867, in login data = await self.http.static_login(token.strip()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/container/.local/lib/python3.11/site-packages/disnake/http.py", line 472, in static_login raise LoginFailure("Improper token has been passed.") from exc disnake.errors.LoginFailure: Improper token has been passed.
data: user.User = await self.request(Route("GET", "/users/@me"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/container/.local/lib/python3.11/site-packages/disnake/http.py", line 421, in request
raise HTTPException(response, data)
disnake.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 "/home/container/bot.py", line 7, in <module>
bot.run (cfg.TOKEN)
File "/home/container/.local/lib/python3.11/site-packages/disnake/client.py", line 1128, in run
return future.result()
^^^^^^^^^^^^^^^
File "/home/container/.local/lib/python3.11/site-packages/disnake/client.py", line 1107, in runner
await self.start(*args, **kwargs)
File "/home/container/.local/lib/python3.11/site-packages/disnake/client.py", line 1068, in start
await self.login(token)
File "/home/container/.local/lib/python3.11/site-packages/disnake/ext/commands/interaction_bot_base.py", line 224, in login
await super().login(token)
File "/home/container/.local/lib/python3.11/site-packages/disnake/ext/commands/common_bot_base.py", line 130, in login
await super().login(token=token) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/container/.local/lib/python3.11/site-packages/disnake/client.py", line 867, in login
data = await self.http.static_login(token.strip())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/container/.local/lib/python3.11/site-packages/disnake/http.py", line 472, in static_login
raise LoginFailure("Improper token has been passed.") from exc
disnake.errors.LoginFailure: Improper token has been passed.