high severityDiscord Gateway (/gateway/bot endpoint), sharding managers
Console/logs spam "429 hit on route /gateway/bot" errors on startup; shards fail to connect; bot won't go online. May persist across restarts.
Root cause
Bot makes excessive calls to GET /gateway/bot endpoint (to get WSS URL, shards, session_start_limit) during rapid restarts or improper sharding (spawning too many shards without delays), exceeding ~1000 session starts per day or concurrency limit (max_concurrency=1), triggering 429 rate limit. Free hosts exacerbate via shared IP Cloudflare bans. Separate from per-connection gateway event limit (120/60s).
discord.jsdiscord.pygatewaybot429sharding/gateway/botsession_start_limitcloudflare