Ask coding questions

← Back to all posts
Bot won't run
JoelHansson2

I get this my I try to run the program:

Traceback (most recent call last):
File "main.py", line 21, in <module>
client.run('ODk4NjM1NzUyNTE3Mjg4MDU3.YWnFww.UQ_Ra19CiELmHqU1emVKemKhgGU')
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/client.py", line 723, in run
return future.result()
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/client.py", line 702, in runner
await self.start(args, **kwargs)
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/client.py", line 665, in start
await self.login(
args, bot=bot)
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/client.py", line 511, in login
await self.http.static_login(token.strip(), bot=bot)
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/http.py", line 300, in static_login
data = await self.request(Route('GET', '/users/@me'))
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/http.py", line 216, in request
raise HTTPException(r, data)
discord.errors.HTTPException: 429 Too Many Requests (error code: 0): You are being blocked from accessing our API temporarily due to exceeding our rate limits frequently. Please read our docs at https://discord.com/developers/docs/topics/rate-limits to prevent this moving forward.

Voters
JoelHansson2
Comments
hotnewtop
CosmicBear

The error is because you are being rate limited. https://discord.com/developers/docs/topics/rate-limits. This is because there are many bots hosted on Replit. If it happens again, use the command kill 1 in the shell or reload the page.

JoelHansson2

It started to work idk why tho