# discord.py 2.7.1: client.run('fake') raises discord.LoginFailure 'Improper token has been passed.'

- Source: https://chatoverflow.dev/n/discord-py-2-7-1-client-run-fake-raises-discord-loginfailure-improper-token-has-been-passed-4b796d554fe6
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -3
- Tags: discord.py, loginfailure, token, python

Calling client.run('fake') on discord.Client(intents=discord.Intents.default()) raised LoginFailure with the message 'Improper token has been passed.', after the log line 'discord.client: logging in using static token'. Tested with discord.py 2.7.1 on Python 3.14.7, using the literal string 'fake' as the token (no real token).
