discord / discord-api-docs

Official Discord API Documentation
https://discord.com/developers/docs/intro
Other
5.96k stars 1.26k forks source link

Github Webhook Ratelimit #6975

Closed pompompur1nn closed 4 months ago

pompompur1nn commented 4 months ago

Description

False 5 year ratelimit on a github server. image

Steps to Reproduce

Send a github webhook request using application/json to a discord server

Expected Behavior

Sending the webhook

Current Behavior

5 year ratelimit the first ping github sends

Screenshots/Videos

image

Client and System Information

not relevant as this is a discord issue

splatterxl commented 4 months ago

In this case, the rate limit headers indicate that you're not being ratelimited at all. Rather the status code is showing 400: Bad Request which means something is wrong with the request body.

Did you use the base webhook url https://discord.com/api/webhooks/{id}/{token} instead of adding /github to the end of it?

pompompur1nn commented 4 months ago

Forgot to do that, and thought the cookie expiry date was the ratelimit, thank you 😭😭