Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ~ $ python3 discordbot.py
- Traceback (most recent call last):
- File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/discord/http.py", line 269, in static_login
- data = yield from self.request(Route('GET', '/users/@me'))
- File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/discord/http.py", line 211, in request
- raise HTTPException(r, data)
- discord.errors.HTTPException: UNAUTHORIZED (status code: 401): 401: Unauthorized
- The above exception was the direct cause of the following exception:
- Traceback (most recent call last):
- File "discordbot.py", line 63, in <module>
- bot.run('token')
- File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/discord/client.py", line 519, in run
- self.loop.run_until_complete(self.start(*args, **kwargs))
- File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/base_events.py", line 466, in run_until_complete
- return future.result()
- File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/discord/client.py", line 490, in start
- yield from self.login(*args, **kwargs)
- File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/discord/client.py", line 416, in login
- yield from getattr(self, '_login_' + str(n))(*args, **kwargs)
- File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/discord/client.py", line 346, in _login_1
- data = yield from self.http.static_login(token, bot=is_bot)
- File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/discord/http.py", line 273, in static_login
- raise LoginFailure('Improper token has been passed.') from e
- discord.errors.LoginFailure: Improper token has been passed.
- Unclosed client session
- client_session: <aiohttp.client.ClientSession object at 0x10373a6d8>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement