Deployment Blocked by Cloudflare Error 1015 - IP Rate Limiting Issue

Hello Koyeb Community,

I’m experiencing an issue where my Discord bot deployment cannot connect to Discord’s API due to Cloudflare Error 1015 (rate limiting) blocking the connection at the IP level.

Problem Summary:
My bot starts successfully, the Flask keep-alive server runs fine (health checks pass), but the bot cannot establish a connection to Discord’s API. The error occurs immediately during bot startup when discord.py attempts to connect.

Error Details:

  • Error: 429 Too Many Requests (error code: 0)
  • Cloudflare Error: 1015 - You are being rate limited
  • Message: “The owner of this website (discord.com) has banned you temporarily from accessing this website”
  • Deployment IP: 15.204.221.39 (from logs)

What’s Happening:

  1. Instance starts successfully
  2. Flask keep-alive server runs on port 8080 (health checks pass)
  3. Cloudflare blocks the connection before application reaches Discord’s API
  4. Bot fails with Error 1015 HTML response from Cloudflare

Evidence from Logs:
2026-01-24 20:30:43,534 - ERROR - [ERROR] Bot encountered an unexpected issue:

429 Too Many Requests (error code: 0): …Error 1015…

The deployment shows as “Healthy” because the Flask server responds to health checks, but the Discord connection fails completely.

What I’ve Verified:

  • Bot code works fine (tested locally and on other platforms)
  • Environment variables are correctly set
  • This is an IP-level blocking issue, not a code issue
  • The blocking happens at Cloudflare’s layer before requests reach Discord

Question:
Is there a way to:

  1. Request a new IP address for my deployment?
  2. Get IP rotation or whitelisting assistance?
  3. Understand if this is a known issue with Koyeb’s IP ranges and Cloudflare?

Any guidance or assistance would be greatly appreciated. Thank you!