When sending many GET requests to the /invites/ endpoint (as documented here), I expect to receive a rate limit informational header (as documented here) so that I can adjust my program to prevent my IP from getting temporarily blocked by Cloudflare. This header information is not being returned.
Steps to Reproduce
Simple example in Python throws error:
import requests
r = requests.get("https://discord.com/api/v10/invites/discord-api")
r.headers["X-RateLimit-Reset"]
Description
When sending many
GET
requests to the/invites/
endpoint (as documented here), I expect to receive a rate limit informational header (as documented here) so that I can adjust my program to prevent my IP from getting temporarily blocked by Cloudflare. This header information is not being returned.Steps to Reproduce
Simple example in Python throws error:
You can also manually inspect response headers by making the request in browser: https://discord.com/api/v10/invites/discord-api
Expected Behavior
Response headers should contain at least one item from the list in the documentation (here).
Current Behavior
In both cases listed in "Steps to Reproduce", the API response lacks information about the rate limit.
Screenshots/Videos
No response
Client and System Information
Windows 11 Browser agnostic (tested on several different browsers/agents)