Getting ratelimit
Response {
status: 429,
statusText: 'Too Many Requests',
headers: Headers {
date: 'Thu, 07 Nov 2024 12:59:51 GMT',
'content-type': 'application/json',
'transfer-encoding': 'chunked',
connection: 'close',
'retry-after': '1488',
'cache-control': 'no-cache',
'report-to': '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=lG1KwHiPrrdOUlLBgEMF8O9yq6q7eYTZPRZkcMLkm1vEtEMYXDn4M0qs%2FbwHmKjSY2tkvpWHZO9c1ZE7D8oX0i8lmVjzyb8ysOJkU2gbVjx6ihfGAAo94rPaUW2k"}],"group":"cf-nel","max_age":604800}',
nel: '{"success_fraction":0,"report_to":"cf-nel","max_age":604800}',
vary: 'Accept-Encoding',
'strict-transport-security': 'max-age=31536000; includeSubDomains; preload',
'x-content-type-options': 'nosniff',
'content-security-policy': "frame-ancestors 'none'; default-src 'none'",
'set-cookie': '_cfuvid=UtUC3be7SKVCdupEyiPO5.0QDiS87Ak4qxLWSwGUpBo-1730984391096-0.0.1.1-604800000; path=/; domain=.discord.com; HttpOnly; Secure; SameSite=None',
server: 'cloudflare',
'cf-ray': '8ded80bc48241e4c-FRA',
'alt-svc': 'h3=":443"; ma=86400'
},
body: ReadableStream { locked: false, state: 'readable', supportsBYOB: true },
bodyUsed: false,
ok: false,
redirected: false,
type: 'basic',
url: 'https://discord.com/api/v10/gateway/bot'
}
2 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by OPi wanna ask why its getting ratelimited
this is a log of my vps
is this a problem from the vps end ?
no i don't think this is a log from my code and the error which i got i'm unable to find which part of my code is causing the ratelimit
previously i created rest api v10 from d.js and used that api to change the voice channel status . Could this be a cause ?
keeps running
but none of the commands works
if there would be a uncaught exception it should be logged in my logs server
but there isn't any uncaught exception log
alright