您好,我想詢問
在使用時遇到了被discord/cloudflare 偵測429 Too Many Requests / 1015 Rate Limited導致IP被暫時封鎖
想請教是程式碼有BUG,還是說是discord官方的政策有改變導致?
亦或是說是使用操作不當導致?
以及是否有方法可以杜絕?
感謝您的閱讀,造成不便不好意思
2026-05-10 13:57:56 INFO src.checker -> environment variables check passed
2026-05-10 13:57:56 INFO src.checker -> configs.yml not found. Using default values for all settings.
2026-05-10 13:57:56 INFO src.checker -> successfully generated 'configs/configs.generated.yml'
2026-05-10 13:57:56 INFO discord.client logging in using static token
Traceback (most recent call last):
File "/home/container/bot.py", line 129, in
bot.run(os.getenv('BOT_TOKEN'))
File "/home/container/.local/lib/python3.11/site-packages/discord/client.py", line 860, in run
asyncio.run(runner())
File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/base_events.py", line 654, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/home/container/.local/lib/python3.11/site-packages/discord/client.py", line 849, in runner
await self.start(token, reconnect=reconnect)
File "/home/container/.local/lib/python3.11/site-packages/discord/client.py", line 777, in start
await self.login(token)
File "/home/container/.local/lib/python3.11/site-packages/discord/client.py", line 612, in login
data = await self.http.static_login(token)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/container/.local/lib/python3.11/site-packages/discord/http.py", line 803, in static_login
data = await self.request(Route('GET', '/users/@me'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/container/.local/lib/python3.11/site-packages/discord/http.py", line 681, in request
raise HTTPException(response, data)
discord.errors.HTTPException: 429 Too Many Requests (error code: 0): <!doctype html>
<title>Access denied | discord.com used Cloudflare to restrict access | discord.com | Cloudflare</title>
<script>
(function(){if(document.addEventListener&&window.XMLHttpRequest&&JSON&&JSON.stringify){var e=function(a){var c=document.getElementById("error-feedback-survey"),d=document.getElementById("error-feedback-success"),b=new XMLHttpRequest;a={event:"feedback clicked",properties:{errorCode: 1015 },helpful:a,version: 1 };b.open("POST","https://sparrow.cloudflare.com/api/v1/event");b.setRequestHeader("Content-Type","application/json");b.setRequestHeader("Sparrow-Source-Key","c771f0e4b54944bebf4261d44bd79a1e");
b.send(JSON.stringify(a));c.classList.add("feedback-hidden");d.classList.remove("feedback-hidden")};document.addEventListener("DOMContentLoaded",function(){var a=document.getElementById("error-feedback"),c=document.getElementById("feedback-button-yes"),d=document.getElementById("feedback-button-no");"classList"in a&&(a.classList.remove("feedback-hidden"),c.addEventListener("click",function(){e(!0)}),d.addEventListener("click",function(){e(!1)}))})}})();
</script>
<script
defer
src="https://performance.radar.cloudflare.com/beacon.js"
></script>
Please enable cookies.
Error
1015
Ray ID: 9f9974b65f009188 •
2026-05-10 13:57:56 UTC
You are being rate limited
<section class="w-240 lg:w-full mx-auto mb-8 lg:px-8">
<div id="what-happened-section" class="w-1/2 md:w-full">
<h2
class="text-3xl leading-tight font-normal mb-4 text-black-dark antialiased"
data-translate="what_happened"
>
What happened?
</h2>
<p>The owner of this website (discord.com) has banned you temporarily from accessing this website.</p>
<p>
Please see
<a
rel="noopener noreferrer"
href="https://developers.cloudflare.com/support/troubleshooting/http-status-codes/cloudflare-1xxx-errors/error-1015/"
target="_blank"
>https://developers.cloudflare.com/support/troubleshooting/http-status-codes/cloudflare-1xxx-errors/error-1015/</a
>
for more details.
</p>
</div>
</section>
<div class="feedback-hidden py-8 text-center" id="error-feedback">
<div id="error-feedback-survey" class="footer-line-wrapper">
Was this page helpful?
<button
class="border border-solid bg-white cf-button cursor-pointer ml-4 px-4 py-2 rounded"
id="feedback-button-yes"
type="button"
>
Yes
</button>
<button
class="border border-solid bg-white cf-button cursor-pointer ml-4 px-4 py-2 rounded"
id="feedback-button-no"
type="button"
>
No
</button>
</div>
<div class="feedback-success feedback-hidden" id="error-feedback-success">
Thank you for your feedback!
</div>
Cloudflare Ray ID: 9f9974b65f009188
•
Performance & security by Cloudflare
</p>
<script>(function(){function d(){var b=a.getElementById("cf-footer-item-ip"),c=a.getElementById("cf-footer-ip-reveal");b&&"classList"in b&&(b.classList.remove("hidden"),c.addEventListener("click",function(){c.classList.add("hidden");a.getElementById("cf-footer-ip").classList.remove("hidden")}))}var a=document;document.addEventListener&&a.addEventListener("DOMContentLoaded",d)})();</script>
<script>
window._cf_translation = {};
</script>
<script>(function(){function c(){var b=a.contentDocument||a.contentWindow.document;if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'9f9974b65f009188',t:'MTc3ODQyMTQ3Ng=='};var a=document.createElement('script');a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();</script></body>
您好,我想詢問
在使用時遇到了被discord/cloudflare 偵測429 Too Many Requests / 1015 Rate Limited導致IP被暫時封鎖
想請教是程式碼有BUG,還是說是discord官方的政策有改變導致?
亦或是說是使用操作不當導致?
以及是否有方法可以杜絕?
感謝您的閱讀,造成不便不好意思
2026-05-10 13:57:56 INFO src.checker -> environment variables check passed
<title>Access denied | discord.com used Cloudflare to restrict access | discord.com | Cloudflare</title> <script> (function(){if(document.addEventListener&&window.XMLHttpRequest&&JSON&&JSON.stringify){var e=function(a){var c=document.getElementById("error-feedback-survey"),d=document.getElementById("error-feedback-success"),b=new XMLHttpRequest;a={event:"feedback clicked",properties:{errorCode: 1015 },helpful:a,version: 1 };b.open("POST","https://sparrow.cloudflare.com/api/v1/event");b.setRequestHeader("Content-Type","application/json");b.setRequestHeader("Sparrow-Source-Key","c771f0e4b54944bebf4261d44bd79a1e"); b.send(JSON.stringify(a));c.classList.add("feedback-hidden");d.classList.remove("feedback-hidden")};document.addEventListener("DOMContentLoaded",function(){var a=document.getElementById("error-feedback"),c=document.getElementById("feedback-button-yes"),d=document.getElementById("feedback-button-no");"classList"in a&&(a.classList.remove("feedback-hidden"),c.addEventListener("click",function(){e(!0)}),d.addEventListener("click",function(){e(!1)}))})}})(); </script> <script defer src="https://performance.radar.cloudflare.com/beacon.js" ></script>2026-05-10 13:57:56 INFO src.checker -> configs.yml not found. Using default values for all settings.
2026-05-10 13:57:56 INFO src.checker -> successfully generated 'configs/configs.generated.yml'
2026-05-10 13:57:56 INFO discord.client logging in using static token
Traceback (most recent call last):
File "/home/container/bot.py", line 129, in
bot.run(os.getenv('BOT_TOKEN'))
File "/home/container/.local/lib/python3.11/site-packages/discord/client.py", line 860, in run
asyncio.run(runner())
File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/base_events.py", line 654, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/home/container/.local/lib/python3.11/site-packages/discord/client.py", line 849, in runner
await self.start(token, reconnect=reconnect)
File "/home/container/.local/lib/python3.11/site-packages/discord/client.py", line 777, in start
await self.login(token)
File "/home/container/.local/lib/python3.11/site-packages/discord/client.py", line 612, in login
data = await self.http.static_login(token)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/container/.local/lib/python3.11/site-packages/discord/http.py", line 803, in static_login
data = await self.request(Route('GET', '/users/@me'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/container/.local/lib/python3.11/site-packages/discord/http.py", line 681, in request
raise HTTPException(response, data)
discord.errors.HTTPException: 429 Too Many Requests (error code: 0): <!doctype html>
Error 1015
Ray ID: 9f9974b65f009188 • 2026-05-10 13:57:56 UTCYou are being rate limited
Cloudflare Ray ID: 9f9974b65f009188 • Your IP: Click to reveal 2a01:4f9:3080:ed02::2 • Performance & security by Cloudflare