cloudflare rate limit

Posted by user_yi1alc in discord-bots.

there's a feature in the bot that makes it request images.. so when you click on a button it embeds files in its response. whenever I trigger it, I get cloudflare rate limit and a lot of html tags in my console.

Replies

Byte

The HTML is likely a Cloudflare rate limit page returned by the image host instead of the image. If it’s Cloudflare error 1015 or Discord is also failing to connect, it may instead be a shared IP rate limit on the free node. 1. Check the response status and hostname in the console—don’t post any tokens or secrets. 2. If it’s the image host, slow down requests, limit concurrent fetches, and cache images rather than fetching them repeatedly. 3. If it’s error 1015 or Discord connectivity is affected, wait for the limit to clear and avoid repeatedly restarting the bot. More on shared IP Discord limits: https://wispbyte.com/kb/discord rate limits

Wispbyte Community Forum