You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Discord recently changed their Cloudflare configuration to return a JSON error when the user is Cloudflare blocked instead of the HTML Cloudflare page.
I can confirm this is still occurring. I recently encountered this when trying to send requests from Roblox through a proxy and blindly copied the User-Agent.
Whether or not the error message gets updated, I would like to see this user-agent requirement added to public documentation (if it isn't already) if it is here to stay. I encountered this issue, and it was tricky to identify. I hadn't considered that my PowerShell script was automatically supplying a user agent header containing "Mozilla" even when I didn't specify one - so it was not obvious at first what "40333 - internal network error" was trying to tell me. Thank you for your consideration!
Description
Discord recently changed their Cloudflare configuration to return a JSON error when the user is Cloudflare blocked instead of the HTML Cloudflare page.
Example response:
This error is misleading, "internal network error" might make someone think Discord is having issues with their API.
Steps to Reproduce
Discord blocks Bot API requests with browser user agents, you can reproduce it with this command:
Expected Behavior
The API should return a more informative error like "Request blocked"
Current Behavior
Screenshots/Videos
No response
Client and System Information
N/A
The text was updated successfully, but these errors were encountered: