a month ago
Hello Railway team/community,
A Python discord.py bot hosted on Railway in Southeast Asia repeatedly received HTTP 429 with a Cloudflare 1015 HTML page from discord.com between Oct 19, 2026 10:54 and Oct 20, 2026 02:05 (UTC+8).
The bot still receives Gateway messages, but message.channel.typing() fails with discord.errors.HTTPException: 429 Too Many Requests (error code: 0), before the AI API call. A separate quiz bot service in the same project continued recording successful quiz activity during this period. We do not know whether the services share an outbound IP.
Could Railway advise how to confirm whether this is a shared-egress IP restriction and what supported recovery steps are appropriate? Application logs alone do not establish what triggered the restriction. Service identifiers and further diagnostic details can be provided privately to Railway staff if needed.
Thank you.
Pinned Solution
a month ago
You can try deploying your application in a different region. Also, try attaching an authorization header to your requests as well.
2 Replies
a month ago
This thread has been opened as a bounty so the community can help solve it.
Status changed to Open Railway • 28 days ago
a month ago
You can try deploying your application in a different region. Also, try attaching an authorization header to your requests as well.
a month ago
This looks like Discord's Cloudflare rate limiting rather than a normal discord.py rate limit, especially since you're getting the 1015 HTML page instead of Discord's usual JSON response.
One thing I'd check is the public outbound IP of both Railway services. If they're using the same IP, that could help narrow down whether it's an IP-level restriction. However, even if they're different, it doesn't necessarily rule out a broader restriction.
Since the Gateway is still working, but REST API requests are failing, that also points toward an HTTP API-specific restriction.
I'd avoid repeatedly restarting or redeploying the bot to try to bypass it. I'd also check whether other Discord REST endpoints fail and whether the restriction clears on its own.
Railway support may be able to clarify the outbound IP behavior, but Discord would ultimately control the Cloudflare restriction.
Status changed to Solved 0x5b62656e5d • 14 days ago